Templates / Automated expense tracking from emails & Telegram with Gemini AI & Google Sheets

Automated expense tracking from emails & Telegram with Gemini AI & Google Sheets

Ready for 3.0

by Alex · 1,140 views · created 2025-08-20 · AI Summarization, Multimodal AI

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 23 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Telegram, Google Gemini Chat Model, Gmail and Google Sheets.

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. Information extraction from telegram input (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  2. Extract the email only from specified bank/UPI apps or the transactions made from them (Code): runs custom JavaScript code
  3. Raw check if the transaction is 'Budget' or 'Expense' (If): checks a condition and branches into true / false
  4. Generate the structured data from the raw emails (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  5. Budget information extractor (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  6. Expense information extractor (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
  7. Extract the information and parse it (Information Extractor): extracts structured fields from text with AI, with model: Google Gemini Chat Model
  8. Check if the transaction is 'Budget' or 'Expense' (If): checks a condition and branches into true / false
  9. Check if the transaction is 'Credit' or 'Debit' (If): checks a condition and branches into true / false
  10. Append transaction data to budget sheet (Google Sheets): append

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

Services it uses

TelegramGoogle Gemini Chat ModelGmailGoogle 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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (10)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This n8n template automatically parses bank transaction emails (HDFC, Indian Bank, Indian Overseas Bank, UPI apps like Google pay, Paytm, etc.) - The from…

Excerpt from Alex'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.