Skip to main content

Telegram integration

Updated this week

This guide explains how to connect Telegram to your AI Employee using a Telegram Bot. Once configured, customers can message your Telegram bot and receive responses from your AI Employee.

Prerequisites

  • A Telegram account (mobile, desktop, or web).

  • An existing AI Employee with a published Flow.

Create a Telegram bot

  1. Open Telegram and search for BotFather in the search field.

  2. Click BotFather and click Start.

  3. Send the message /newbot.

  4. Enter a display name for your bot (e.g., Mike).

  5. Enter a unique username for your bot. The username must end in bot and be a single word (e.g., newo_bot).

  6. Copy the HTTP API token to your clipboard. You can also access your bot at t.me/[bot_username].

πŸ—’οΈ NOTE

The bot username must be globally unique across Telegram. If the username is already taken, BotFather will ask you to choose a different one.

Create a Telegram connector

  1. Navigate to the Integrations page and click the plus icon on the Telegram Integration item.

  2. Fill in the Title and Idn fields (e.g., telegram_connector for both).

  3. Paste the HTTP API token into the Telegram API Token field.

  4. Select the AI Employee you want to respond to Telegram messages.

  5. Click Save.

Enable the Telegram connector

  1. Click the three dots icon next to the connector you created.

  2. Click Run.

Create an event subscription

  1. Navigate to the Flow of the AI Employee you selected when creating the connector.

  2. Click the plus icon next to the Event Subscription section on the left-side panel.

  3. Set the following fields:

  4. Event Idn: Select user_message from the dropdown.

  5. Integration: Select telegram from the dropdown.

  6. Connector: Select telegram_connector from the dropdown.

  7. Skill selector: Select skill_idn from the dropdown.

  8. Skill name: Select the main Skill of your AI Employee.

  9. Optionally, add an Event description to identify this event subscription in complex Flows.

  10. Click Create.

Test the integration

  1. Click Save and Publish in the top-right corner of the Flow Builder.

  2. Open your Telegram bot and click Start.

  3. Send a message. Your AI Employee should respond.

Did this answer your question?