πŸ”¬ Query expenses on Telegram with GPT-4.1 and Google Sheets

⚑ 158 views Β· πŸ”¬ Document Extraction & Analysis

Description

πŸ’¬ 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 that understands natural language, resolves ambiguous categories and person names, and sends back a clean formatted summary in Telegram.

No spreadsheets. No dashboards.
Just chat with your financial data.


⚑ How it works

Simply send a message like:

The workflow automatically:

  1. Parses your intent using GPT-4.1-nano
  2. Resolves categories and person names via mapping tables
  3. Filters and aggregates expense data from Google Sheets
  4. Returns a formatted summary directly in Telegram

If a category or person is unknown, the workflow uses AI to suggest the closest match and asks the user to confirm via Telegram inline buttons.

Confirmed aliases are saved automatically, making the system self-learning over time.


✨ Key Features


πŸ“‹ Requirements

To run this workflow you need:

Required sheets:


⏱ Setup Time

Approx. 15 minutes

All required configuration steps are documented directly inside the workflow using β€œAction Required” notes in each workflow layer.


Examples

image.png

πŸ”— Nodes Used

Google Sheets, HTTP Request, Telegram, Telegram Trigger, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup