Automated payment reminders with grouped QuickBooks invoices via email
Automated QuickBooks Payment Reminders with Dynamic Invoice Tables
This workflow provides a powerful solution for businesses using QuickBooks Online to automate their payment reminder process. It solves the time-consuming and manual task of chasing late payments by creating a fully automated system that ensures every customer with an outstanding balance receives a timely, professional, and consolidated reminder email.
The workflow periodically fetches all unpaid invoices from your QuickBooks account. Its core strength lies in its ability to group multiple outstanding invoices for a single customer into one email, presenting them in a clean, easy-to-read table. This improves clarity for your customers, reduces email clutter, and significantly increases the likelihood of prompt payment.
This template was crafted with care by the team at Prompt-Wizards to help you streamline your finances and build stronger customer relationships through smart automation.
How the Workflow Operates
- Scheduler: The workflow initiates on a customizable schedule (e.g., every day at 9 AM).
- Get Unpaid Invoices: It fetches all invoices from your QuickBooks account that have an outstanding balance greater than zero and were created within a specified date range.
- Get Customer Wise Invoice list: This Code node intelligently processes the list of invoices and groups them by customer name, preparing the data for email generation.
- Invoice Template: This Code node dynamically generates a beautiful, responsive HTML email for each customer, complete with a personalized greeting, an invoice table, and the total amount due.
- Send Reminder Email: The final node sends the uniquely crafted email to the customer's billing address on file.
Prerequisites
Before you begin, please ensure you have the following:
- An active n8n instance.
- A QuickBooks Online account with API access.
- An email service (e.g., SMTP, Gmail, Outlook) connected to n8n as credentials.
Step-by-Step Setup Guide
Follow these instructions carefully to configure the workflow for your business in under 5 minutes.
1. Connect Your QuickBooks Account
You must authenticate your QuickBooks account to allow n8n to fetch invoice data.
- Select the
Get Unpaid Invoicesnode. - In the Credentials section on the right, either select your existing QuickBooks account from the dropdown or click Create New to connect your account.
- (Optional): In the Options section of this node, you can adjust the
TxnDatefilter. It is pre-set to look at invoices from the last 90 days. You can change this date range to suit your needs.
2. Personalize the Email Template
Personalize the email to match your brand and include your payment information.
- Open the
Invoice Templatenode. - Inside the code editor, find and replace these two placeholder values:
- Your Payment Link: On line 115, find
href="https://your-payment-portal-link.com"and replace the placeholder URL with a link to your actual payment portal or website. - Your Company Details: On line 120, find
<p>Your Company Name | ...and replace the placeholder text with your real company name and address in the email footer.
- Your Payment Link: On line 115, find
3. Configure Your Email Account
You must connect the email account you want to send reminders from.
- Select the
Send Reminder Emailnode. - In the Credentials section, select your email account (e.g., Gmail, Outlook) or create a new connection.
- The
To Address,Subject, andHTMLfields are already configured with expressions to work automatically. No changes are needed here!
4. Activate the Workflow
- Open the
Schedulernode to set the schedule for how often you want the workflow to run. - Save the workflow using the button at the top.
- Click the Active toggle at the top right of the screen.
Your automated payment reminder system is now live!!!
For questions or to explore more custom solutions, visit us at Elegant Biztech or contact us at sales@elegantbiztech.com.
Automated Payment Reminders with Grouped QuickBooks Invoices via Email
This n8n workflow automates the process of sending payment reminders for overdue invoices from QuickBooks Online. It's designed to run on a schedule, fetch relevant invoice data, and then send personalized email reminders.
What it does
This workflow streamlines the process of communicating with clients about overdue payments by:
- Triggering on a Schedule: The workflow starts at predefined intervals (e.g., daily, weekly) to check for overdue invoices.
- Fetching QuickBooks Online Invoices: It connects to your QuickBooks Online account to retrieve a list of invoices.
- Processing Invoice Data: A custom code block is used to filter, group, and format the invoice data as needed for the email reminders. This likely involves identifying overdue invoices and potentially grouping them by customer.
- Sending Email Reminders: Based on the processed data, it sends personalized email reminders to customers with overdue invoices.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running instance of n8n.
- QuickBooks Online Account: An active QuickBooks Online account with appropriate permissions to access invoice data.
- QuickBooks Online Credentials: Configured credentials in n8n for your QuickBooks Online account.
- SMTP Email Server Credentials: Configured credentials in n8n for sending emails (e.g., via an SMTP server).
Setup/Usage
- Import the Workflow:
- Copy the provided JSON code.
- In your n8n instance, go to "Workflows" and click "New".
- Click on the "Import from JSON" button and paste the copied JSON.
- Click "Import".
- Configure Credentials:
- Locate the "QuickBooks Online" node and click on it.
- Under "Credentials", select your existing QuickBooks Online credentials or click "Create New" to set them up. Follow the n8n documentation for connecting to QuickBooks Online.
- Locate the "Send Email" node and click on it.
- Under "Credentials", select your existing SMTP/Email credentials or click "Create New" to set them up. Follow the n8n documentation for configuring email sending.
- Configure Schedule Trigger:
- Locate the "Schedule Trigger" node.
- Configure the desired interval for the workflow to run (e.g., daily, weekly).
- Customize Code Node (Optional but Recommended):
- The "Code" node is crucial for defining the logic of which invoices are considered overdue, how they are grouped, and what data is passed to the email node.
- Review and modify the JavaScript code within this node to match your specific business rules for identifying and grouping overdue invoices.
- Customize Email Content:
- Locate the "Send Email" node.
- Configure the "To", "Subject", and "Body" fields. You will likely use expressions (e.g.,
{{ $json.email }}) to dynamically insert customer and invoice details from the previous nodes.
- Activate the Workflow:
- Once all configurations are complete, save the workflow and activate it by toggling the "Active" switch in the top right corner.
The workflow will now automatically run on its defined schedule, fetch overdue invoices, and send reminder emails.
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow — reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.