Templates / Process invoices from Gmail and Drive using Google Gemini, Slack, and Sheets

Process invoices from Gmail and Drive using Google Gemini, Slack, and Sheets

Ready for 3.0

by Muhammad Hammad ✓ · 54 views · created 2026-09-23 · 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 31 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail, Google Drive, Google Gemini and Slack and 1 more.

How it runs

Trigger: On Gmail events (plus 2 other triggers).

  1. Email Attachment Is PDF or Image? (If): checks a condition and branches into true / false
  2. Download Drive File (Google Drive): download
  3. Alert Workflow Failure (Slack): uses Slack
  4. Extract Invoice Data (Email) (Google Gemini): work with document
  5. Mark Unsupported Email As Read (Gmail): mark as read
  6. Drive File Is PDF or Image? (If): checks a condition and branches into true / false
  7. Tag Source Email (Edit Fields (Set)): sets 1 field: source
  8. Notify Unsupported File Type (Slack): uses Slack
  9. Extract Invoice Data (Drive) (Google Gemini): work with document
  10. Combine Extraction Results (Merge): merges the data from its input branches

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

Services it uses

GmailGoogle DriveGoogle GeminiSlackGoogle 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.

Nodes used (12)

From the author

Quick overview This workflow monitors Gmail and a Google Drive folder for new invoice/receipt files, uses Google Gemini to extract structured invoice data and classify expense categories, logs results to Google Sheets, and routes higher-value invoices to…

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