# Handle Telegram support, payments, and logo orders: n8n workflow

> Started by an incoming Telegram message, and works across Google Sheets and Telegram. It puts Gemini and Mistral behind a retrieval step, so answers are...

Source: https://millionrounds.com/workflow/handle-telegram-support-payments-and-logo-orders (Millionrounds; every figure on the page links to its filing or article)

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

# Handle Telegram support, payments, and logo orders

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It puts Gemini and Mistral behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 51 steps, 10 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, Mistral Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-telegram-support-payments-and-logo-orders)

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

**10** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 7 Logic 18 Service 24

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Think** Tool Think *Model*
- 3 **Memory** Memory Buffer Window *Model*
- 4 **Mistral** Lm Chat Mistral Cloud *Model*
- 5 **Schedule Trigger** Schedule trigger *Starts it*
- 6 **Date & Time** Date Time *Logic*
- 7 **Generates AI responses, maintains context, retrieves info** Agent *Model*
- 8 **Research** Agent Tool *Model*
- 9 **Summarizes audio for concise replies1** Agent *Model*
- 10 **Get row(s) in sheet** Google Sheets *Service*
- 11 **Route Types** Switch *Logic*
- 12 **text message replay** Telegram *Service*
- 13 **Switch** Switch *Logic*
- 14 **Limit** Limit *Logic*
- 15 **Code (detect Payment related text)** Code *Logic*
- 16 **Send a voice message reply** Telegram *Service*
- 17 **Code (select the best image quality)** Code *Logic*
- 18 **Send a docs message replay** Telegram *Service*
- 19 **Send video message replay** Telegram *Service*
- 20 **payment Prosess** Telegram *Service*
- 21 **Get Prove form User** Telegram *Service*
- 22 **Send payment issue message** Telegram *Service*
- 23 **Send payment issue** Telegram *Service*
- 24 **How to pay** Telegram *Service*
- 25 **Send payment issue message2** Telegram *Service*
- 26 **Loop Over Items** Split In Batches *Logic*
- 27 **If (again detect Payment related text)** If *Logic*
- 28 **Switch Photo Quality** Switch *Logic*
- 29 **If (check paid status)** If *Logic*
- 30 **If (check new user)** If *Logic*
- 31 **Get a file** Telegram *Service*
- 32 **Paid message** Telegram *Service*
- 33 **UnPaid message** Telegram *Service*
- 34 **Save new user data in sheet** Google Sheets *Service*
- 35 **detect admin related text** Code *Logic*
- 36 **Analyze an image** Google Gemini *Model*
- 37 **Update row in sheet** Google Sheets *Service*
- 38 **new user message to admin** Telegram *Service*
- 39 **If (admin)** If *Logic*
- 40 **If (check payment receipt)** If *Logic*
- 41 **Sent to Admin Talk** Telegram *Service*
- 42 **detect order type text** Code *Logic*
- 43 **Code in JavaScript** Code *Logic*
- 44 **Not Paid message** Telegram *Service*
- 45 **If (order check)** If *Logic*
- 46 **Append row in sheet** Google Sheets *Service*
- 47 **Switch1** Switch *Logic*
- 48 **Send User Payment to Admin** Telegram *Service*
- 49 **Send logo message** Telegram *Service*
- 50 **Send stage message** Telegram *Service*
- 51 **Send banner message** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 51, with 10 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** Gemini, Mistral
- **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 Google Sheets and Telegram accounts, and a key for Gemini and Mistral. 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 Gemini and Mistral. 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 51 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 51 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%2Fhandle-telegram-support-payments-and-logo-orders)
- **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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**WhatsApp productivity assistant with OpenAI and Gmail** 47 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/whatsapp-productivity-assistant-with-openai-and-gmail)
- [**AI-powered receipt and expense tracker with Telegram** 45 steps · calls a model · Google Sheets, Redis](https://millionrounds.com/workflow/ai-powered-receipt-and-expense-tracker-with-telegram)
- [**AI-powered invoice processing automation with Google Sheets** 44 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-powered-invoice-processing-automation-with-google-sheets)
- [**Real-time sales quote creation in Odoo with Telegram** 43 steps · calls a model · Telegram](https://millionrounds.com/workflow/real-time-sales-quote-creation-in-odoo-with-telegram)
- [**Gmail invoice reader with Ollama** 40 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/gmail-invoice-reader-with-ollama)
- [**Payment processing and order tracking with YooKassa** 39 steps · Google Sheets](https://millionrounds.com/workflow/payment-processing-and-order-tracking-with-yookassa)
