Automation library · Money admin

Automated expense tracking with Google Sheets

Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram. It puts Gemini, Mistral and two others behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 31 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, MistralRetrieval

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

The flow

Starts it 2Model 10Logic 8Service 11

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

  1. 1Receipt ParserOutput Parser StructuredModel
  2. 2Telegram Trigger1Telegram triggerStarts it
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5ThinkTool ThinkModel
  6. 6Date & TimeDate Time ToolService
  7. 7Mistral Cloud Chat ModelLm Chat Mistral CloudModel
  8. 8Mistral Cloud Chat Model1Lm Chat Mistral CloudModel
  9. 9OpenAI Chat ModelLm Chat Open AiModel
  10. 10OpenRouter Chat ModelLm Chat Open RouterModel
  11. 11When Executed by Another WorkflowExecute Workflow triggerStarts it
  12. 12Auto-fixing Output ParserOutput Parser AutofixingModel
  13. 13Check for ImageIfLogic
  14. 14AI AgentAgentModel
  15. 15Edit FieldsSetLogic
  16. 16TelegramTelegramService
  17. 17Extract Text InputSetLogic
  18. 18Format Summary MessageCodeLogic
  19. 19Google SheetsGoogle SheetsService
  20. 20Save ReceiptGoogle DriveService
  21. 21Extract Value From ImageTesseract NodeService
  22. 22Mistral UploadHttp RequestService
  23. 23Check Invalid InputIfLogic
  24. 24Send Expense Summary1TelegramService
  25. 25MergeMergeLogic
  26. 26Mistral Signed URLHttp RequestService
  27. 27Send Error MessageTelegramService
  28. 28Send Expense SummaryTelegramService
  29. 29Execute WorkflowExecute WorkflowLogic
  30. 30Mistral DOC OCRHttp RequestService
  31. 31CodeCodeLogic

How it's built

Starts on
An incoming Telegram message
Steps
31, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets, Telegram
Model
Gemini, Mistral, OpenAI, 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 Drive, Google Sheets and Telegram accounts, and a key for Gemini and Mistral. 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 Gemini, Mistral and 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 31 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 31 steps before you point it at anything that matters.