Overview
An n8n workflow turns new customer emails and contact-form messages into tasks with draft replies, and sends each draft to the owner in Telegram with Approve and Decline buttons before anything goes out.
Problem or Objective
- Which agents answer customer questions from your own help content?
- Which agents sort email, draft replies and clear the backlog for you?
More in Workflow Automation
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Telegram
- Prerequisites
- An n8n instance, a chat model API key, a Telegram bot, and access to your support mailbox, contact form and task tracker.
How It Works
Build the workflow in n8n, self-hosted or on n8n Cloud. Start it from new messages in your support mailbox and from your contact form; check whether n8n has a trigger for your mail provider and form tool, or use a webhook. Pass each message to an AI Agent node with a chat model and your help text, and ask for a short category, a task title and a draft reply. Create the task in your tracker, then use the Telegram node's Send and Wait for Response operation to send the owner the message, the draft and Approve and Decline buttons, with Approve Within Chat turned on and Restrict Who Can Approve set to the owner's Telegram user ID. Only on Approve does the workflow send the reply and mark the task as answered; on Decline it leaves the task open for a manual answer.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Telegram.
- Check the prerequisitesAn n8n instance, a chat model API key, a Telegram bot, and access to your support mailbox, contact form and task tracker.
- Gather your detailsCollect what the prompt asks for: Business name, Allowed categories, Help text or FAQ.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Draft a reply to a customer message
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You help [Business name] answer customer messages. Read the message below and return three things: a category from [Allowed categories], a task title of at most eight words, and a short, polite draft reply that uses only facts from [Help text or FAQ]. If the sender asks about an account or an order, do not include any account or order details; ask them to confirm their identity instead. If you cannot answer from the help text, say so in the draft. The draft will be sent to the owner for approval and is never sent without it.Every draft goes to the owner in Telegram first; the workflow sends the reply only after the owner taps Approve.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs describe an AI Agent node that calls tools to finish a task, and a Telegram operation that sends a message and pauses the workflow until the user confirms, with buttons and a list of user IDs allowed to approve. The pages do not name a specific mailbox, form tool or task tracker, so those connections are unverified for your setup.
Limitations and Considerations
Approve Within Chat needs your n8n instance reachable from the internet over HTTPS on a port Telegram supports; otherwise the buttons fall back to links that open in a browser, and the Restrict Who Can Approve setting is only offered with Approve Within Chat on. If you set Limit Wait Time, the workflow resumes when the time runs out; route that case to the same branch as Decline so nothing is sent without a tap on Approve. Never let a draft include anything from a customer's account until you know the sender owns it, and keep the bot token and mail credentials in n8n credentials, not in the prompt. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Message operations | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 00:16 UTC
What this source supports
- The Send and Wait for Response operation sends a message to the chat using the Bot API sendMessage method and pauses the workflow execution until the user confirms the operation.
- Restrict Who Can Approve sets the Telegram user IDs allowed to approve or decline.
- To use Approve Within Chat, your n8n instance must be reachable from the internet over HTTPS, on port 443, 80, 88, or 8443; if it is not, the node falls back to sending link buttons instead.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.
- n8n-io/n8n README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Combine a visual canvas with custom code, run it self-hosted or in the cloud, and connect to 1500+ integrations.

