RocketChat / hubot-natural

Natural Language Processing Chatbot for RocketChat
https://open.rocket.chat/channel/hubot-natural
MIT License
144 stars 44 forks source link

Bot not leaving livechat after transfer to live agent. #51

Open pittar opened 6 years ago

pittar commented 6 years ago

Hi,

I'm having an issue where by hubot-natural chatbot does not leave a livechat session after it has handed off to a live agent.

Using the stock "rocketcat-en.yml" corpus, I have updated the file to include the proper Department hash. When requesting to talk with a human, a live agent is assigned and joins the chat, but the bot is also still present and continues to try and answer as well.

Is there a setting I am missing? It's hard to nail down the config since the images in the instructions are all broken.

Andrew

pittar commented 6 years ago

FYI, using RocketChat version 0.66.3.

krishnaprasadhg commented 5 years ago

Same issue for me. Any fix available for this?

timkinnane commented 5 years ago

Assuming this is the same issue we're talking about over at bBot...

https://github.com/Amazebot/bbot/issues/111

The bot will keep receiving as long as it's in the room. Need to call the leave room method through the SDK, which is part of the adapter. I don't remember the exact attributes.

krishnaprasadhg commented 5 years ago

Hi @timkinnane ,

Thanks for your response. I understand we need to call leave chat room method. But not able to find from which node module i need to call this. Please help.

Thanks!

timkinnane commented 5 years ago

From the driver module, which is inside the adaptor. Should be something like bot.adaptor.driver.callMethod