Templates / Smart invoice collection system with GPT-4.1, Gmail & Google Sheets

Smart invoice collection system with GPT-4.1, Gmail & Google Sheets

Ready for 3.0

by Nick Saraev ✓ · 6,031 views · created 2025-06-26 · Invoice Processing, Multimodal AI

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-10-19.

What this workflow does

This AI workflow has 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets, Gmail and OpenAI.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Google Sheets: uses Google Sheets
  2. Edit Fields (Edit Fields (Set)): sets 3 fields: daysSinceSent, email, firstName
  3. Filter: keeps only the items that match a condition
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Gmail: get many
  6. Aggregate: combines items into one
  7. Edit Fields (Edit Fields (Set)): sets 2 fields: textWithDate, followUpTemplateArray
  8. OpenAI: uses OpenAI
  9. Filter: keeps only the items that match a condition
  10. Gmail: work with draft

Services it uses

Google SheetsGmailOpenAI

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.

Nodes used (9)

From the author

Smart Invoice Collection System with OpenAI, Gmail & Google Sheets Categories: Financial Automation, AI Business Tools, Cash Flow Management This workflow creates an intelligent invoice collection system that automatically follows up on overdue invoices using…

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