Templates / Chase overdue invoices and match bank payments with Gmail, Sheets, and OpenAI

Chase overdue invoices and match bank payments with Gmail, Sheets, and OpenAI

Ready for 3.0

by Luca ✓ · 4 views · created 2026-09-20 · 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-10-19.

What this workflow does

This AI workflow has 48 nodes and runs on a schedule (cron 0 9 * * 1-5) (plus 3 other triggers). Along the way it connects Google Sheets, Gmail and OpenAI Chat Model.

How it runs

Trigger: On a schedule (cron 0 9 * * 1-5) (plus 3 other triggers).

  1. Set Collection Policy (Edit Fields (Set)): sets 14 fields: sheet_id, ar_clerk_email, finance_email…
  2. Set Matching Rules (Edit Fields (Set)): sets 8 fields: sheet_id, ar_clerk_email, fee_tolerance_abs…
  3. Set Reply Rules (Edit Fields (Set)): sets 5 fields: sheet_id, ar_clerk_email, account_manager_email…
  4. Alert on Workflow Failure (Gmail): uses Gmail
  5. Read Customers from Sheets (Google Sheets): uses Google Sheets
  6. Read Bank Payments from Sheets (Google Sheets): uses Google Sheets
  7. Extract Reply Intent (Information Extractor): extracts structured fields from text with AI, with model: OpenAI GPT-4 Mini
  8. Aggregate: combines items into one
  9. Aggregate: combines items into one
  10. Read What the Reply Says (Code): runs custom JavaScript code

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

Services it uses

Google SheetsGmailOpenAI Chat Model

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) (When a Reply Arrives).

Nodes used (14)

From the author

Quick Overview This workflow uses Google Sheets as an AR ledger, matches bank payments to open invoices each weekday morning, then emails consolidated overdue statements via Gmail and escalates edge cases; it also uses OpenAI to classify incoming reply intent…

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