Templates / Extract and validate invoice data with Google Gemini and Google Sheets

Extract and validate invoice data with Google Gemini and Google Sheets

Ready for 3.0

by Yogyata Mantri ✓ · 29 views · created 2026-07-08 · 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 11 nodes and runs when a chat message arrives. Along the way it connects Google Gemini, Google Sheets and Gmail.

How it runs

Trigger: When a chat message arrives.

  1. Analyze document (Google Gemini): work with document
  2. Code: runs custom JavaScript code
  3. Get row(s) in sheet (Google Sheets): uses Google Sheets
  4. Code: runs custom JavaScript code
  5. If: checks a condition and branches into true / false
  6. Append row in sheet (Google Sheets): append
  7. Code: runs custom JavaScript code
  8. Summarize: summarizes / groups the items
  9. Format Duplicate Alert (Gmail): uses Gmail
  10. Send a message (Gmail): uses Gmail

Services it uses

Google GeminiGoogle 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 (7)

From the author

Quick overview This workflow accepts an invoice file via an n8n chat trigger, uses Google Gemini to extract structured invoice data, validates it against an existing Google Sheets log, appends valid line items to the sheet, and sends a formatted confirmation…

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