Configure the main settings:
- Ask your system administrator to enable the bot.connect mode in the edna database settings.
Script:INSERT INTO settings (id, key, value) VALUES (nextval('settings_id_seq'), 'bot.connect.enabled', 'true');
- Old mode must be disabled as follows:
Script:UPDATE settings SET VALUE = 'false' WHERE key='external-bot.enabled'
- Get the chatbot web service URL that handles client messages and init-chat requests.
- Ask the admin to:
- Create a chatbot in the admin WP (item “Chatbot”)
- Set the chatbot to the READY mode
- Add the chatbot to routing as the first step
- Create an authorization token for the bot
- Provide the authorization token to the bot server.
- For testing purposes, send the first message as a client. The chatbot server has to get the MESSAGE webhook.
- Send a reply to the message, see the Customize clientData in Webhook Content article.