Templates / Recover overdue invoices with GPT-4o-mini, Gmail, Google Sheets and Slack

Recover overdue invoices with GPT-4o-mini, Gmail, Google Sheets and Slack

Ready for 3.0

by Rahul Joshi ✓ · 255 views · created 2026-06-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-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on a schedule (every 24 hours). Along the way it connects Gmail, Google Sheets, OpenAI Chat Model and Slack.

How it runs

Trigger: On a schedule (every 24 hours).

  1. Read Overdue Invoices (Google Sheets): uses Google Sheets
  2. Any Overdue Invoices? (If): checks a condition and branches into true / false
  3. AI Recovery Agent (AI Agent): runs an AI agent, with model: GPT-4o-mini Language Model
  4. Slack: uses Slack
  5. Parse & Structure AI Response (Code): runs custom JavaScript code
  6. Slack: uses Slack
  7. Send Recovery Email to Client (Gmail): uses Gmail
  8. Needs Escalation? (If): checks a condition and branches into true / false
  9. Update Invoice Status in Sheet (Google Sheets): update
  10. Send Escalation Alert to Legal Team (Gmail): uses Gmail

…plus 1 more step. See the full node list below.

Services it uses

GmailGoogle SheetsOpenAI Chat ModelSlack

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

From the author

Quick overview This workflow runs every 24 hours to read overdue invoices from Google Sheets, uses OpenAI (GPT-4o-mini) to draft personalized recovery emails and determine escalation, sends emails via Gmail, logs outcomes back to Google Sheets, and posts…

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.