Skip to main content
Skip table of contents

Dialogflow

Integration with Dialogflow

To integrate the Expertflow Hybrid Chat solution with DialogFlow, you should have a DialogFlow subscription.

Get started following DialogFlow getting-started guide

Environment Variables

Config Parameter

Expected Value

Notes

CHAT_SERVER_URL

https://chat:8443

This is the chat docker-service URL.

BOT_IDbotBot id of this bot, need to update in chat environment variables if modified

BOT_NAME

EF Bot

When the bot joins a conversation, this is the name displayed on the customer gadget as the Bot's display name. The default value is EF Bot. It can be any alphanumeric string. 

BOT_TYPE

Dialogflow

Set the value to Dialogflow when Google Dialogflow is used. The value is case insensitive.

FAILURE_MESSAGE

<Deprecated>

Bot service is not available, we are finding an agent for you

This is the default message to the customer when the bot-connector experiences any problems connecting the Bot
PROJECT_IDenglish2-737d6

Once you have created DialogFlow Agent, specify the Project ID against this attribute. In DialogFlow, you can find it under DialogFlow Agent Settings. The Project_ID is necessary in order to get the authentication and get access to the Dialogflow libraries.

BOT_KEY_FILEdialogflow-keyfile.jsonDialogflow key file name

Volumes

The path of volume should be ${PWD}/docker/config/bot-connector/dialogflow-key:/usr/src/app/dialogflow-key. In the Dialogflow-key folder, place the key file which you can get from the Dialogflow account, and mention your key file name in the BOT_KEY_FILE environment variable.

Follow this guide to get this key file. This file contains the authentication settings used to authenticate your Dialogflow client library with google. 

Please note that the name of the key file MUST be matched with the value of the BOT_KEY_FILE environment variable.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.