Track expenses and monthly budgets from Telegram with OpenAI and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 19 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).
- Set Workflow Configurations (Edit Fields (Set)): sets 5 fields: sheet_url, allowed_chat_id, timezone…
- Authenticate User Chat (Code): runs custom JavaScript code
- Check User Authorization (If): checks a condition and branches into true / false
- Check for Voice Note (If): checks a condition and branches into true / false
- Send Chat ID to Telegram (Telegram): uses Telegram
- Download Voice Note (Telegram): work with file
- Extract Message Content (Code): runs custom JavaScript code
- Convert OGA to OGG (Code): runs custom JavaScript code
- AI Expense Analysis (OpenAI): uses OpenAI
- OpenAI: transcribe (audio)
…plus 8 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow listens for Telegram messages, transcribes voice notes with OpenAI, extracts a structured expense, and appends it to a Google Sheets “Expenses” tab, then replies in Telegram with month-to-date totals and category budget status.…