Templates / Predict and route late payment reminders with Google Sheets, OpenAI, Gmail and Slack

Predict and route late payment reminders with Google Sheets, OpenAI, Gmail and Slack

Ready for 3.0

by Rahul Joshi ✓ · 3 views · created 2026-09-28 · 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 35 nodes and runs on a schedule (cron 0 9 * * 1-5). Along the way it connects Google Sheets, Gmail, OpenAI and Slack.

How it runs

Trigger: On a schedule (cron 0 9 * * 1-5).

  1. Set Dunning Rules (Edit Fields (Set)): sets 25 fields: companyName, paymentLink, financeReplyTo…
  2. Read Open Invoices (Google Sheets): uses Google Sheets
  3. Read Payment History (Google Sheets): uses Google Sheets
  4. Read Client Responses (Google Sheets): uses Google Sheets
  5. Search Client Replies (Gmail): get many
  6. Build Client Profiles & Match Replies (Code): runs custom JavaScript code
  7. Has New Reply? (Filter): keeps only the items that match a condition
  8. Decide Next Action (Code): runs custom JavaScript code
  9. Classify Client Reply (OpenAI): uses OpenAI
  10. Collect Broken Promises (Code): runs custom JavaScript code

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

Services it uses

Google SheetsGmailOpenAISlack

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 (10)

From the author

Quick overview This workflow runs every weekday morning to read invoices and payment history from Google Sheets, score each open invoice for late-payment risk, and use OpenAI plus Gmail to send friendly or firm reminders, or create a call task with a Slack…

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