Telegram
Integrate your AI Agent with Telegram for direct user messaging. You connect a single Telegram bot to your deployment using a Bot Token from Telegram’s @BotFather. Kaily verifies the token, registers the Telegram webhook for you, and routes conversations to your AI Agent.
1. Open Telegram setup
- In the Kaily dashboard, go to Deploy.
- Find the Telegram card and choose Setup Now (or the equivalent entry point for your workspace).
The setup view explains that you are connecting Telegram for direct user messaging and shows Bot Credentials on the left, with How to get your Telegram bot token on the right.
2. Create a bot and copy the token (BotFather)
Use Telegram’s official @BotFather bot to create a bot and obtain its token.
-
Open Telegram and search for @BotFather, or open it directly using the link above. BotFather is Telegram’s official bot for creating and managing bots.
-
Send
/newbotto BotFather and follow the prompts to create a new bot for your AI Agent. -
Enter a display name for your bot, then choose a unique username that ends with
bot(for examplekaily_agent_bot). If the username is taken, BotFather will ask you to try another one. -
When setup is complete, BotFather sends a Bot Token. It looks like
123456:ABCdef_xyz. -
In Kaily, paste the token into the Bot Token field. The helper text Get this from @BotFather on Telegram reminds you where the value comes from. Click Save to store the token and connect your bot.
Paste the token, confirm the helper text matches BotFather, then click Save.
Do not share your bot token in chat, email, or public repositories. If a token is exposed, revoke it in BotFather and generate a new one before reconnecting in Kaily.
3. Test your bot
- In Telegram, open a chat with your bot (using the username you set in BotFather).
- Send a message; your AI Agent should respond according to your copilot configuration and knowledge base.
If something fails, confirm the bot is active in BotFather, the token matches the latest value from BotFather, and you are messaging the correct @username.