Templates / Log Gmail invoice and receipt attachments in Google Sheets

Log Gmail invoice and receipt attachments in Google Sheets

Ready for 3.0

by Ahnaf Mahdi · 0 views · created 2026-11-24 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 16 nodes and runs on Gmail events. Along the way it connects Gmail and Google Sheets.

How it runs

Trigger: On Gmail events.

  1. Set sheet URL and search terms (Edit Fields (Set)): sets 4 fields: sheet_url, sheet_name, owner_email…
  2. Split attachments or use the email body (Code): runs custom JavaScript code
  3. Is a PDF? (If): checks a condition and branches into true / false
  4. Extract text from PDF (Extract from File): extracts data from a file (pdf)
  5. Is a CSV? (If): checks a condition and branches into true / false
  6. Parse invoice and receipt fields (Code): runs custom JavaScript code
  7. Extract rows from CSV (Extract from File): extracts data from a file (csv)
  8. Is an Excel file? (If): checks a condition and branches into true / false
  9. Ready to log? (If): checks a condition and branches into true / false
  10. Extract rows from Excel (Extract from File): extracts data from a file (xlsx)

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

Services it uses

GmailGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Watch invoice and receipt emails).

Nodes used (8)

From the author

Quick overview This workflow polls Gmail for unread invoice or receipt emails, extracts text from PDF/CSV/Excel attachments (or uses the email body), parses key billing fields, and logs new entries to a Google Sheets “Invoices” tab, creating a Gmail draft for…

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