Templates / Validate invoice tax compliance from Gmail using Groq, Notion, and Google Sheets

Validate invoice tax compliance from Gmail using Groq, Notion, and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 24 views · created 2026-07-06 · 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 Groq Chat Model, Gmail, Notion and Google Sheets and 2 more.

How it runs

Trigger: On Gmail events.

  1. Fetch Email Attachments (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. Fetch Tax Rules (Notion): get many (database page)
  5. Format AI Output (Edit Fields (Set)): sets 11 fields: invoice_number, po_number, grn_number…
  6. Lookup PO Details (Google Sheets): uses Google Sheets
  7. Consolidate Validation Data (Merge): merges the data from its input branches
  8. Compliance Engine (Code): runs custom JavaScript code
  9. Log Audit Entry (Notion): work with database page
  10. Check Compliance Status (If): checks a condition and branches into true / false

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

Services it uses

Groq Chat ModelGmailNotionGoogle SheetsSlackGoogle Drive

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) (Monitor Inbox).

Nodes used (14)

From the author

Quick overview This workflow monitors a Gmail inbox for PDF invoices, uses Groq (Llama 3.3) to extract structured invoice fields, validates the invoice against Purchase Orders in Google Sheets and tax rules in Notion, logs an audit entry to Notion, and…

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.