# Track receipt expenses from Telegram with Gemini: n8n workflow

> Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/track-receipt-expenses-from-telegram-with-gemini (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)

# Track receipt expenses from Telegram with Gemini

Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram. It hands the judgement calls to Gemini. 25 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-receipt-expenses-from-telegram-with-gemini)

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

**4** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 8 Service 13

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

- 1 **Build Receipt Schema** Output Parser Structured *Model*
- 2 **When Telegram Message Received** Telegram trigger *Starts it*
- 3 **Google Gemini Vision Model** Lm Chat Google Gemini *Model*
- 4 **AI Receipt Vision Chain** Chain Llm *Model*
- 5 **Normalize Message Fields** Set *Logic*
- 6 **Prepare Extracted Fields** Set *Logic*
- 7 **Send Extraction Failure Notice** Telegram *Service*
- 8 **Route by Message Type** Switch *Logic*
- 9 **Check Existing Expenses in Sheets** Google Sheets *Service*
- 10 **Read All Expenses from Sheets** Google Sheets *Service*
- 11 **Download Receipt File** Telegram *Service*
- 12 **Ask for Receipt Prompt** Telegram *Service*
- 13 **If Receipt Already Processed** If *Logic*
- 14 **Filter Current Month Expenses** Filter *Logic*
- 15 **Upload Receipt to Google Drive** Google Drive *Service*
- 16 **Send Duplicate Receipt Notice** Telegram *Service*
- 17 **If Receipt Needs Review** If *Logic*
- 18 **Summarize by Category** Summarize *Service*
- 19 **Ask Admin for Review Approval** Telegram *Service*
- 20 **Append Expense to Sheets** Google Sheets *Service*
- 21 **Aggregate Category Totals** Aggregate *Logic*
- 22 **If Review Approved** If *Logic*
- 23 **Send Expense Summary via Telegram** Telegram *Service*
- 24 **Send Monthly Totals via Telegram** Telegram *Service*
- 25 **Send Discarded Receipt Notice** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 25, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets, Telegram
- **Model:** Gemini

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 25 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 25 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%2Ftrack-receipt-expenses-from-telegram-with-gemini)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[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.

- [**Automated template delivery system with Stripe and Gmail** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-template-delivery-system-with-stripe-and-gmail)
- [**Create AI proposals from Fireflies transcripts with OpenAI** 25 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/create-ai-proposals-from-fireflies-transcripts-with-openai)
- [**Create cinematic quote videos with Gemini** 25 steps · calls a model · Google Cloud Storage, Google Sheets](https://millionrounds.com/workflow/create-cinematic-quote-videos-with-gemini)
- [**Extract Amazon invoice data with Airtop and OpenAI** 25 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/extract-amazon-invoice-data-with-airtop-and-openai)
- [**Invoice processing with Slack** 25 steps · calls a model · Google Drive, Slack](https://millionrounds.com/workflow/invoice-processing-with-slack)
- [**Generate and track invoices with HubSpot and Gmail** 25 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-track-invoices-with-hubspot-and-gmail)
