Templates / Extract invoice data with Google Gemini, Google Sheets, and Telegram

Extract invoice data with Google Gemini, Google Sheets, and Telegram

Ready for 3.0

by Hồ Đình Huy ✓ · 178 views · created 2026-05-25 · Invoice Processing, AI Summarization

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 15 nodes and runs when someone submits an n8n form (“AI OCR Invoice Upload”) (plus 1 other trigger). Along the way it connects Google Sheets, Google Gemini and Telegram.

How it runs

Trigger: When someone submits an n8n form (“AI OCR Invoice Upload”) (plus 1 other trigger).

  1. Prepare Invoice Input (Code): runs custom JavaScript code
  2. File Is Processable? (If): checks a condition and branches into true / false
  3. Upload a media file (Google Gemini): work with file
  4. Build Invalid File Result (Code): runs custom JavaScript code
  5. If: checks a condition and branches into true / false
  6. Send Telegram Rejection (Telegram): uses Telegram
  7. Analyze document (Google Gemini): work with document
  8. Analyze an image (Google Gemini): analyze (image)
  9. Normalize and Validate (Code): runs custom JavaScript code
  10. Split Out: splits a list into separate items

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

Services it uses

Google SheetsGoogle GeminiTelegram

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 (8)

From the author

Quick overview This workflow accepts invoice PDFs or images from an n8n Form or Telegram, uses Google Gemini to OCR and extract structured invoice fields and line items, appends the results to Google Sheets, and sends a success or rejection notification via…

Excerpt from Hồ Đình Huy'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.