# Finance transaction auto record into Notion with OpenAI: n8n workflow

> Started by an incoming Telegram message, and works across Notion and Telegram. It puts OpenAI behind a retrieval step, so answers are drawn from documents...

Source: https://millionrounds.com/workflow/finance-transaction-auto-record-into-notion-with-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Finance transaction auto record into Notion with OpenAI

Started by an incoming Telegram message, and works across Notion and Telegram. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ffinance-transaction-auto-record-into-notion-with-openai)

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

**3** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Model 8 Logic 11 Service 8

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Window Buffer Memory** Memory Buffer Window *Model*
- 4 **Record Transaction** Tool Workflow *Model*
- 5 **Calculator** Tool Calculator *Model*
- 6 **Get Transactions** Notion Tool *Service*
- 7 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 8 **When chat message received** Chat trigger *Starts it*
- 9 **Send Typing Indicator** Telegram *Service*
- 10 **Switch1** Switch *Logic*
- 11 **Ultimate Assistant** Agent *Model*
- 12 **Transaction Extract** Open Ai *Model*
- 13 **Transaction Extract1** Open Ai *Model*
- 14 **Download File** Telegram *Service*
- 15 **Set 'Text'** Set *Logic*
- 16 **Response** Telegram *Service*
- 17 **If missing value** If *Logic*
- 18 **If missing value1** If *Logic*
- 19 **Transcribe** Open Ai *Model*
- 20 **Accounts1** Notion *Service*
- 21 **Try Again1** Set *Logic*
- 22 **Accounts** Notion *Service*
- 23 **Try Again** Set *Logic*
- 24 **Map Notion Account** Code *Logic*
- 25 **Merge** Merge *Logic*
- 26 **Map notion account** Code *Logic*
- 27 **Store Abstract Notion** Notion *Service*
- 28 **Aggregate** Aggregate *Logic*
- 29 **Store Abstract Notion1** Notion *Service*
- 30 **Success message** Set *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 30, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Notion, Telegram
- **Model:** OpenAI
- **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 Notion 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. 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 30 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 30 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%2Ffinance-transaction-auto-record-into-notion-with-openai)
- **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.

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

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Basic RAG system with Claude and OpenAI** 29 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/basic-rag-system-with-claude-and-openai)
- [**Build a Telegram AI chatbot with Trilox and OpenAI** 29 steps · calls a model · Telegram](https://millionrounds.com/workflow/build-a-telegram-ai-chatbot-with-trilox-and-openai)
- [**Company knowledge base agent (RAG) with OpenAI** 31 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/company-knowledge-base-agent-rag-with-openai)
- [**Create a session-based Telegram chatbot with OpenAI** 31 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/create-a-session-based-telegram-chatbot-with-openai)
- [**Find and rank job listings from Adzuna and Remotive** 29 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/find-and-rank-job-listings-from-adzuna-and-remotive)
- [**Get Colombian peso to USD exchange rate with Telegram** 29 steps · calls a model · Telegram](https://millionrounds.com/workflow/get-colombian-peso-to-usd-exchange-rate-with-telegram)
