# Telegram Expense Tracker with Image and PDF: n8n workflow

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

Source: https://millionrounds.com/workflow/telegram-expense-tracker-with-image-and-pdf (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)

# Telegram Expense Tracker with Image and PDF

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to OpenAI. 24 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%2Ftelegram-expense-tracker-with-image-and-pdf)

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

**6** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 12 Service 8

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Is Callback?** If *Logic*
- 3 **Handle Callback** Code *Logic*
- 4 **Doc / Txt** If *Logic*
- 5 **Has Valid Data?** If *Logic*
- 6 **Set Fields0** Set *Logic*
- 7 **Txt / Aud** If *Logic*
- 8 **Update sheet** Google Sheets *Service*
- 9 **Not found** Telegram *Service*
- 10 **Download File** Telegram *Service*
- 11 **Download Audio** Telegram *Service*
- 12 **Set Fields2** Set *Logic*
- 13 **Final status** Telegram *Service*
- 14 **PDF / IMG** If *Logic*
- 15 **Transcribe** Open Ai *Model*
- 16 **OpenAI** Open Ai *Model*
- 17 **Extract from PDF** Extract From File *Service*
- 18 **Analyze Image** Open Ai *Model*
- 19 **Set Fields1** Set *Logic*
- 20 **If** If *Logic*
- 21 **Review** Telegram *Service*
- 22 **Code** Code *Logic*
- 23 **Store and Format** Code *Logic*
- 24 **Send Payment Options** Http Request *Service*

## How it's built

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

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts, 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 24 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 24 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%2Ftelegram-expense-tracker-with-image-and-pdf)
- **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.

- [**Log receipt expenses in Notion with Gmail and Telegram** 24 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/log-receipt-expenses-in-notion-with-gmail-and-telegram)
- [**Track & query expenses with Telegram and OpenAI** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/track-and-query-expenses-with-telegram-and-openai)
- [**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)
- [**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)
