Track Telegram expenses with GPT-4 and Google Sheets (self-learning categories)
πΈ 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 the sender, understands the intent, extracts structured data, and prepares the expense for approval before saving.
ββββββββββββββββ
π WORKFLOW OVERVIEW
π© 1. Secure Input Layer Incoming Telegram messages are checked against a list of approved Chat IDs to ensure only authorized users can create expenses.
π¦ 2. AI Expense Detection An AI layer analyzes the message and decides whether it represents a real financial transaction. Non-expense messages are safely ignored to avoid noise in your data.
π¨ 3. Smart Category Intelligence Existing categories are loaded from Google Sheets and compared with the message content. If no suitable category exists, the workflow can suggest and learn new categories over time.
πͺ 4. Structured Data Extraction AI converts natural language into structured fields:
date
amount
category
description
shared vs personal expense
Supports German and English input.
π₯ 5. Human Approval & Storage Before saving, the user confirms the extracted result directly via Telegram. After approval, the expense is appended to Google Sheets automatically.
ββββββββββββββββ
π SETUP REQUIREMENTS
Before using this workflow, make sure the following components are ready:
1οΈβ£Telegram Bot Create a Telegram bot using BotFather and connect it to the Telegram Trigger node in n8n. Detailed setup instructions can be found here.
2οΈβ£LLM API Access An API Key for a Large Language Model (LLM) is required for:
expense detection
category matching
structured data extraction
Add your API credentials inside the AI node configuration.
3οΈβ£Google Sheets
Create two Google Sheets before importing the workflow.
EXPENSES* Required columns: date, amount, category, description, common_expense, Person
EXPENSE_CATEGORIES* Required columns: category, description, examples
The workflow reads existing data and appends new entries automatically.
ββββββββββββββββ
π‘KEY FEATURES
β’ AI-powered expense detection from natural language β’ Self-learning category system β’ Human-in-the-loop approval step β’ Multi-language support (DE & EN) β’ Clean Google Sheets integration β’ Designed for real-life shared finance tracking
ββββββββββββββββ
π₯MULTI-USER SUPPORT
Built for couples, roommates, or teams.
Add multiple Chat IDs in: Security β Allow Approved Chat IDs
Each expense is automatically tagged with the sender. Shared expenses are stored as true in the common_expense column, while personal expenses default to false unless shared spending is detected.
This allows easy downstream analysis, dashboards, or automation.
Related Templates
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments