Docs
Telegram
AgentPlayground can run as a Telegram bot — bidirectional DMs with the coordinator, group
notifications for task completions, and quick Brain commands, all from your phone.
What's real and shipped
- Direct messages to the coordinator — text, voice notes, audio files, photos, and documents. Voice/audio messages are transcribed automatically before being handled.
- Brain commands —
/note <text>saves a note directly to the Brain,/brain <query>semantically searches it,/dailyshows today's daily note. Any other plain text you send is also saved to the vault automatically, not just replied to. - Owner alerts — when an agent hits a
request_human_inputcheckpoint or needs a decision, it can DM you directly instead of waiting silently in a chat window you're not looking at. - Group notifications — task completions and other events can post into a Telegram group, so a small team can watch agent activity together.
Setting it up
- Create a bot with @BotFather on Telegram — you'll get a
TELEGRAM_BOT_TOKEN. - Generate a webhook secret:
openssl rand -hex 20. - Register the webhook: ``
curl "https://api.telegram.org/bot<TOKEN>/setWebhook" \ -d "url=https://<your-domain>/api/telegram/webhook?secret_token=<SECRET>" \ -d "allowed_updates=[\"message\"]"`` - Add
TELEGRAM_BOT_TOKENandTELEGRAM_WEBHOOK_SECRETto your.envfile (see Environment variables). - For group notifications or owner DMs, also set
TELEGRAM_GROUP_CHAT_ID/TELEGRAM_OWNER_CHAT_ID. - Check Settings in the app — it shows whether each of these is actually detected/set, so you can confirm the setup landed correctly without guessing.
- Environment variables
- Drive it from any LLM — a separate, MCP-based integration path for Claude/ChatGPT/etc., not Telegram-specific