Objective: Integrate Bevatel with Dialogflow to leverage chatbots for automated responses and seamless agent handoffs, enhancing customer support capabilities.
Chatbots are an essential component of any customer service platform. When handling large volumes of conversations, scaling human support may not be the most efficient solution. By integrating Dialogflow with Bevatel, you can deploy a chatbot that answers common questions and hands over complex queries to an agent, optimizing your customer support workflow.
Prerequisite: Ensure you have a Dialogflow bot set up before configuring the integration in Bevatel. If not, follow the steps in the next section to create a Dialogflow bot.
If you don't have a Dialogflow bot yet, follow these steps to create one:
Test your bot by interacting with it directly on Dialogflow. Ensure the responses align with the intents you created.
To connect the Dialogflow bot with Bevatel, you need to create a service account in your Google Cloud Console.
Bevatel's integration with Dialogflow supports advanced intents, including agent handoff and interactive messages.
{
"action": "handoff"
}
This payload triggers a handoff to a live agent in Bevatel when the customer requests to speak with one.
Bevatel supports interactive messages for the website channel. You can create custom payloads for options or cards. Here's an example for an options interactive message:
json
{
"content_type": "input_select",
"content": "Select your favorite food from below",
"content_attributes": {
"items": [
{
"value": "I like sushi",
"title": "Sushi"
},
{
"title": "Biryani",
"value": "I like biryani"
},
{
"title": "Pizza",
"value": "I like pizza"
}
]
},
"private": false
}
When the user interacts with the message, the selected option is sent back to Dialogflow, allowing you to configure follow-up intents based on the selection.
Q: How can an agent transfer the conversation back to the Dialogflow bot?
When the bot is connected to an inbox, conversations initially have a pending status, allowing the bot to handle them. If an agent wants to push the conversation back to the bot, they can change the conversation status back to pending.
Q: What if the JSON key is invalid during setup?
Ensure that the key file is copied and pasted in its entirety, and that it matches the service account created for the Dialogflow API.