- Home
- Skills
- Workflow Automation
- n8n Telegram Bot Builder
n8n Telegram Bot Builder
by AMIN REDA
Design conversational Telegram bots in n8n with AI replies, session state, confirm/reject buttons that cannot double-fire, and automatic cleanup.
Free
About this skill
Design Telegram bots in n8n that hold real conversations and survive real users.
- Bot setup. Create the bot with BotFather, store the token in n8n credentials, and use the Telegram Trigger node for
messageandcallback_queryupdates. - Route update types. Add a Switch node: text message, button callback, command (
/start,/help,/cancel), photo or other media. Unsupported types get a friendly reply. - Session state. Keep one record per
chat_idin a Sheet, data table or Redis with fields such asstep,collected_data(JSON),last_activity.- Load the session at the start of each update; create it on
/start. - Save after every step.
/cancelclears it.
- Load the session at the start of each update; create it on
- Conversational AI step. Pass the new message plus the saved
collected_datato an AI Agent that returns JSON: extracted fields,missing_fields, and areply_text. If fields are missing, send one clear clarifying question, not a list of ten. - Confirm before acting. Show a summary with Confirm / Edit / Cancel inline buttons. Only perform the real action after Confirm.
- Buttons without duplicates. Put an action and record id in
callback_data. On click:- Answer the callback query right away to stop the spinner.
- Check the record's current status; if already decided, reply "already handled" and stop.
- Otherwise update status first, then perform the action, then edit the original message to remove the buttons.
- Timeout cleanup. Add a Schedule Trigger (for example hourly) that finds sessions whose
last_activityis older than the limit, resets them, and optionally sends a short "session closed" message. - Error handling. Wrap external calls with retries; on failure tell the user plainly and alert the owner via an Error Trigger workflow.
Designs the bot flow and prompts; it does not create the bot or deploy the workflow for you.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
- Accounts
- n8nA Telegram bot token (BotFather)An LLM API key
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.