# Automate Telegram support handover from AI to humans with GPT4: n8n workflow

> Started by an incoming Telegram message, and works across Email, Telegram and n8n data table.

Source: https://millionrounds.com/workflow/automate-telegram-support-handover-from-ai-to-humans-with-gp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Customer support](https://millionrounds.com/workflows?category=Customer+support#library)

# Automate Telegram support handover from AI to humans with GPT4

Started by an incoming Telegram message, and works across Email, Telegram and n8n data table. It puts Azure OpenAI and OpenRouter behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 8 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Azure OpenAI, OpenRouter Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-telegram-support-handover-from-ai-to-humans-with-gp)

**33 steps** Large: read it before trusting it with anything live

**8** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 4 Logic 11 Service 16

The steps in the order they run, from what starts it.

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 3 **Simple Memory** Memory Buffer Window *Model*
- 4 **Reply To User** Telegram Tool *Service*
- 5 **Azure OpenAI Chat Model** Lm Chat Azure Open Ai *Model*
- 6 **Chat Admins** Http Request *Service*
- 7 **Personal Trigger** Telegram trigger *Starts it*
- 8 **Topic Message** If *Logic*
- 9 **AI Agent** Agent *Model*
- 10 **Personal** Set *Logic*
- 11 **Exit** If *Logic*
- 12 **Text Message** If *Logic*
- 13 **Human Requested** If *Logic*
- 14 **Close Topic** Http Request *Service*
- 15 **Forward Message** Http Request *Service*
- 16 **Configuration** Set *Logic*
- 17 **Stop Workflow** No Op *Logic*
- 18 **Confirm Operator** Telegram *Service*
- 19 **Last Message Exists** Data Table *Service*
- 20 **Update Closed Topic** Data Table *Service*
- 21 **Get Temporary Message** Data Table *Service*
- 22 **User Approved** If *Logic*
- 23 **Row is Empty** If *Logic*
- 24 **Message Router** Switch *Logic*
- 25 **Alert Operator** Email Send *Service*
- 26 **Create Temporary Message** Data Table *Service*
- 27 **Update Last Message** Data Table *Service*
- 28 **Forward Message To Group** Http Request *Service*
- 29 **Operator Confirmed** If *Logic*
- 30 **Operator Attendance** Telegram *Service*
- 31 **Operator Declined Attendance** Telegram *Service*
- 32 **Create Topic** Http Request *Service*
- 33 **Update Temporary Message** Data Table *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 33, with 8 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Telegram, n8n data table
- **Model:** Azure OpenAI, OpenRouter
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Email and Telegram accounts, and a key for Azure OpenAI and OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Azure OpenAI and OpenRouter. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-telegram-support-handover-from-ai-to-humans-with-gp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Automated customer support system with Gmail** 31 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-customer-support-system-with-gmail)
- [**Advanced Telegram bot, ticketing system, liveChat, user** 31 steps · Redis, Telegram](https://millionrounds.com/workflow/advanced-telegram-bot-ticketing-system-livechat-user)
- [**Route WhatsApp support requests with Claude and Supabase** 37 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/route-whatsapp-support-requests-with-claude-and-supabase)
- [**Answer FAQs and route Telegram users to support with Postgres** 29 steps · Postgres, Telegram](https://millionrounds.com/workflow/answer-faqs-and-route-telegram-users-to-support-with-postgre)
- [**Answer Telegram data questions with DeepSeek and Open-Meteo** 25 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/answer-telegram-data-questions-with-deepseek-and-open-meteo)
- [**Telegram request router with DeepSeek and OpenAI** 25 steps · calls a model · Telegram](https://millionrounds.com/workflow/telegram-request-router-with-deepseek-and-openai)
