20.02.2023

Integration of Chat Bot 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.

Integration of Chat Bot with Telegram

Need to integrate a Telegram chatbot?

How to set up Telegram notifications? In this article, we offer a brief guide on how to integrate Oki-Toki with a chatbot in the Telegram messenger.

This article pertains to the tool Oki-Toki for the IT department.

Creating a bot
Integration with a Telegram bot

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

Integration of Telegram chatbot
width="1200"

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

Event Setup
width="1200"

  • Create a new event in the “Integrations” section;
  • In the event, specify the previously created integration; 
  • Next, set up under what conditions the event will be triggered, for example when successfully connected with a client;
  • Also, in the request parameters, specify the data that you need to receive in the chat from the bot, for example call id (Example request, {{session_id}}).

Event Log

To view events and the result of their processing, use the report “Event Log“.

In conclusion, integrating a Telegram chatbot with Oki-Toki is accessible for any company and doesn’t take much time to launch. Using this guide, you can create your own bot and set it up to receive notifications about key events in Oki-Toki.

Rate the news:

Read also

photo
Thursday June 20th, 2024 Customer Data Protection: Exclusive Fields in Projects

Why is it necessary to segment client information in a form? Oki-Toki will enlighten you. The result is – the agent makes fewer mistakes and works faster.

Learn More
photo
Saturday August 8th, 2020 Oki-Toki News Digest for June-July 2020

Oki-Toki News for June-July 2020: Service optimization, revamped report design, new pricing. Read our digest!

Learn More