Templates / File supplier invoices from Gmail to Google Sheets with Gemini and Telegram alerts

File supplier invoices from Gmail to Google Sheets with Gemini and Telegram alerts

Ready for 3.0

by Cristian Dinca ✓ · 14 views · created 2026-08-18 · 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 17 nodes and runs on Gmail events. Along the way it connects Gmail, Google Drive, Google Gemini Chat Model and Telegram and 1 more.

How it runs

Trigger: On Gmail events.

  1. Your settings (Edit Fields (Set)): sets 3 fields: telegram_chat_id, sheet_url, drive_folder_url
  2. Read the PDF (Extract from File): extracts data from a file (pdf)
  3. Archive a copy in Drive (Google Drive): uses Google Drive
  4. Gemini pulls the numbers out (Information Extractor): extracts structured fields from text with AI, with model: Gemini 2.5 Flash
  5. Tidy up what Gemini found (Code): runs custom JavaScript code
  6. Did it read cleanly? (If): checks a condition and branches into true / false
  7. What's already filed (Google Sheets): uses Google Sheets
  8. Park it for a human (Telegram): uses Telegram
  9. Duplicate check & decide (Code): runs custom JavaScript code
  10. Safe to write? (If): checks a condition and branches into true / false

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

Services it uses

GmailGoogle DriveGoogle Gemini Chat ModelTelegramGoogle 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) (Invoice lands in the inbox).

Nodes used (11)

From the author

Quick overview This workflow monitors Gmail for unread emails with PDF invoice attachments, extracts key invoice fields from the PDF text, checks Google Sheets for duplicates, and either appends a clean row to an Invoices sheet or sends a Telegram message to…

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