Templates / Query expenses on Telegram with GPT-4.1 and Google Sheets

Query expenses on Telegram with GPT-4.1 and Google Sheets

Ready for 3.0

by Robin ✓ · 158 views · created 2026-03-14 · Document Extraction, AI Chatbot

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

  1. If: checks a condition and branches into true / false
  2. If: checks a condition and branches into true / false
  3. If: checks a condition and branches into true / false
  4. LLM | Parse Intent (OpenAI): uses OpenAI
  5. JS | Read Category Callback (Code): runs custom JavaScript code
  6. JS | Read Person Callback (Code): runs custom JavaScript code
  7. JS | Extract Intent JSON (Code): runs custom JavaScript code
  8. HTTP | Forward Category Selection (HTTP Request): calls an HTTP API (POST)
  9. HTTP | Forward Person Selection (HTTP Request): calls an HTTP API (POST)
  10. If: checks a condition and branches into true / false

…plus 62 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 (13)

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…

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.