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
Open Telegram and search for
BotFatherin the search field.Click BotFather and click Start.
Send the message
/newbot.Enter a display name for your bot (e.g.,
Mike).Enter a unique username for your bot. The username must end in
botand be a single word (e.g.,newo_bot).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
Navigate to the Integrations page and click the plus icon on the Telegram Integration item.
Fill in the Title and Idn fields (e.g.,
telegram_connectorfor both).Paste the HTTP API token into the Telegram API Token field.
Select the AI Employee you want to respond to Telegram messages.
Click Save.
Enable the Telegram connector
Click the three dots icon next to the connector you created.
Click Run.
Create an event subscription
Navigate to the Flow of the AI Employee you selected when creating the connector.
Click the plus icon next to the Event Subscription section on the left-side panel.
Set the following fields:
Event Idn: Select
user_messagefrom the dropdown.Integration: Select
telegramfrom the dropdown.Connector: Select
telegram_connectorfrom the dropdown.Skill selector: Select
skill_idnfrom the dropdown.Skill name: Select the main Skill of your AI Employee.
Optionally, add an Event description to identify this event subscription in complex Flows.
Click Create.
Test the integration
Click Save and Publish in the top-right corner of the Flow Builder.
Open your Telegram bot and click Start.
Send a message. Your AI Employee should respond.
