Templates / Extract and validate invoice data from Gmail to Google Sheets with EmpirioLabs

Extract and validate invoice data from Gmail to Google Sheets with EmpirioLabs

Unknown

by EmpirioLabs AI ✓ · 0 views · created 2026-11-10 · Invoice Processing, AI Summarization

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Empiriolabs (community).

How it runs

Trigger: On Gmail events.

  1. Invoice settings (Edit Fields (Set)): sets 6 fields: spreadsheet_url, sheet_name, reviewer_email…
  2. Split the attachments (Code): runs custom JavaScript code
  3. Read the document (Empiriolabs): read (document)
  4. Text found? (If): checks a condition and branches into true / false
  5. Check the invoice (Code): runs custom JavaScript code
  6. Extract the invoice fields (Empiriolabs): create (chat)
  7. Read the invoice log (Google Sheets): uses Google Sheets
  8. Compare with the log (Code): runs custom JavaScript code
  9. New or changed? (If): checks a condition and branches into true / false
  10. Log the invoice (Google Sheets): append or update

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

Services it uses

GmailGoogle SheetsEmpiriolabs (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-empiriolabs is verified or supports 3.0 (used in Read the document, Extract the invoice fields).
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick Overview This workflow watches Gmail for emails with invoice attachments, uses EmpirioLabs AI to OCR each PDF or image and extract key invoice fields, then logs validated results to Google Sheets and emails a reviewer when an invoice is missing required…

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