Using the Rocket.Chat Dialogflow App, you can set up and train your chatbot to respond to any query it's been trained for and configure it to act as an Omnichannel agent.
To connect to your Dialogflow agent, the Dialogflow app requires the following credentials:
- Project Id
- Client email
- Private Key
- Navigate to Administration > Workspace > Users and create a new user with the following roles:
- Go to Administration > Workspace > Settings > Omnichannel > Routing and enable Assign new conversations to bot agent.
- On the Dialogflow App Info screen, navigate to Settings.
- Update the required fields:
- Bot Username: Set the username of the bot you created earlier.
- Project Id: The
project_idproperty of the Google credentials file.
- Client Email: The
client_emailproperty of the Google credentials file.
- Private Key: The
private_keyproperty of the Google credentials file.
- Language: Select the language you'd be interacting with the Bot.
- Fallback Responses Limit: If the Omnichannel end-user asks something that the bot is not trained to answer and fails. Fallback Responses Limit defines how many failures of the conversation should be forwarded to a human agent.
- Target Department for Handover: Select the department to transfer customers when there is a bot-to-live agent handover.
- Handover Message: A message sent to the customer upon handover.
- Service Unavailable Message: A message sent by the bot to the customer if service is unavailable.
- Close Chat Message: A message sent automatically to the customer when a chat is closed.
- Hide Quick Replies: If enabled, all quick replies will hide when customers click on any of them.
- Click Save Changes.
You can test your Dialogflow Connection by viewing your app log.
To view your app log,
- Click the kebab menu on the Dialogflow App Info screen and select View Logs.
- Select the recent onSettingUpdated tile. If there is
Google Credentials validation Success, your setup is good to go. If otherwise, then recheck your Dialogflow credentials.
- To add quick Replies, use
Custom-Payloadfor Responses on Dialogflow Console.
- Go to Intent > Responses > Add Responses > Custom Payload.