Create numbered PDF invoices from Gmail with Claude, MintPDF, and Google Sheets
UnknownWhat 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.
- Invoice settings (Edit Fields (Set)): sets 12 fields: sellerName, sellerAddress, sellerEmail…
- Extract customer and line items (Information Extractor): extracts structured fields from text with AI, with model: Claude chat model
- Validate items and total in cents (Code): runs custom JavaScript code
- Valid invoice request? (If): checks a condition and branches into true / false
- Read invoice log (Google Sheets): uses Google Sheets
- Log request for review (Google Sheets): append
- Number invoice and build HTML (Code): runs custom JavaScript code
- Email owner to review (Gmail): uses Gmail
- Already invoiced? (If): checks a condition and branches into true / false
- Render invoice PDF (Mint Pdf): html to pdf
…plus 6 more steps. See the full node list below.
Services it uses
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)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - Mint Pdf
n8n-nodes-mintpdf.mintPdf - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge
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…