Query expenses on Telegram with GPT-4.1 and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 73 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram, OpenAI and Google Sheets.
How it runs
Trigger: On Telegram events (message, callback query).
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- LLM | Parse Intent (OpenAI): uses OpenAI
- JS | Read Category Callback (Code): runs custom JavaScript code
- JS | Read Person Callback (Code): runs custom JavaScript code
- JS | Extract Intent JSON (Code): runs custom JavaScript code
- HTTP | Forward Category Selection (HTTP Request): calls an HTTP API (POST)
- HTTP | Forward Person Selection (HTTP Request): calls an HTTP API (POST)
- If: checks a condition and branches into true / false
…plus 62 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 (13)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Telegram
n8n-nodes-base.telegram - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set - Aggregate
n8n-nodes-base.aggregate - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest
From the author
💬 Chat with Your Finances on Telegram Ask questions like “How much did I spend on food last month?” and get instant answers from your financial data — directly in Telegram. This workflow connects your Google Sheets expense log to an AI-powered query engine…