Automation library · Money admin

Process receipts with Google Vision OCR and Telegram

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It puts OpenRouter behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouterRetrieval

23 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 8Logic 6Service 8

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2OpenRouter Chat ModelLm Chat Open RouterModel
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4OpenRouter Chat Model1Lm Chat Open RouterModel
  5. 5Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  6. 6OpenRouter Chat Model2Lm Chat Open RouterModel
  7. 7Simple MemoryMemory Buffer WindowModel
  8. 8IfIfLogic
  9. 9Basic LLM ChainChain LlmModel
  10. 10Basic LLM Chain1Chain LlmModel
  11. 11AI AgentAgentModel
  12. 12Set Telegram TokenSetLogic
  13. 13Code1CodeLogic
  14. 14Send a text messageTelegramService
  15. 15Send a text message1TelegramService
  16. 16Get PathHttp RequestService
  17. 17Split OutSplit OutLogic
  18. 18Get URLHttp RequestService
  19. 19Append or update row in sheetGoogle SheetsService
  20. 20CodeCodeLogic
  21. 21Set Vision APISetLogic
  22. 22HTTP RequestHttp RequestService
  23. 23Send a text message2TelegramService

How it's built

Starts on
An incoming Telegram message
Steps
23, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
OpenRouter
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 Google Sheets and Telegram accounts, and a key for OpenRouter. 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 OpenRouter. 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 23 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 23 steps before you point it at anything that matters.