Automation library · Data collection

Personal finance tracker with Telegram Bot and Gemini

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

LargeCalls a model: GeminiRetrieval

27 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 1Model 10Logic 6Service 10

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Structured Output ParserOutput Parser StructuredModel
  5. 5CalculatorTool CalculatorModel
  6. 6Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  7. 7Simple Memory1Memory Buffer WindowModel
  8. 8Calculator1Tool CalculatorModel
  9. 9Get row(s) in sheet in Google Sheets1Google Sheets ToolService
  10. 10Google Gemini Chat Model1Lm Chat Google GeminiModel
  11. 11SwitchSwitchLogic
  12. 12AI AgentAgentModel
  13. 13AI Agent1AgentModel
  14. 14Get a file1TelegramService
  15. 15Get a file2TelegramService
  16. 16Append row in sheetGoogle SheetsService
  17. 17Send a text message1TelegramService
  18. 18Code in JavaScriptCodeLogic
  19. 19Upload file1Google DriveService
  20. 20Extract from FileExtract From FileService
  21. 21Send a text messageTelegramService
  22. 22Upload fileGoogle DriveService
  23. 23Analyze an imageGoogle GeminiModel
  24. 24Merge1MergeLogic
  25. 25MergeMergeLogic
  26. 26IfIfLogic
  27. 27Aggregate1AggregateLogic

How it's built

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