Automation library · Chat assistants

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.

LargeCalls a model: OpenAIRetrieval

30 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 8Logic 11Service 8

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Window Buffer MemoryMemory Buffer WindowModel
  4. 4Record TransactionTool WorkflowModel
  5. 5CalculatorTool CalculatorModel
  6. 6Get TransactionsNotion ToolService
  7. 7When Executed by Another WorkflowExecute Workflow triggerStarts it
  8. 8When chat message receivedChat triggerStarts it
  9. 9Send Typing IndicatorTelegramService
  10. 10Switch1SwitchLogic
  11. 11Ultimate AssistantAgentModel
  12. 12Transaction ExtractOpen AiModel
  13. 13Transaction Extract1Open AiModel
  14. 14Download FileTelegramService
  15. 15Set 'Text'SetLogic
  16. 16ResponseTelegramService
  17. 17If missing valueIfLogic
  18. 18If missing value1IfLogic
  19. 19TranscribeOpen AiModel
  20. 20Accounts1NotionService
  21. 21Try Again1SetLogic
  22. 22AccountsNotionService
  23. 23Try AgainSetLogic
  24. 24Map Notion AccountCodeLogic
  25. 25MergeMergeLogic
  26. 26Map notion accountCodeLogic
  27. 27Store Abstract NotionNotionService
  28. 28AggregateAggregateLogic
  29. 29Store Abstract Notion1NotionService
  30. 30Success messageSetLogic

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.