Overview
A scheduled n8n workflow reads your invoice tracker in Google Sheets, picks out overdue unpaid invoices and leaves a reminder draft in Gmail whose tone matches how late each one is.
Problem or Objective
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 Sheets and Gmail credentials in n8n, and a chat model API key. The workflow must be published for the schedule to run.
How It Works
Keep a Google Sheet with one row per invoice: invoice number, client name, client email, amount, due date and a status column you maintain yourself (open, paid or disputed). In n8n, start with a Schedule Trigger that runs once every morning. Add a Google Sheets node that gets the rows, then a filter that keeps rows still open, works out the days overdue, and passes on only rows that land exactly on one of your reminder stages, for example a friendly note, a firmer note and a final note before you phone the client. Send each row to a Basic LLM Chain with a prompt that writes the reminder for that stage using only the row's facts. Finish with a Gmail node that creates a draft to the client email; it does not send. Each morning, open the drafts, check each invoice against your accounting records, edit as needed and send the ones you approve yourself.
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 Sheets and Gmail credentials in n8n, and a chat model API key. The workflow must be published for the schedule to run.
- Gather your detailsCollect what the prompt asks for: Your business name, Invoice number, Client name, Amount due, Due date, Days overdue, Reminder stage (1 to 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: Draft one 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] for invoice [Invoice number] to [Client name]: amount [Amount due], due on [Due date], now [Days overdue] days overdue. This is reminder stage [Reminder stage (1 to 3)]: stage 1 is friendly, stage 2 is firm, stage 3 says you will call to arrange payment. Use only these facts, keep it under 120 words, include the invoice number and amount, and do not threaten fees or action that are not in the agreed terms. Output a subject line and a body; a person reviews and sends it.Map the variables from the sheet row in the Basic LLM Chain. The Gmail node only creates drafts: review each one against your accounting records and send it yourself.
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 support running a workflow at fixed times, reading and updating Google Sheets, setting a model prompt in a Basic LLM Chain, and creating Gmail drafts.
Limitations and Considerations
Nothing is sent automatically: every reminder stays a draft until you review and send it. Update the status column as soon as an invoice is paid or disputed, because the workflow trusts the sheet; check each draft against your accounting system before sending, as that side was not verified here. Because a stage is matched on an exact day, a day the workflow does not run means that reminder is skipped. Keep the tone factual and follow the payment terms you agreed with each client; this is not legal advice on debt collection. Model costs depend on your provider. 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.
Official Website
The official site of the main tool or project in this use case.
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.
- Google Sheets | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 23:44 UTC
What this source supports
- Use the Google Sheets node to automate work in Google Sheets, and integrate Google Sheets with other applications.
- Basic LLM Chain | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 15:23 UTC
What this source supports
- Use the Basic LLM Chain node to set the prompt that the model will use along with setting an optional parser for the response.
- Gmail | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 13:54 UTC
What this source supports
- n8n has built-in support for a wide range of Gmail features, including creating, updating, deleting, and getting drafts, messages, labels, and threads.

