Set up a Telegram bot and connect it to your AI team.

Connecting Telegram

Telegram is one of the available messenger channels for communicating with your AI team. Connecting a Telegram bot lets you chat with your agents directly from the messenger.

Setting Up the Bot

1. Create a Bot with BotFather

  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Choose a name (e.g. "My AI Team")
  4. Choose a username (must end in bot, e.g. my_ai_team_bot)
  5. Copy the API token you receive

2. Add a Telegram Channel in Workspace

  1. Open your team in the editor
  2. Click Add Block and select Channel
  3. Choose Telegram from the channel type dropdown
  4. Paste the bot token into Bot Token
  5. Configure the DM Policy (see below)
  6. Save and start (or restart) the team

3. Start Chatting

Open your bot in Telegram and send a message. Your team will respond through the assigned persona.

Access Control

The DM Policy setting controls who can message your bot:

PolicyBehavior
Allowlist (default)Only users listed in Allowed Users can message the bot
OpenAnyone who finds the bot can send messages

When using the allowlist policy, enter comma-separated Telegram usernames (with @) or numeric IDs in the Allowed Users field:

@alice, @bob, 123456789

If DM policy is set to "Allowlist" but no users are listed, nobody will be able to message the bot.

Assigning a Persona

Each channel block can be assigned to a specific persona in your team. The assigned persona handles all incoming messages from that channel. If your team has multiple personas, the channel persona acts as the entry point and can delegate to others based on your instructions.