AutomationMart
Home/Browse/Send multi-stage overdue invoice reminders with NocoDB, Gmail and PostGrid
n8n

Send multi-stage overdue invoice reminders with NocoDB, Gmail and PostGrid

n8nn8n25 modulesv1.0
GmailSlack

What Is This? This workflow is an automated invoice payment tracking and vindication system that monitors unpaid and overdue invoices stored in NocoDB, then sends escalating reminders to clients based on configurable time thresholds. The system handles three escalation levels: friendly payment reminders before/at due date, formal warning notices for overdue invoices, and legal action notifications for severely overdue accounts. It works with any accounting system that can populate a NocoDB datab

At a glance

Send multi-stage overdue invoice reminders with NocoDB, Gmail and PostGrid is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack
Modules
25
Price
Free
Version
v1.0
Send multi-stage overdue invoice reminders with NocoDB, Gmail and PostGrid workflow diagram

About this workflow

What Is This? This workflow is an automated invoice payment tracking and vindication system that monitors unpaid and overdue invoices stored in NocoDB, then sends escalating reminders to clients based on configurable time thresholds. The system handles three escalation levels: friendly payment reminders before/at due date, formal warning notices for overdue invoices, and legal action notifications for severely overdue accounts. It works with any accounting system that can populate a NocoDB database, making it ideal for businesses using custom invoicing systems, international accounting software, or multiple invoice sources. Who Is It For? Designed for small to medium-sized businesses, IT service providers, consulting agencies, and accounting departments that need professional payment enforcement without expensive debt collection services. This workflow is particularly valuable for companies experiencing cash flow challenges due to late-paying clients. B2B service providers, software development agencies, consultancies, and freelancers managing multiple client invoices will benefit from automated, multi-channel payment reminders that maintain professional relationships while firmly enforcing payment terms. Whether you're tracking 5 high-value contracts or managing 200+ monthly invoices, this automation ensures no payment deadline slips through the cracks. It's especially useful for businesses operating internationally or using accounting systems without built-in reminder features. How Does It Work? This comprehensive invoice vindication automation consists of four main stages: 1. Configuration & Company Details Setup Defines critical parameters including escalation timeframes (Days before Due Date for reminder, Days after Due Date for warning, Days after Due Date for Legal action), and toggles for notification channels (Send Email, Send Physical Letter). The workflow also captures complete company information for professional correspondence including banking details, tax identification numbers, and contact information. 2. Invoice & Client Data Retrieval Connects to NocoDB to fetch all invoices with their associated client information. The workflow uses a Split in Batches node to process each invoice individually, retrieving complete client details (name, email, full address) from the linked Clients table. This two-step fetch ensures all necessary data is available for personalized communications. 3. Intelligent Filtering & Categorization Invoices are filtered to remove already-paid invoices (checking both Invoice Status ≠ "Paid" and Payment Date = empty), then categorized into three escalation groups: - Today/Upcoming Invoices: Due date is today OR X days away → Sends friendly payment reminder - Overdue for Warning: Exactly Y days past due date → Sends formal warning about potential legal action - Overdue for Legal Notice: Exactly Z days past due date → Sends notice of commenced legal proceedings 4. Multi-Channel Notification Dispatch For each escalation level, the workflow generates professionally formatted HTML content with complete invoice details, payment instructions, and appropriate urgency levels. Notifications are dispatched via: - Email (Gmail): Professional HTML emails with company branding - Physical Mail (PostGrid): Printed letters delivered via postal service for serious escalations - Slack: Internal team notifications for tracking sent reminders Each notification includes invoice number, amounts, due dates, payment details (bank account, SWIFT code), and clear call-to-action based on escalation level. How To Set It Up? Prerequisites: - An active N8N account or self-hosted instance - A NocoDB instance (hosted at your domain or using NocoDB Cloud) - A Slack workspace with bot permissions - (Optional) Gmail account configured for sending emails - (Optional) PostGrid account for physical mail delivery Step 1: Create NocoDB Tables Execute the "Create Tables" manual trigger to automatically create two tables in your NocoDB base: Invoices Table with fields: - Invoice Id (SingleLineText) - Amount (Currency, PLN) - Issue Date (Date) - Due Date (Date) - Invoice Status (SingleSelect: Unpaid, Partial, Paid, Overdue) - Vindication Status (SingleSelect: None, Reminder Sent, Warning Sent, Legal Notice Sent) - Reminder Sent Date, Warning Sent Date, Legal Notice Sent Date (Date fields) - Payment Date (Date) Clients Table with fields: - Name (SingleLineText) - Email (Email) - Country Code, Province, City, Postal Code, Address (SingleLineText) The workflow automatically creates a one-to-many relationship between Clients and Invoices. Step 2: Configure NocoDB Connection In the "NocoDB Config" node: - Base ID: Your NocoDB base identifier (e.g., pksfpoc943gwhvy) - NocoDB Url: Your NocoDB instance URL (e.g., Update all NocoDB credentials to point to your instance using the "NocoDB Token" authentication. Step 3: Set Escalation Timing In the "Config" node, configure: - Days before Due Date for reminder: How early to send friendly reminders (default: 7 days before) - Days after Due Date for warning: When to escalate to formal warning (default: 7 days overdue) - Days after Due Date for Legal action: When to send legal notices (default: 10 days overdue) Critical: Ensure "Days after Due Date for Legal action" > "Days after Due Date for warning" to maintain proper escalation sequence. Setting legal action earlier than warning will confuse clients. Step 4: Configure Notification Channels In the "Config" node: - Send Email: Toggle to enable/disable Gmail notifications - Send Physical Letter: Toggle to enable/disable PostGrid physical mail Step 5: Add Your Company Details In the "Your Company Details" node, provide: - Company Name, Email, Phone - Full address (Country Code, City, Street, Postal Code) - Banking information (Bank Name, Bank Account Number, SWIFT Code) - Tax Identification Number (TIN) This information appears in all correspondence and legal notices. Step 6: Configure Credentials Set up the following credentials: - NocoDB API Token: From your NocoDB account settings - Gmail OAuth2: For email delivery (if Send Email = true) - PostGrid API: For physical letter delivery (if Send Physical Letter = true) - Slack OAuth2: For internal team notifications Step 7: Customize Slack Channel In the "Send a message" node, update the Slack channel ID to your desired notification channel. Step 8: Schedule Execution The workflow runs automatically daily at 7:00 AM via the "Run daily" trigger node. Adjust timing in the Schedule Trigger node as needed. For testing, execute manually using the "Execute workflow" button. What's More? Professional HTML Email Templates: Three distinct HTML email templates provide escalating urgency levels while maintaining professional communication standards. Each template includes: - Company branding and letterhead - Clear invoice details with formatting - Payment instructions with bank details - Appropriate tone for escalation level (friendly → formal → legal) - Contact information for questions Smart Date Calculations: The workflow uses N8N's DateTime functions to calculate: - Days until due date for upcoming invoices - Days overdue for late payments - Exact matching for escalation thresholds (uses equals operator, not ranges) This ensures invoices are processed exactly once at each escalation stage, preventing duplicate notifications. Flexible Data Model: The NocoDB schema supports tracking: - Multiple vindication stages with dedicated date fields - Invoice status progression (Unpaid → Partial → Overdue → Paid) - Vindication status history (None → Reminder Sent → Warning Sent → Legal Notice Sent) - Payment reconciliation via Payment Date field Multi-Format Address Handling: The workflow correctly formats addresses for: - Email recipients (standard format) - PostGrid API (structured JSON with country codes, provinces, postal codes) - HTML templates (human-readable format) Batch Processing with Error Isolation: The Split in Batches node processes invoices individually, ensuring one failed notification (e.g., invalid email address) doesn't block processing of remaining invoices. Each invoice proceeds through the workflow independently. Conditional Notification Routing: IF nodes check configuration flags before sending notifications, allowing granular control: - Send only emails for low-cost operations - Send only physical letters for serious escalations - Send both for maximum impact - Disable specific channels temporarily without modifying workflow Slack Notification Intelligence: Slack messages include structured blocks showing: - Email subject (escalation type) - Invoice number and amount - Contractor name - Days overdue calculation - Payment deadline and issue date This provides at-a-glance visibility into which invoices triggered notifications and why. Table Creation Automation: Rather than requiring manual NocoDB table setup, the workflow includes HTTP Request nodes that programmatically create tables with exact field types, validation rules, and relationships using NocoDB's Meta API. This ensures consistent schema across deployments and eliminates manual configuration errors. Currency Support: While defaulting to PLN (Polish Złoty), the Amount field uses NocoDB's Currency type, which can be easily changed to EUR, USD, GBP, or 150+ other currencies via the table schema without modifying workflow logic. Thank You, Perfect! Visit my profile for other free business automations. And if you're looking for dedicated software development or custom n8n workflow solutions, don't hesitate to reach out at developers@sailingbyte.com or on sailingbyte.com!

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create a new Task in Google Tasks for new received e-mail in HubSpot (Gmail)

When a new e-mail is received in Gmail the e-mail address exists as a contact in HubSpot CRM, a new Google task is created.

Free

Optimize Amazon ads with GPT-4o for bid, budget & keyword recommendations

Overview This template is designed for Amazon sellers and advertisers who want to automate their campaign performance analysis and bidding strategy. It solves the common challenge of manually reviewing Sponsored Products reports and guessing how to adjust keywords, placements, and budgets. By combining Amazon Advertising reports with OpenAI's GPT-4o, this workflow delivers real-time, personalized optimization instructions — automatically. Features 📥 Automatically downloads Sponsored Products rep

Free

Build your first AI agent with ChatGPT-5

Build Your First AI Agent with ChatGPT-5 Who is this for? This workflow is designed for beginners and professionals who want to build their first AI-powered assistant with n8n. It’s perfect for anyone managing online trainings, consultations, or services that require both a knowledge base and appointment scheduling. What problem is this workflow solving? Manually handling client questions, checking your availa

Free

Send an email via Gmail for new Parseur documents with status "New Template Needed"

Every time a new document is processed in Parseur with status "New Template Needed", an email will be automatically sent via Gmail.

Free

Post new MeisterTask tasks to Slack

Every time a new task is added to a selected MeisterTask project, Make will automatically send a message in Slack.

Free

Track Resumes received via Gmail and Verify Resumes for Fraud

Automatically capture resumes received by email, extract their contents, and analyze them for potential fraud or inconsistencies using Verify. This template helps recruiters track inbound resumes and surface risk signals early in the hiring process.

Free

FinnHub API and Slack template

Daily Company News Bot This n8n template demonstrates how to use Free FinnHub API to retrieve the company news from a list stock tickers and post messages in Slack channel with a pre-scheduled time. How it works We firstly define the list of stock tickers you are interested Loop over items to call FinnHub API to get the latest company news for the ticker Then we format the company news as a markdown text content which could be sent to Slack Post a new message in Slack channel Wait for 5 sec

Free

Analyze & summarize Amazon product reviews with Decodo, OpenAI and Google Sheets

Disclaimer Please note - This workflow is only available on n8n self-hosted as it’s making use of the community node for the Decodo Web Scraping This n8n workflow automates the process of scraping, analyzing, and summarizing Amazon product reviews using Decodo’s Amazon Scraper, OpenAI GPT-4.1-mini, and Google Sheets for seamless reporting. It turns messy, unstructured customer feedback into actionable product insights — all without manual review reading. Who this is for This workflow is designed

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free