Dialogflow
    • Dark
      Light
    • PDF

    Dialogflow

    • Dark
      Light
    • PDF

    Article summary

    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 set up your Dialogflow agent, visit the official Dialogflow documentation.

    Install the Dialogflow app

    It's recommended to install the Dialogflow app from Rocket.Chat marketplace.

    How to get Google credential file or private key file

    To connect to your Dialogflow agent, the Dialogflow app requires the following credentials:

    • Project Id

    • Client email

    • Private Key

    After creating a service account and private key on your Google Cloud Console, download the JSON file containing the key. The file also contains all the necessary credentials.

    Set up Dialogflow

    • Navigate to Administration > Workspace > Users and create a new user with the following roles:

      • bot

      • livechat-agent

    • 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_id property of the Google credentials file.

      • Environment: The environment where the bot is set up.

      • Client Email: The client_email property of the Google credentials file.

      • Private Key: The private_key property 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.

    Add quick replies support to your Dialogflow bot

    • To add quick Replies, use Custom-Payload for Responses on Dialogflow Console.

    • Go to Intent > Responses > Add Responses > Custom Payload.

    • Add the Quick Replies you want, following the structure format in the repository.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence