Skip to main content
Skip table of contents

Bot Connector Configuration Guide

This Bot Connector can be configured to run in integration with any of the following bots. 

  • Rasa Core
  • Botfront
  • Articulate
  • Dialogflow


Environment Variables

Config Parameter

Expected Value

Description

CHAT_SERVER_URL

https://chat:8443

This is the chat docker-service URL.

FILE_ENGINE_URLhttps://{FQDN}/file-engineThis is the file engine url to upload the files
CHANNEL_BOT_MAPPINGweb:BOT_1, whatsapp: BOT_2, facebook: BOT_3A multiple key-value pair set where the key is the channel type and the value is the Bot number. 
BOT_NAMEEF BotWhen 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. 

CONNECTOR_ID

botThis is Bot Connector ID which is used to register Bot Connector with Chat Server. Do not change this value

AMQ_PRIM

activemqActiveMQ primary FQDN
AMQ_SECactivemqActiveMQ secondary FQDN
AMQ_TLS_ENABLEDtrueThis configuration specifies STOMP TLS connection with ActiveMQ
AMQ_CRED_PRIMadmin:adminPrimary ActiveMQ REST API credentials
AMQ_CRED_SECadmin:adminSecondary ActiveMQ REST API credentials
AMQ_CONSUMER_PRIORITY100Do not change, this value is used to select master or slave when deployed in High Availability Mode. This configuration is automatically set by deployment scripts.
CERTIFICATE_PATHhttps_things/localhost.keyReporting Connector certificate file path. This certificate is presented by Reporting Connector to clients when ENABLE_HTTPS is true.
CERTIFICATE_KEY_PATHhttps_things/localhost.keyCorresponding certificate key file of certificate specified in CERTIFICATE_PATH.
CERTIFICATE_AUTHORITY_PATHhttps_things/chat-server.ca-bundleCertificate authority file path for Reporting Connector.
CERTIFICATE_AUTHORITY_PASSPHRASEpasswordCertificate passphrase for Reporting Connector certificate authority.

ENABLE_REPORTING

falseSet to true if the reporting database is integrated.
DEFAULT_BOTBOT_{n}The bot that will be used if no bot match found in channel-bot-mapping.
BOT_{n}_IDbotThe Bot id of this Bot needs to be updated in chat environment variables if modified.

BOT_{n}_TYPE

Rasa

Set the value Rasa when Rasa Core is used. The value is case insensitive.

BOT_{n}_API_URL

https://rasa-hybrid-bot:7500


Only for ARTICULATE and RASA

URL of Rasa Core/Articulate on which it is listening

BOT_{n}_TIMEOUT

10

Only for ARTICULATE and RASA

This is the HTTP request timeout in seconds the Bot-connector awaits for a response from the Rasa bot. 
Note: This timeout variable is only used when BOT_TYPE is Articulate or Rasa

BOT_{n}_BOOTSTRAPfalse

Only for ARTICULATE

  • false - when Articulate Bot agents are already created such as English, French Bot agents.
  • true - when Articulate Bot agents should be created on startup and they don't exist already. 

The values are case sensitive.

BOT_{n}_CONFIG_FILEagent-config.json

Only for ARTICULATE

The file name in which Bot configurations are defined. The default value is agent-config.json.

BOT_{n}_PROJECT_IDenglish2-737d6

Only for DIALOGFLOW

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_{n}_KEY_FILEdialogflow-keyfile.json

Only for DIALOGFLOW

Dialogflow key file name. The default value is dialogflow-keyfile.json.


Integration with Articulate

To access KB UI, you need to access this URL https://<machine-ip>:8282/

Volumes

The path of volume should be ${PWD}/docker/config/bot-connector/agent-config:/usr/src/app/agent-config. In agent-config folder place the agent configuration file (like agent-config.json), and mention your agent configuration file name in the BOT_{n}_CONFIG_FILE environment variable. 

This file contains the settings of Articulate agents and is used to create Bot based on language. If a new Bot needs to be created then we will add the configuration in this file and set the BOT_{n}_BOOTSTRAP environment variable to true.  A sample config file is available here.

Please note that the name of the agent configuration file MUST be matched with the value of the BOT_{n}_CONFIG_FILE environment variable.

Integration with Dialogflow

To integrate with DialogFlow, you should have a DialogFlow subscription. Get started following DialogFlow getting-started guide

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_{n}_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_{n}_KEY_FILE environment variable.


Limitations

If customer enter the HANDOFF_INTENT intent (/human) in chat during the post-chat survey, the chat-server automatically reroute the chat to agents. But agents unable to accept this rerouted chat and customer unable to receive bot responses.



JavaScript errors detected

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

If this problem persists, please contact our support.