Templates / Track employee expense receipts from Telegram with GPT-4o-mini and Google Sheets

Track employee expense receipts from Telegram with GPT-4o-mini and Google Sheets

Ready for 3.0

by Vitaliy Voitik ✓ · 6 views · created 2026-09-04 · Document Extraction, 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 34 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Telegram, OpenAI, Google Sheets and Gmail.

How it runs

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

  1. Check for Receipt Photo (If): checks a condition and branches into true / false
  2. Gather Expenses for Report (Google Sheets): uses Google Sheets
  3. Prepare Submission Data (Edit Fields (Set)): sets 9 fields: chat_id, message_id, user_id…
  4. Request Receipt Photo (Telegram): uses Telegram
  5. Filter: keeps only the items that match a condition
  6. AI Analyze Receipt Photo (OpenAI): analyze (image)
  7. Create Monthly Expense Report (Code): runs custom JavaScript code
  8. Extract Expense Details (Code): runs custom JavaScript code
  9. Record AI Error State (Edit Fields (Set)): sets 3 fields: chat_id, message_id, error_message
  10. Send Monthly Report via Email (Gmail): uses Gmail

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

Services it uses

TelegramOpenAIGoogle SheetsGmail

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 This workflow collects receipt photos via Telegram, uses OpenAI GPT-4o-mini Vision to extract expense details, checks them against a Google Sheets policy and existing claims, routes items for auto-approval or manager approval in Telegram,…

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