Guide: Telegram Bot Workflow
Build a bot that runs a Tensorify workflow on every message (or selected commands) and can reply in the same chat — without hosting your own long-polling server.
Direct answer: Use the Telegram Trigger plugin as the start of the workflow and Telegram Send Message to reply. Telegram delivers updates to your Tensorify webhook URL after you set setWebhook once.
What you will build:
Telegram Trigger → Code (optional) → Telegram Send Message
Time: ~15 minutes
Who this is for: Developers and builders who want Telegram as an input channel for automations or lightweight agents.
Prerequisites:
- Tensorify workspace
- A bot token from @BotFather
- Ability to deploy a workflow (Managed or CLI runner)
- Open app.tensorify.io → New Workflow
- Name it
telegram-bot(or your product name) - Create the workflow
Drag Telegram Trigger onto the canvas.
Typical settings:
- Bot token — from BotFather (prefer a workspace env var, e.g.
TELEGRAM_BOT_TOKEN) - Commands / filters — optional; restrict to
/start,/help, or allow all messages - Confirm the trigger exposes chat id, text, and update payload for downstream nodes
See the Telegram Trigger reference for field-level detail.
Insert Code, AI Agent, or HTTP Request between trigger and reply when you need parsing, tools, or external APIs.
Example Code shape (adjust to the real trigger payload shape you see in the canvas):
text = input.get("text") or input.get("message", {}).get("text", "")
chat_id = input.get("chat_id") or input.get("message", {}).get("chat", {}).get("id")
return {"chat_id": chat_id, "reply": f"You said: {text}"}
Drag Telegram Send Message. Bind:
- Chat ID → from the trigger or Code node
- Text → your reply string
- Bot token → same secret as the trigger
Reference: Telegram Send Message.
- Deploy the workflow (Managed or CLI)
- Copy the public trigger URL Tensorify shows for the Telegram Trigger
- Point Telegram at that URL (Bot API
setWebhookor the method documented on the plugin page)
Send a message to the bot in Telegram. Confirm a job appears under Jobs and a reply lands in the chat.
Does this replace a custom bot server?
For many automations and agent-style bots, yes. You still use BotFather and Telegram’s API; Tensorify owns the workflow runtime.
Can I filter commands only?
Yes — use trigger filters or a Code/If node so only matching messages continue.
How is this different from long polling?
Webhook delivery pushes updates to Tensorify when they happen. No process needs to poll getUpdates on your laptop.
- Telegram Trigger plugin
- Telegram Send Message plugin
- Build a messaging chatbot
- Persona landing: Telegram bots on Tensorify
- Support triage bot that opens a ticket and acknowledges in-chat
- Alert bot that receives ops commands (
/status,/deploy) and runs workflows - Thin UI in front of an AI agent workflow