Templates / Extract invoice data from Gmail to Google Sheets with PDF.co AI invoice parser

Extract invoice data from Gmail to Google Sheets with PDF.co AI invoice parser

Unknown

by PDF.co · 1 views · created 2026-09-15 · 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 24 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Pdfco (community).

How it runs

Trigger: On Gmail events.

  1. Config (Edit Fields (Set)): sets 5 fields: sheetUrl, alertEmail, highTotalAmount…
  2. Download email and attachments (Gmail): get
  3. One item per PDF (Code): runs custom JavaScript code
  4. Loop over PDFs (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Loop over invoices (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Attach upload URL (Merge): merges the data from its input branches
  7. Upload PDF to PDF.co (PDFco Api): upload file to pdf.co
  8. Read logged invoices (Google Sheets): uses Google Sheets
  9. Attach parse result (Merge): merges the data from its input branches
  10. Parse invoice with AI (PDFco Api): uses PDFco Api

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

Services it uses

GmailGoogle SheetsPdfco (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-pdfco is verified or supports 3.0 (used in Upload PDF to PDF.co, Split into single invoices, Parse invoice with AI).
  • 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 (9)

From the author

Quick overview This workflow monitors a Gmail label for PDF invoice attachments, uploads them to PDF.co for AI invoice parsing, and writes key invoice fields to Google Sheets, then labels each processed email to prevent duplicate processing. How it works 1.…

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