Use this robust n8n workflow to automate monthly invoice creation using Google Sheets and manage collections by sending escalating email payment reminders. Easily deploy this n8n template for finance automation.
Download this n8n workflow template and start using it instantly.
This is the ideal n8n template for:
Small business owners and freelancers seeking to automate billing.
Finance teams looking for a centralized, low-code collections system.
Users who want a practical example of a complex, scheduled n8n workflow combining logic and external services.
Anyone needing robust n8n automation for Google Sheets and email.
Managing monthly billing and chasing overdue payments manually is time-consuming and prone to errors. This powerful n8n workflow solves this by running two independent, scheduled automations: one for invoice generation and one for collections. Utilizing the scheduling capabilities of the n8n trigger and sophisticated custom code logic, this solution ensures active clients are billed on time and overdue accounts receive timely, escalating reminders (Gentle, Follow-up, Urgent, Final Notice). This comprehensive n8n node setup provides a complete, hands-off billing cycle management system, making it one of the most useful n8n templates for financial operations.
This n8n workflow is divided into two main, independently scheduled processes:
Monthly Invoice Trigger n8n node (a Cron node) initiates the flow on a set schedule.Get Clients for Invoicing Google Sheets n8n node.Filter Active Clients Code n8n node processes this data, filtering only clients marked 'active' and whose billing date is due.Generate Invoice Data Code n8n node creates a unique invoice number, determines the current date as the issue date, and calculates a 30-day due date.Save Invoice to Google Sheets n8n node appends the newly created invoice record to the 'Invoices' sheet.Send Invoice Email n8n node immediately sends the invoice details to the client using SMTP.Log Invoice Creation Google Sheets n8n node records the activity in a separate log sheet for auditing.Daily Payment Reminder Check n8n trigger starts every day.Get Overdue Invoices Google Sheets n8n node retrieves all records from the 'Invoices' sheet.Filter Overdue Invoices Code n8n node checks the 'status' and 'due date' columns to isolate only unpaid invoices that are past due.Calculate Reminder Type Code n8n node calculates the number of days overdue and assigns a severity label (e.g., 'gentle' for 1 day overdue, 'final' for 30+ days overdue).Switch Reminder Type n8n node routes the execution based on the severity calculated in the previous step.Send Gentle Reminder, Send Follow-up Reminder, etc.) sends the customized message to the client, using the dynamically generated subject line.Update Reminder Log Google Sheets n8n node updates the original invoice record to increment the reminder count and log the date the last reminder was sent.To deploy this comprehensive n8n template, follow these steps:
clientid, clientname, email, servicedescription, billingdate, status, and amount.Get Clients for Invoicing, Get Overdue Invoices, Save Invoice to Google Sheets, and Log Invoice Creation nodes, replace YOURSend Invoice Email and reminder nodes) to handle outgoing messages. Ensure fromEmail addresses are correct. Monthly Invoice Trigger / Daily Payment Reminder Check (Cron n8n trigger node): Initiates the two main branches of the n8n workflow based on configured schedules (monthly for billing, daily for reminders).
Google Sheets n8n node (Multiple Instances): Used extensively for reading client lists (Get Clients), reading and updating invoice records (Get Overdue Invoices, Save Invoice), and logging activity. Authentication is set to serviceAccount.
Code n8n node (Filter Active Clients / Filter Overdue Invoices): Contains custom JavaScript logic crucial for filtering the raw sheet data. The invoice filter checks client status ('active') and billing dates, while the reminder filter checks invoice status ('pending') and due dates.
Code n8n node (Generate Invoice Data): Dynamically constructs essential invoice metadata, including a unique invoice number and calculated due date (30 days out), before saving the data.
Code n8n node (Calculate Reminder Type): Calculates the precise number of days an invoice is overdue and categorizes the necessary email response (e.g., 'gentle', 'urgent', 'final') to feed the subsequent n8n node.
Switch n8n node: A core logic flow control n8n node that directs the data item to one of four specific email paths based on the reminder_type calculated in the previous step.
={{ $json.email }}) to dynamically insert client emails and customized subject lines generated by the logic nodes.Use this powerful n8n workflow to compare inventory counts between Notion and Airtable, automatically reconcile discrepancies, and send AI-generated Slack alerts using GPT-4o.

Use this advanced n8n workflow to perform complex Inventory ABC and Pareto analysis on sales data stored in Google Sheets. Automate supply chain optimization metrics using custom n8n code nodes.

Use this powerful n8n workflow template to automate candidate interview scheduling. Triggers from Google Sheets, calculates the next available time slot, books Google Calendar, and sends a personalized email using GPT-4o.

Automate invoice processing using this powerful n8n workflow. Extract structured data from PDF emails using GPT-4o, validate existence in PostgreSQL, and send alerts via Discord.

Use this powerful n8n workflow to automatically extract structured data from PDF invoices using AI (OpenRouter), validate costs against Google Sheets master data, and log all financial discrepancies.

Automate invoice processing using this robust n8n workflow. It uses an AI Text Extractor n8n node for data extraction from attachments, validates results against Google Sheets master data, and automatically files PDFs in Google Drive. Deploy this n8n template for finance automation.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































