Templates / Track Telegram expenses with GPT-4 and Google Sheets (self-learning categories)

Track Telegram expenses with GPT-4 and Google Sheets (self-learning categories)

Ready for 3.0

by Robin ✓ · 96 views · created 2026-02-24 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Security — Allow Approved Chat IDs (If): checks a condition and branches into true / false
  2. AI — Detect Expense Message (OpenAI): uses OpenAI
  3. Parse — Expense Detection Output (Edit Fields (Set)): sets or maps fields
  4. Filter — Only Continue If Expense (If): checks a condition and branches into true / false
  5. Sheets — Load Existing Categories (Google Sheets): uses Google Sheets
  6. Format — Build Category Prompt (Code): runs custom JavaScript code
  7. AI — Classify Expense Category (OpenAI): uses OpenAI
  8. Parse — Category Classification Output (Edit Fields (Set)): sets or maps fields
  9. Decision — Category Exists? (If): checks a condition and branches into true / false
  10. Telegram: send and wait for a reply

…plus 19 more steps. See the full node list below.

Services it uses

TelegramOpenAIGoogle Sheets

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)

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…

Excerpt from Robin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.