20.02.2023

Integrating a Chatbot with Telegram

How to create integration between Oki-Toki and a Telegram-bot, as well as configure a chat-bot, ‘events’, triggering conditions and sending notifications.

Integrating a Chatbot with Telegram

Need to integrate a Telegram chat bot?

How to set up notifications via Telegram? In this article, we offer a small instruction on how to integrate Oki-Toki with a chat bot in the Telegram messenger.

This article is related to Oki-Toki tool for IT department.

Bot creation

\"Integration

  • Create a bot in telegram via @botfather (Write @botfather in Telegram contacts);
  • Then add the created bot to the chat/group;
  • Get the ID of the group in which the created bot is located. To do this, follow the link indicating your bot token, https://api.telegram.org/botYourBotToken/getUpdates and send any message to the previously created group.

 

Telegram chat bot integration

width=\"1200\"

  • Create a new integration in the “External Resources” section;
  • To send a message via Telegram bot, use the following URL: https://api.telegram.org/botYourBotToken/sendMessage ;
  • To send a message to a specific Telegram group, you need to specify the group ID in the “General request parameters” field in the form: chat_id=group ID.

 

Event setup

width=\"1200\"

  • Create a new event in the Integrations section;
  • Specify the previously created integration in the event;
  • Next, configure under what conditions the event will be triggered, for example, upon successful connection with the client ;
  • Also, in the request parameters, specify the data that you need to receive in the chat from the bot, for example, the id of the call (Example request, {{session_id}}).

 

The event log

Use the ” Event Log ” report to view events and the result of their processing.

 

In conclusion, the integration of the Telegram chat bot with Oki-Toki is available for any company and does not take much time to launch. With the help of this instruction, you can create your own bot and configure it to receive notifications about important events in Oki-Toki.

 

Maxim Skomarokha

Rate the news:

Read also

photo
Monday April 18th, 2016 Where in the CRM is Call Information Stored?

How to view the call history of a client without opening the call report? How to highlight among them the important ones or those in which there was a conversation? Considering all this, we have updated contact in CRM.

More
photo
Tuesday September 6th, 2022 Transforming the number to the international format online to Oki-Toki

How to set up number translation in the cloud service for Oki-Toki’s internal and outsourced contact centers.

More