Overview
A daily n8n workflow reads an invoice tracker in Google Sheets, works out how overdue each unpaid invoice is, and creates a Gmail draft whose tone matches that stage, skipping stages already drafted.
Problem or Objective
- Which agents prepare invoices, send reminders and track what is still unpaid?
- Which agents run multi-step workflows across your apps?
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Google Sheets · Gmail
- Prerequisites
- An n8n instance (cloud or self-hosted), Google credentials for Sheets and Gmail, access to a chat model, and an invoice tracker kept in step with your accounting system.
How It Works
Keep a Google Sheet with one row per invoice: client name, billing email, invoice number, amount, due date, a paid column you update from your accounting system, and columns for the last reminder stage drafted and the date you actually sent it. In n8n, start with a Schedule Trigger once a day and read the rows with the Google Sheets node. Filter to unpaid invoices past their due date, compute the days overdue, and map them to stages, for example a friendly note from day 3, a firmer one from day 15 and a final notice from day 30. Skip any row whose current stage was already drafted. Send each remaining row to a model step without tools that writes the reminder in that stage's tone, with the invoice number, amount and due date. Create a Gmail draft for it and record the drafted stage in the sheet. Each morning a person checks the drafts against the accounting system, deletes any for invoices that are paid or disputed, edits the rest and sends them by hand, then fills in the sent date.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Google Sheets, Gmail.
- Check the prerequisitesAn n8n instance (cloud or self-hosted), Google credentials for Sheets and Gmail, access to a chat model, and an invoice tracker kept in step with your accounting system.
- Gather your detailsCollect what the prompt asks for: Your business name, Client name from the sheet, Invoice number, Amount due with currency, Original due date, Days past the due date, Reminder stage (1, 2 or 3).
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Write an overdue invoice reminder
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Write a payment reminder email from [Your business name] to [Client name from the sheet] about invoice [Invoice number] for [Amount due with currency], due on [Original due date] and now [Days past the due date] days overdue. Use the tone for stage [Reminder stage (1, 2 or 3)]: stage 1 is a friendly nudge, stage 2 is firm and asks for a payment date, stage 3 is a final notice that says what happens next under our terms. Include how to pay and an invitation to reply if the invoice is disputed or already paid. Return only the subject line and body; this will be saved as a draft for my review and approval, and nothing is sent until I send it myself.Use this in the model step of the daily n8n workflow; the result goes into a Gmail draft, never straight to the client. Each morning check the drafts against your accounting system, delete those for paid or disputed invoices, edit and send the rest yourself, and record the sent date in the sheet.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs cover running workflows on a schedule, reading and updating rows in Google Sheets and creating Gmail drafts. No cited page shows reminders drafted this way, so how well the tone stages read to your clients and whether the skip logic holds up are untested here.
Limitations and Considerations
The sheet is only as current as your accounting system: payment status was not verified against any accounting product here, so confirm each invoice is still unpaid before sending, and handle disputes personally. The workflow only creates drafts; nothing reaches a client until a person sends it. You need Google credentials in n8n for Sheets and Gmail, and model calls are billed by your model provider. Check that reminder wording fits your contracts and local rules on collecting debts. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Schedule Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Use the Schedule Trigger node to run workflows at fixed intervals and times.
- Sheet Within Document operations | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 14:53 UTC
What this source supports
- Use this operation to read one or more rows from a sheet.
- Use this operation to update an existing row or add a new row at the end of the data if a matching entry isn't found in a sheet.
- Draft Operations | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 14:53 UTC
What this source supports
- Use this operation to create a new draft.

