← All workflows
n8n workflow · free

Automatic invoice payment reminders

Elroy van Akkeren · December 1, 2026

Chasing invoices is the job everyone postpones. This workflow checks your invoice list every morning, sends a friendly reminder after 7 days, a firmer one after 21, and tells you to call after 35. Every step is logged, so nobody gets the same email twice.

Who it's for

Freelancers and small businesses that track invoices in Google Sheets or Excel, or use a tool without good automatic reminders. If your accounting software (QuickBooks, Xero, FreshBooks) has built-in reminders, try turning those on first: it's simpler.

What do late payments cost you?

How it works

  1. Every morning at 8:00 the workflow starts.
  2. Read invoices from the Invoices tab of your Google Sheet.
  3. Decide the step per open invoice: 7 days past due and no reminder yet → reminder 1. 21 days and reminder 1 sent → reminder 2. 35 days → alert to you. Invoices with status Paid are skipped. Change the day counts at the top of the code.
  4. Send the right email via Gmail: friendly first, then firmer. You get an email with "Call" in the subject.
  5. Log the date in the sheet so each step happens once.

The workflow (copy and paste into n8n)

Copy the code, open n8n, click an empty canvas and press Ctrl+V (Mac: Cmd+V).

{
  "name": "Unpaid invoices: automatic payment reminders (Google Sheet)",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "days",
              "triggerAtHour": 8
            }
          ]
        }
      },
      "id": "d4e5f6a7-0001-4000-8000-000000000001",
      "name": "Every morning at 8:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        300
      ]
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Invoices",
          "mode": "name"
        },
        "options": {}
      },
      "id": "d4e5f6a7-0002-4000-8000-000000000002",
      "name": "Read invoices",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        220,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "// Decide which step each open invoice needs\nconst H1 = 7;   // days past due: first reminder\nconst H2 = 21;  // second reminder\nconst OWN = 35; // alert you to call\nconst today = DateTime.now().setZone('America/New_York').startOf('day');\nconst out = [];\nfor (const item of $input.all()) {\n  const r = item.json;\n  if (String(r.Status || '').toLowerCase() === 'paid') continue;\n  const due = DateTime.fromISO(String(r.DueDate || ''), { zone: 'America/New_York' });\n  if (!due.isValid) continue;\n  const days = Math.floor(today.diff(due, 'days').days);\n  let action = '';\n  if (days >= OWN && !r.Owner_alerted) action = 'owner';\n  else if (days >= H2 && r.Reminder_1 && !r.Reminder_2) action = 'h2';\n  else if (days >= H1 && !r.Reminder_1) action = 'h1';\n  if (action) out.push({ json: { ...r, daysLate: days, action, today: today.toFormat('yyyy-MM-dd') } });\n}\nreturn out;"
      },
      "id": "d4e5f6a7-0003-4000-8000-000000000003",
      "name": "Which step?",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        440,
        300
      ]
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict"
                },
                "conditions": [
                  {
                    "id": "s1",
                    "leftValue": "={{ $json.action }}",
                    "rightValue": "h1",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Reminder 1"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict"
                },
                "conditions": [
                  {
                    "id": "s2",
                    "leftValue": "={{ $json.action }}",
                    "rightValue": "h2",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Reminder 2"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict"
                },
                "conditions": [
                  {
                    "id": "s3",
                    "leftValue": "={{ $json.action }}",
                    "rightValue": "owner",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Alert to you"
            }
          ]
        },
        "options": {}
      },
      "id": "d4e5f6a7-0004-4000-8000-000000000004",
      "name": "Step",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        660,
        300
      ]
    },
    {
      "parameters": {
        "sendTo": "={{ $json.Email }}",
        "subject": "=Friendly reminder: invoice {{ $json.InvoiceNumber }}",
        "emailType": "text",
        "message": "=Hi {{ $json.Client }},\n\nOur records show invoice {{ $json.InvoiceNumber }} for ${{ $json.Amount }} is still open. It was due on {{ $json.DueDate }}.\n\nIt probably slipped through the cracks. Could you send payment within 7 days? If you've already paid, please ignore this email.\n\nQuestions? Just reply.\n\nBest regards,\nYOUR BUSINESS NAME",
        "options": {
          "appendAttribution": false,
          "senderName": "YOUR BUSINESS NAME"
        }
      },
      "id": "d4e5f6a7-0005-4000-8000-000000000005",
      "name": "Reminder email 1",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        900,
        140
      ]
    },
    {
      "parameters": {
        "sendTo": "={{ $json.Email }}",
        "subject": "=Second reminder: invoice {{ $json.InvoiceNumber }}",
        "emailType": "text",
        "message": "=Hi {{ $json.Client }},\n\nOn {{ $json.Reminder_1 }} we sent a reminder for invoice {{ $json.InvoiceNumber }} (${{ $json.Amount }}). We haven't received payment yet.\n\nCould you pay within 7 days? If something is wrong with the invoice, let us know and we'll sort it out together.\n\nBest regards,\nYOUR BUSINESS NAME\nYOUR PHONE NUMBER",
        "options": {
          "appendAttribution": false,
          "senderName": "YOUR BUSINESS NAME"
        }
      },
      "id": "d4e5f6a7-0006-4000-8000-000000000006",
      "name": "Reminder email 2",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        900,
        300
      ]
    },
    {
      "parameters": {
        "sendTo": "YOUR_OWN_EMAIL",
        "subject": "=Call: invoice {{ $json.InvoiceNumber }} ({{ $json.Client }}) {{ $json.daysLate }} days late",
        "emailType": "text",
        "message": "=Invoice {{ $json.InvoiceNumber }} from {{ $json.Client }} (${{ $json.Amount }}) is {{ $json.daysLate }} days late after two reminders.\n\nTip: pick up the phone. A call usually works better than email number three.",
        "options": {
          "appendAttribution": false
        }
      },
      "id": "d4e5f6a7-0007-4000-8000-000000000007",
      "name": "Alert to you",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        900,
        460
      ]
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Invoices",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "InvoiceNumber": "={{ $('Step').item.json.InvoiceNumber }}",
            "Reminder_1": "={{ $('Step').item.json.action === 'h1' ? $('Step').item.json.today : $('Step').item.json.Reminder_1 }}",
            "Reminder_2": "={{ $('Step').item.json.action === 'h2' ? $('Step').item.json.today : $('Step').item.json.Reminder_2 }}",
            "Owner_alerted": "={{ $('Step').item.json.action === 'owner' ? $('Step').item.json.today : $('Step').item.json.Owner_alerted }}"
          },
          "matchingColumns": [
            "InvoiceNumber"
          ],
          "schema": [
            {
              "id": "InvoiceNumber",
              "displayName": "InvoiceNumber",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder_1",
              "displayName": "Reminder_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Reminder_2",
              "displayName": "Reminder_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Owner_alerted",
              "displayName": "Owner_alerted",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "d4e5f6a7-0008-4000-8000-000000000008",
      "name": "Log in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        1140,
        300
      ]
    }
  ],
  "connections": {
    "Every morning at 8:00": {
      "main": [
        [
          {
            "node": "Read invoices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read invoices": {
      "main": [
        [
          {
            "node": "Which step?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Which step?": {
      "main": [
        [
          {
            "node": "Step",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step": {
      "main": [
        [
          {
            "node": "Reminder email 1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Reminder email 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert to you",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reminder email 1": {
      "main": [
        [
          {
            "node": "Log in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reminder email 2": {
      "main": [
        [
          {
            "node": "Log in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert to you": {
      "main": [
        [
          {
            "node": "Log in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "timezone": "America/New_York"
  },
  "pinData": {}
}

Setup

  1. Google Sheet: create a tab Invoices with these columns in row 1: InvoiceNumber, Client, Email, Amount, DueDate (like 2026-12-15), Status, Reminder_1, Reminder_2, Owner_alerted. Replace YOUR_SPREADSHEET_ID in both sheet nodes.
  2. Connect Google: create credentials for Google Sheets and Gmail in n8n.
  3. Your details: replace YOUR BUSINESS NAME, YOUR PHONE NUMBER and YOUR_OWN_EMAIL. Add your payment details to the email text.
  4. Mark paid invoices as Paid as soon as the money arrives.
  5. Test: add a test invoice with your own email and a due date 8 days ago, then click Execute workflow.

Watch out for

  • Late fees and collection rules differ by country and state. This workflow only sends polite reminders; it doesn't add fees. Not legal advice.
  • Your sheet must be up to date: mark payments promptly or paying clients get a reminder.
  • Privacy: only share the sheet with people who need it.
  • Costs: runs once a day. Check current pricing on n8n.io.

Honest note: built on December 1, 2026 and checked against the n8n node settings (Schedule Trigger, Google Sheets 4.5, Code, Switch 3, Gmail). The decision rules in the Code node were tested with sample data. Not yet tested with a live Google account, so test with a dummy invoice first.

Want this set up for your invoices?

I connect it to your invoice list or accounting tool, write the reminders in your tone and test it with real invoices. From €295, on your own n8n or Make account.

Get a quote →Reply within 1 business day · no obligation

More workflows

Get your workflow built

Tell me which task eats your time. You get a fixed-price quote by email within 1 business day. No calls needed, no obligation.

Setup from €295 (about $340), on your own n8n or Make account. Working remotely, worldwide.

I only use your details to answer your request. See the privacy policy.