# Route rental payment and receipt messages with Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/route-rental-payment-and-receipt-messages-with-telegram (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)

# Route rental payment and receipt messages with Telegram

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI. 22 steps, 6 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Froute-rental-payment-and-receipt-messages-with-telegram)

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

**6** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 1 Logic 13 Service 7

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Route Telegram Message** Code *Logic*
- 3 **Is Full Receipt Command?** If *Logic*
- 4 **Receipt Parse Message** Code *Logic*
- 5 **Is Receipt Request?** If *Logic*
- 6 **Demo Full Receipt Parsed Reply** Telegram *Service*
- 7 **Get Last Payment For Receipt** Code *Logic*
- 8 **Is Receipt Date Reply?** If *Logic*
- 9 **Has Last Payment?** If *Logic*
- 10 **Build Receipt From Pending Payment** Code *Logic*
- 11 **Tracker Prepare Telegram Text** Code *Logic*
- 12 **Ask Receipt Dates** Telegram *Service*
- 13 **No Last Payment Reply** Telegram *Service*
- 14 **Receipt Details Valid?** If *Logic*
- 15 **Tracker Message a Model** Open Ai *Model*
- 16 **Demo Receipt Ready Reply** Telegram *Service*
- 17 **Receipt Details Error Reply** Telegram *Service*
- 18 **Tracker Normalize AI Output** Code *Logic*
- 19 **Tracker Valid?** If *Logic*
- 20 **Demo Store Last Payment** Code *Logic*
- 21 **Tracker Error Reply** Telegram *Service*
- 22 **Demo Tracker Parsed Reply** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 22, with 6 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for OpenAI. 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 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 22 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%2Froute-rental-payment-and-receipt-messages-with-telegram)
- **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.

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

## Workflows like it

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

- [**Automated expense tracking from emails & Telegram with Gemini** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-expense-tracking-from-emails-and-telegram-with-gem)
- [**Extract invoice data to Excel with Gemini and OCR** 23 steps · calls a model · Excel, Telegram](https://millionrounds.com/workflow/extract-invoice-data-to-excel-with-gemini-and-ocr)
- [**Process invoices & engineering emails with Gmail and Telegram** 23 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/process-invoices-and-engineering-emails-with-gmail-and-teleg)
- [**Process receipts with Google Vision OCR and Telegram** 23 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/process-receipts-with-google-vision-ocr-and-telegram)
- [**Auto invoice & receipt OCR to Google Sheets – Drive, Gmail** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/auto-invoice-and-receipt-ocr-to-google-sheets-drive-gmail)
- [**Telegram payment, invoicing and refund workflow for Stars** 21 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/telegram-payment-invoicing-and-refund-workflow-for-stars)
