This template shows a very simple use case where a user is transferred to a human agent through the chatbot. The conversation will appear as a new case on Hubtype Desk.
In this example we've set up a route in
src/routes.js that triggers the handoff when a user types "handoff":
Then, in our
src/actions/transfer-agent.js file, we need to call the
humanHandoff method inside
Additionally, we check if the 'Customer Support' queue is open:
Note: Remember that the full features for
humanHandOff are only available when the bot is deployed!