Track Telegram expenses with GPT-4 and Google Sheets (self-learning categories)
Ready for 3.0What this workflow does
This AI workflow has 30 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI and Google Sheets.
How it runs
Trigger: On Telegram events (message).
- Security — Allow Approved Chat IDs (If): checks a condition and branches into true / false
- AI — Detect Expense Message (OpenAI): uses OpenAI
- Parse — Expense Detection Output (Edit Fields (Set)): sets or maps fields
- Filter — Only Continue If Expense (If): checks a condition and branches into true / false
- Sheets — Load Existing Categories (Google Sheets): uses Google Sheets
- Format — Build Category Prompt (Code): runs custom JavaScript code
- AI — Classify Expense Category (OpenAI): uses OpenAI
- Parse — Category Classification Output (Edit Fields (Set)): sets or maps fields
- Decision — Category Exists? (If): checks a condition and branches into true / false
- Telegram: send and wait for a reply
…plus 19 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Filter
n8n-nodes-base.filter
From the author
💸 HOW IT WORKS — AI TELEGRAM EXPENSE TRACKER This workflow transforms natural Telegram messages into structured expenses using AI — without forms, manual typing, or complex inputs. Simply send a message like: Groceries 23€ yesterday The workflow validates…