Templates / Track receipt expenses from Telegram using Google Gemini and Google Sheets

Track receipt expenses from Telegram using Google Gemini and Google Sheets

Ready for 3.0

by iamvaar ✓ · 25 views · created 2026-08-15 · Invoice Processing, 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 25 nodes and runs on Telegram events (message). Along the way it connects Google Sheets, Telegram, Google Drive and Google Gemini Chat Model.

How it runs

Trigger: On Telegram events (message).

  1. Normalize Message Fields (Edit Fields (Set)): sets 6 fields: chatId, messageId, caption…
  2. Route by Message Type (Switch): routes items into 2 branches
  3. Read All Expenses from Sheets (Google Sheets): uses Google Sheets
  4. Download Receipt File (Telegram): work with file
  5. Ask for Receipt Prompt (Telegram): uses Telegram
  6. Filter: keeps only the items that match a condition
  7. AI Receipt Vision Chain (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Vision Model; output parser: Build Receipt Schema
  8. Upload Receipt to Google Drive (Google Drive): uses Google Drive
  9. Summarize: summarizes / groups the items
  10. Prepare Extracted Fields (Edit Fields (Set)): sets 18 fields: receiptId, receiptKey, messageId…

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

Services it uses

Google SheetsTelegramGoogle DriveGoogle Gemini Chat Model

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

Quick overview Youtube Video: https://youtu.be/7GqvPmAHm1A This workflow captures receipt photos sent to a Telegram bot, uses Google Gemini (via an AI agent) to extract structured expense details, checks Google Sheets for duplicates by message ID, and either…

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