Templates / Save, extract, and log email invoices with Gmail, Drive, Sheets, Claude, and PDF.co

Save, extract, and log email invoices with Gmail, Drive, Sheets, Claude, and PDF.co

Unknown

by Ioana · 29 views · created 2026-10-18 · 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 AI workflow has 29 nodes and runs on Gmail events. Along the way it connects Gmail, Google Drive, Anthropic and Google Sheets and 1 more.

How it runs

Trigger: On Gmail events.

  1. Settings (Edit Fields (Set)): sets 3 fields: invoicesFolderId, filePreviousMonth, renderLinkDomains
  2. Compute accounting month (Code): runs custom JavaScript code
  3. Loop over emails (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Find year folder (Google Drive): work with file folder
  5. Year folder exists? (If): checks a condition and branches into true / false
  6. Year folder ID (Edit Fields (Set)): sets 1 field: yearFolderId
  7. Create year folder (Google Drive): work with folder
  8. Find month folder (Google Drive): work with file folder
  9. Month folder exists? (If): checks a condition and branches into true / false
  10. Collect invoice files (Code): runs custom JavaScript code

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

Services it uses

GmailGoogle DriveAnthropicGoogle 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 Render page as PDF).
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 (12)

From the author

Quick overview This workflow checks Gmail for invoice emails, saves PDF invoices to Google Drive in automatically created YYYY/YYYY-MM folders, extracts key invoice fields with Anthropic Claude, and logs each invoice in a monthly Google Sheets spreadsheet…

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