Track expenses and income in Google Sheets from Telegram with Google Gemini
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Gemini Chat Model and Google Sheets.
How it runs
Trigger: On Telegram events (message).
- Typing... (Telegram): send chat action
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 7 tools (Think, Calculator, add_income, get_income…); memory: Simple Memory
- Markdown to HTML Formatter (Code): runs custom JavaScript code
- Send Error Message (Telegram): uses Telegram
- Send Telegram Message (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent - Expense Tracker (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - Expense Tracker (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Code
n8n-nodes-base.code
From the author
Brief Description: Your personal finance assistant inside Telegram! Chat naturally with an AI agent to track expenses, log income, view spending history, and manage your budget—all through simple conversation. No forms, no spreadsheets, just chat. How it…