Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

How to handoff conversations from bot to agent #12

Open
urumat opened this issue Feb 8, 2022 · 3 comments
Open

How to handoff conversations from bot to agent #12

urumat opened this issue Feb 8, 2022 · 3 comments

Comments

@urumat
Copy link

urumat commented Feb 8, 2022

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.

@sojan-official
Copy link
Member

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-

@urumat
Copy link
Author

urumat commented Feb 10, 2022

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?

@sojan-official
Copy link
Member

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants