rasa-agent-bot-demo icon indicating copy to clipboard operation
rasa-agent-bot-demo copied to clipboard

How to handoff conversations from bot to agent

Open urumat opened this issue 3 years ago • 3 comments

Hello,

What would be the way of handing a conversation from the rasa bot to an active agent when the user intends to talk to a human?

Thanks in advance.

urumat avatar Feb 08 '22 03:02 urumat

In a bot connected inbox, the conversations would be starting on the pending state. You can configure a specific intent that the bot service can use to identify that a handoff is required. Then you can call the chatwoot APIs to toggle the conversation into open status.

ref: https://www.chatwoot.com/docs/product/others/agent-bots/#human-agent-handoff-

sojan-official avatar Feb 09 '22 04:02 sojan-official

Thank you for your reply sojan. I tried toggling the conversation status to OPEN as the ref. link says. However, the bot keeps replying to the user messages. Any idea why that could be?

urumat avatar Feb 10 '22 02:02 urumat

@matiasperes The implementation in this repo is meant as a sample. It replies to all incoming messages at the moment. You can add logic to it to distinguish between open and pending conversations and ensure that replies are only send for pending conversations

sojan-official avatar Feb 10 '22 03:02 sojan-official