Templates / Create numbered PDF invoices from Gmail with Claude, MintPDF, and Google Sheets

Create numbered PDF invoices from Gmail with Claude, MintPDF, and Google Sheets

Unknown

by Peter Hallander · 2 views · created 2026-10-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-10-19.

What this workflow does

This AI workflow has 19 nodes and runs on Gmail events. Along the way it connects Gmail, Anthropic Chat Model, Google Sheets and Google Drive and 1 more.

How it runs

Trigger: On Gmail events.

  1. Invoice settings (Edit Fields (Set)): sets 12 fields: sellerName, sellerAddress, sellerEmail…
  2. Extract customer and line items (Information Extractor): extracts structured fields from text with AI, with model: Claude chat model
  3. Validate items and total in cents (Code): runs custom JavaScript code
  4. Valid invoice request? (If): checks a condition and branches into true / false
  5. Read invoice log (Google Sheets): uses Google Sheets
  6. Log request for review (Google Sheets): append
  7. Number invoice and build HTML (Code): runs custom JavaScript code
  8. Email owner to review (Gmail): uses Gmail
  9. Already invoiced? (If): checks a condition and branches into true / false
  10. Render invoice PDF (Mint Pdf): html to pdf

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

Services it uses

GmailAnthropic Chat ModelGoogle SheetsGoogle DriveMintpdf (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-mintpdf is verified or supports 3.0 (used in Render invoice PDF).
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Nodes used (12)

From the author

Quick overview This workflow polls Gmail for invoice or order request emails, uses Anthropic Claude to extract structured billing details, validates totals, assigns a sequential invoice number from Google Sheets, generates a PDF with MintPDF, replies to the…

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