Hi everyone,
I built this workflow for small businesses and freelancers who track their issued invoices in a Google Sheet, and I’m sharing it here for free for anyone who might find it useful.
What it does
- Every morning at 8 (Europe/Rome timezone) it reads the
Fatturetab of your Google Sheet. - It skips invoices marked as paid and keeps the ones due today or within N days (default 3).
- It sends you one plain-text email with client, invoice number, amount and days until due.
- Rows with a missing, malformed or impossible due date (e.g. 31/02) are not dropped silently: they are listed in a separate “Da controllare” (to check) section, and the subject line says so.
- “Today” is computed in Europe/Rome, independently of the server’s configured time zone (e.g. Docker in UTC, n8n Cloud). Date cells are read as serial numbers, so date interpretation does not rely on the sheet’s displayed date format.
- If nothing is due, no email is sent.
Details
- Dates can be written as DD/MM/YYYY (the Italian format, also with
-or.) or YYYY-MM-DD; Sheets date serial numbers are handled too. - Standard nodes only: Schedule Trigger, Edit Fields (Set), Google Sheets, Code, IF, Send Email (SMTP). No community nodes.
- All settings live in a single Set node called “Configurazione” (sender, recipient, sheet link or ID, days of notice). No environment variables, so it should also work on n8n Cloud.
- No credentials in the file: you connect your own Google Sheets OAuth2 and SMTP credentials.
- Tested on n8n 2.44.6 self-hosted (imported and executed with a test SMTP server; the Google Sheets read was mocked, so it has not yet been tested against a live spreadsheet).
- Node names and the email text are in Italian; the sheet columns are
Cliente | Email | NumeroFattura | Importo | Scadenza | Stato | UltimoSollecito. Easy to rename if you need English.
Workflow JSON (copy it and paste it into an empty n8n canvas, or save it as a .json file and use Import from File):
Feedback welcome, especially on the date parsing in the “Filtra in scadenza” Code node.