Templates / Validate invoice readiness with Gmail, Google Sheets and Groq/OpenAI

Validate invoice readiness with Gmail, Google Sheets and Groq/OpenAI

Ready for 3.0

by WeblineIndia ✓ · 8 views · created 2026-07-27 · 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 23 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Groq Chat Model.

How it runs

Trigger: On Gmail events.

  1. Download Email Data (Gmail): get
  2. Read PDF Content (Extract from File): extracts data from a file (pdf)
  3. AI Extract Invoice (Basic LLM Chain): sends a prompt to an LLM, with model: LLM; output parser: Invoice Field Schema
  4. Clean Extracted Fields (Edit Fields (Set)): sets 10 fields: invoice_number, po_number, grn_number…
  5. Search ERP for PO (Google Sheets): uses Google Sheets
  6. Join Invoice & ERP Data (Merge): merges the data from its input branches
  7. Check if PO Exists (If): checks a condition and branches into true / false
  8. Run Data Integrity Checks (Code): runs custom JavaScript code
  9. Notify Supplier: PO Not Found (Gmail): uses Gmail
  10. Check Validation Success (If): checks a condition and branches into true / false

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

Services it uses

GmailGoogle SheetsGroq Chat Model

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) (Watch New Invoices).

Nodes used (11)

From the author

Quick overview This workflow monitors Gmail for invoice emails, extracts structured fields from attached PDFs using Groq LLMs, validates invoices against Purchase Orders stored in Google Sheets, predicts rejection risk with an LLM, emails suppliers about…

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