See llms.txt for all machine-readable content.

Back to Templates

Send staged invoice payment reminders with Google Sheets and Gmail

Quick overview

Reads a Google Sheet of invoices every morning and emails each client the right payment reminder — pre-due, due-day, 7-day overdue, final notice — with validation, deduplication, a high-value owner digest and failure logging built in. Import, connect Google, personalise, activate.

How it works

  1. Every day at 09:00 the workflow reads your invoice tab in Google Sheets and works out which unpaid invoices are due a reminder.
  2. Each invoice moves through four stages — a friendly heads-up 3 days before the due date, a due-day reminder, a firmer note at 7 days overdue, and a final notice from day 14 — with the stage derived from how many reminders have already gone out, so a stage missed because a run failed is picked up on the next run instead of being lost.
  3. Before anything is emailed, every row is validated (client email, invoice number, amount — parsed the way the invoice's currency writes numbers, so EUR 1.240,00 reads as 1240.00); invalid rows are written to a Chase Log tab in the same sheet with the reason and never emailed.
  4. Duplicate rows for the same invoice number are chased once, and an unpaid copy of an invoice already marked Paid is never chased at all.
  5. The right reminder email is sent via Gmail using one of four stage templates.
  6. After each send the sheet is updated (Reminders sent, Last reminded); built-in guards cap reminders at 4 per invoice, never two within 3 days, and stop everything the moment an invoice is marked Paid.
  7. Final notices at or above a threshold you set (default 500) are also collected into one daily digest email to you, and any failed send is logged to the Chase Log and retried on the next run instead of stopping the workflow.

Setup

  1. Create one Google Sheet with an invoice tab (9 columns: Invoice ID, Client name, Client email, Amount, Currency, Due date, Status, Reminders sent, Last reminded) and a Chase Log tab.
  2. Import the workflow into n8n and connect your Google account in the Google Sheets and Gmail nodes.
  3. Select your spreadsheet in the Sheets nodes.
  4. Personalise the four email templates with your payment details and sign-off.
  5. Replace the owner-alert placeholder email ([email protected]) with your own address.
  6. Run the on-canvas test checklist with your own email address (add a test invoice addressed to yourself, execute manually, and check the sheet and the Chase Log).
  7. Activate the workflow. About 15 minutes in total.

Requirements

  • An n8n instance and one Google account (Google Sheets and Gmail). No credentials are stored in the template.

Customization

  • Stage windows and guards (which days each reminder fires, the 4-reminder cap, the 3-day minimum gap) are set in the stage-decision Code node; the daily run time is on the schedule trigger; the four email texts are in the Gmail template nodes; the high-value digest threshold (default 500) is a constant in the owner-digest node; the list of currencies that write amounts with a comma decimal separator is in the amount-parsing node.

Additional info

This workflow is structure-checked and its Code-node logic is exercised by offline tests; it has not been import-tested on a live n8n instance. The same workflow is also sold with a longer setup guide here: https://ko-fi.com/s/528e2c4098