Botmother

Service Botmother allows you to create bots to work in various messengers and personal correspondence in social networks: Telegram, VK, Facebook, Viber, Odnoklassniki. All these channels can be connected to Usedesk, and with Botmother we have direct integration.

To integrate Usedesk with Botmother:

1. Open Usedesk and go to the "Channels" section.



2. Click "Add Channel".



3. Select "Chats".



4. Give a name to your chat in the "Name of channel" field.


5. Scroll to the end of the section, copy the widget code and click "Save". The widget will be displayed on your site after you add the widget code to the site settings.



6. Go back to the "Channels" section and click "Add Channel" again.



7. Select the "API" option.


8. Fill in the channel name and tick all the boxes in the "API", "Tracking tickets" and "Tracking chats" sections.


9. In the "Watch channels" field, click on the name of the desired chat from the "Not watch" section. After that, the chat will move to the "Watch" section.


10. Go to the Botmother settings, scroll down to the Usedesk platform, turn on the platform and save.

11. Copy the webhook that appears.

12. Go back to the channel settings and paste the webhook into the "Redirect url" field.


13. Save the changes in Usedesk. After that, new fields will appear that need to be inserted into Botmother settings:

  • from Usedesk settings, copy the value of the "Secret key" field and paste it into the Botmama settings in the "Token" field,
  • add it to the "Path to API" field of the Botmama settings
    https://api.usedesk.ru/
        


If you have your own domain in Usedesk, ask the manager for your path to the API.

14. To get the last parameter "Bot User ID", go to the "Agents" "Bot" section and click on the pencil icon.


15. Copy the number from the end of the address bar.


16. Go back to the Botmother settings and paste this number into the "Bot User ID" field.


Done. You can test the platform by writing to the chat via a widget on your website. If everything is done correctly, you will receive a message from the bot in the same chat.

Important! You cannot open the bot from the Bot settings, since the widget can be connected to any site on any page.

If an error occurs while sending a message, the system will display a notification «Failed to send a message. Please e-mail us at support@usedesk.com» in the upper right corner.

An error will only be visible when sending from the ticket interface.

Our support will advise you what to do.