Send staged payment reminders and dunning letters with Google Sheets and Gmail
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every week at 08:00). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every week at 08:00).
- Set Configuration (Edit Fields (Set)): sets 11 fields: testMode, companyName, senderName…
- Set Email Templates (Edit Fields (Set)): sets 6 fields: stage1Subject, stage1Body, stage2Subject…
- Read Invoices (Google Sheets): read (sheet)
- Plan Reminder Run (Code): runs custom JavaScript code
- Any Reminders Due? (If): checks a condition and branches into true / false
- Split Out: splits a list into separate items
- Build Daily Report (Code): runs custom JavaScript code
- Loop Over Invoices (Loop Over Items (Split in Batches)): loops over the items in batches
- Send Daily Report (Gmail): send (message)
- Send Reminder Email (Gmail): send (message)
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow runs every weekday morning, reads open invoices from Google Sheets, and sends staged payment reminders via Gmail based on how overdue each invoice is. It updates the invoice row after each email and emails a daily summary report…