# Log receipt expenses in Notion with Gmail and Telegram: n8n workflow

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

Source: https://millionrounds.com/workflow/log-receipt-expenses-in-notion-with-gmail-and-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)

# Log receipt expenses in Notion with Gmail and Telegram

Started by an incoming Telegram message, and works across Airtable, Gmail, Google Sheets, Notion and two others. It hands the judgement calls to OpenAI. 24 steps, 3 branches, 1 loop or waits: 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%2Flog-receipt-expenses-in-notion-with-gmail-and-telegram)

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

**3** Branches: places the flow splits

**1** Loop or waits

**6** Services it connects to

## The flow

Starts it 3 Model 2 Logic 10 Service 9

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

- 1 **On Workflow Error** Error trigger *Starts it*
- 2 **Gmail Trigger Receipts1** Gmail trigger *Starts it*
- 3 **Telegram Trigger1** Telegram trigger *Starts it*
- 4 **Slack, Send Workflow Error Alert** Slack *Service*
- 5 **Telegram, Send Workflow Error Alert** Telegram *Service*
- 6 **Prepare Email Attachment1** Code *Logic*
- 7 **Has Photo1** If *Logic*
- 8 **Is PDF1** If *Logic*
- 9 **Telegram Get Photo File1** Telegram *Service*
- 10 **Skip - No Photo1** No Op *Logic*
- 11 **Extract PDF Text1** Extract From File *Service*
- 12 **AI Extract Receipt Data (Image)1** Open Ai *Model*
- 13 **Convert Image to Base64 String1** Code *Logic*
- 14 **AI Extract Receipt Data Text1** Open Ai *Model*
- 15 **Parse Receipt JSON1** Code *Logic*
- 16 **Validate & Normalise Fields** Set *Logic*
- 17 **Is High-Value Expense? (>100)** If *Logic*
- 18 **Slack – Flag High-Value for Review** Slack *Service*
- 19 **Sheets – Append to Monthly Expense Log** Google Sheets *Service*
- 20 **Airtable – Log to Finance Tracker** Airtable *Service*
- 21 **Wait 1s – Before Notion Create** Wait *Logic*
- 22 **Create Expense Page1** Notion *Service*
- 23 **Build Confirmation Summary** Code *Logic*
- 24 **Send Telegram Confirmation1** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 24, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable, Gmail, Google Sheets, Notion, Slack, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Airtable, Gmail, Google Sheets, Notion, Slack 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%2Flog-receipt-expenses-in-notion-with-gmail-and-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.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Slack](https://millionrounds.com/workflows?service=Slack#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.

- [**Telegram Expense Tracker with Image and PDF** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/telegram-expense-tracker-with-image-and-pdf)
- [**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)
