Invoice management system with Gmail reminders, Google Sheets, and Slack escalations
Who is this for?
This template is designed for freelancers, small businesses, and finance teams who need automated invoice management with intelligent payment follow-ups. Perfect for service providers, agencies, or any business that needs to track receivables and reduce late payments.
What this workflow does
This workflow provides complete invoice lifecycle management with two main flows:
Invoice Generation Flow:
- Receives order data via webhook with line items
- Splits line items using Split Out node for individual processing
- Calculates subtotals, tax, and totals
- Aggregates results and saves to Google Sheets
- Sends professional invoice email with payment link
Payment Reminder Flow:
- Runs daily via Schedule Trigger to check for overdue invoices
- Loops through unpaid invoices using Split In Batches
- Routes to appropriate reminder level using Switch node (5 levels)
- Sends escalating reminders: friendly → second notice → urgent → final → collections
- Notifies internal team via Slack for collections handoff
Setup
- Create a Google Sheet with columns: Invoice ID, Client, Email, Subtotal, Tax, Total, Due Date, Status, Created, Last Reminder
- Connect Google Sheets and Gmail credentials
- Configure Slack for collections escalation notifications
- Set up the webhook URL in your order management system
Requirements
- Google Sheets (invoice database)
- Gmail account (invoice and reminder emails)
- Slack workspace (collections notifications)
How to customize
- Adjust overdue day thresholds in the Code node
- Add SMS reminders via Twilio for urgent notices
- Modify email templates for your brand
- Connect to accounting software for automatic reconciliation
n8n Invoice Management System with Gmail Reminders, Google Sheets, and Slack Escalations
This n8n workflow automates the process of managing invoices, sending reminders via Gmail, tracking them in Google Sheets, and escalating overdue invoices to Slack. It's designed to streamline your accounts receivable process and ensure timely payments.
What it does
This workflow simplifies invoice management through the following steps:
- Triggers on Schedule: The workflow starts on a predefined schedule (e.g., daily) to check for invoices.
- Fetches Invoice Data: It retrieves invoice data from a specified Google Sheet.
- Processes Invoices in Batches: Each invoice item is processed individually to manage reminders and escalations efficiently.
- Sets Invoice Data: It prepares the invoice data for further processing, extracting relevant fields like
invoiceId,customerEmail,dueDate,amount, andstatus. - Conditional Logic for Overdue Invoices:
- If invoice is overdue:
- Sends Gmail Reminder: An email reminder is sent to the customer.
- Updates Google Sheet: The status of the invoice in the Google Sheet is updated to "Reminder Sent".
- Escalates to Slack: A notification is sent to a designated Slack channel to alert about the overdue invoice.
- If invoice is not overdue:
- The workflow continues without taking any action for that specific invoice.
- If invoice is overdue:
- Responds to Webhook (Optional/Placeholder): The workflow includes a "Respond to Webhook" node, which could be used to provide a response if this workflow were triggered by an external webhook, though in its current state, it's triggered by a schedule.
- Aggregates Data (Optional/Placeholder): The "Aggregate" and "Split Out" nodes suggest potential for more complex data manipulation or processing of multiple outputs, but they are not actively connected in the provided JSON.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running instance of n8n.
- Google Account: For Google Sheets and Gmail integration.
- Google Sheets Credential: Configured in n8n to access your invoice spreadsheet.
- Gmail Credential: Configured in n8n to send reminder emails.
- Slack Account: For sending escalation notifications.
- Slack Credential: Configured in n8n to post messages to a channel.
- Google Sheet: A Google Sheet containing your invoice data with columns for
invoiceId,customerEmail,dueDate,amount, andstatus.
Setup/Usage
- Import the Workflow:
- Copy the provided JSON workflow.
- In your n8n instance, click "New" to create a new workflow.
- Go to "File" > "Import from JSON" and paste the copied JSON.
- Configure Credentials:
- Locate the "Google Sheets" node and configure your Google Sheets credential.
- Locate the "Gmail" node and configure your Gmail credential.
- Locate the "Slack" node and configure your Slack credential.
- Update Node Settings:
- Google Sheets (Node 18):
- Specify the Spreadsheet ID and Sheet Name where your invoice data is stored.
- Ensure the "Read All" operation is configured to fetch all relevant invoice data.
- Edit Fields (Set - Node 38):
- Verify the field names (
invoiceId,customerEmail,dueDate,amount,status) match your Google Sheet column headers. Adjust if necessary.
- Verify the field names (
- Switch (Node 112):
- Review the conditions for identifying overdue invoices. This typically involves comparing the
dueDatewith the current date.
- Review the conditions for identifying overdue invoices. This typically involves comparing the
- Gmail (Node 356):
- Customize the email subject and body for the reminder. Use expressions to dynamically insert invoice details (e.g.,
{{ $json.invoiceId }},{{ $json.amount }}).
- Customize the email subject and body for the reminder. Use expressions to dynamically insert invoice details (e.g.,
- Google Sheets (Update - Node 18, likely a second instance):
- Configure this node to update the
statuscolumn of the specific invoice row to "Reminder Sent" after an email is dispatched.
- Configure this node to update the
- Slack (Node 40):
- Specify the Channel where overdue invoice alerts should be posted.
- Customize the Slack message to include relevant invoice details.
- Schedule Trigger (Node 839):
- Set the desired interval for the workflow to run (e.g., daily, weekly).
- Google Sheets (Node 18):
- Activate the Workflow: Once all configurations are complete, activate the workflow to enable it to run automatically on schedule.
Related Templates
Daily cash flow reports with Google Sheets, Slack & Email for finance teams
Simplify financial oversight with this automated n8n workflow. Triggered daily, it fetches cash flow and expense data from a Google Sheet, analyzes inflows and outflows, validates records, and generates a comprehensive daily report. The workflow sends multi-channel notifications via email and Slack, ensuring finance professionals stay updated with real-time financial insights. 💸📧 Key Features Daily automation keeps cash flow tracking current. Analyzes inflows and outflows for actionable insights. Multi-channel alerts enhance team visibility. Logs maintain a detailed record in Google Sheets. Workflow Process The Every Day node triggers a daily check at a set time. Get Cash Flow Data retrieves financial data from a Google Sheet. Analyze Inflows & Outflows processes the data to identify trends and totals. Validate Records ensures all entries are complete and accurate. If records are valid, it branches to: Sends Email Daily Report to finance team members. Send Slack Alert to notify the team instantly. Logs to Sheet appends the summary data to a Google Sheet for tracking. Setup Instructions Import the workflow into n8n and configure Google Sheets OAuth2 for data access. Set the daily trigger time (e.g., 9:00 AM IST) in the "Every Day" node. Test the workflow by adding sample cash flow data and verifying reports. Adjust analysis parameters as needed for specific financial metrics. Prerequisites Google Sheets OAuth2 credentials Gmail API Key for email reports Slack Bot Token (with chat:write permissions) Structured financial data in a Google Sheet Google Sheet Structure: Create a sheet with columns: Date Cash Inflow Cash Outflow Category Notes Updated At Modification Options Customize the "Analyze Inflows & Outflows" node to include custom financial ratios. Adjust the "Validate Records" filter to flag anomalies or missing data. Modify email and Slack templates with branded formatting. Integrate with accounting tools (e.g., Xero) for live data feeds. Set different trigger times to align with your financial review schedule. Discover more workflows – Get in touch with us
Automate Reddit brand monitoring & responses with GPT-4o-mini, Sheets & Slack
How it Works This workflow automates intelligent Reddit marketing by monitoring brand mentions, analyzing sentiment with AI, and engaging authentically with communities. Every 24 hours, the system searches Reddit for posts containing your configured brand keywords across all subreddits, finding up to 50 of the newest mentions to analyze. Each discovered post is sent to OpenAI's GPT-4o-mini model for comprehensive analysis. The AI evaluates sentiment (positive/neutral/negative), assigns an engagement score (0-100), determines relevance to your brand, and generates contextual, helpful responses that add genuine value to the conversation. It also classifies the response type (educational/supportive/promotional) and provides reasoning for whether engagement is appropriate. The workflow intelligently filters posts using a multi-criteria system: only posts that are relevant to your brand, score above 60 in engagement quality, and warrant a response type other than "pass" proceed to engagement. This prevents spam and ensures every interaction is meaningful. Selected posts are processed one at a time through a loop to respect Reddit's rate limits. For each worthy post, the AI-generated comment is posted, and complete interaction data is logged to Google Sheets including timestamp, post details, sentiment, engagement scores, and success status. This creates a permanent audit trail and analytics database. At the end of each run, the workflow aggregates all data into a comprehensive daily summary report with total posts analyzed, comments posted, engagement rate, sentiment breakdown, and the top 5 engagement opportunities ranked by score. This report is automatically sent to Slack with formatted metrics, giving your team instant visibility into your Reddit marketing performance. --- Who is this for? Brand managers and marketing teams needing automated social listening and engagement on Reddit Community managers responsible for authentic brand presence across multiple subreddits Startup founders and growth marketers who want to scale Reddit marketing without hiring a team PR and reputation teams monitoring brand sentiment and responding to discussions in real-time Product marketers seeking organic engagement opportunities in product-related communities Any business that wants to build authentic Reddit presence while avoiding spammy marketing tactics --- Setup Steps Setup time: Approx. 30-40 minutes (credential configuration, keyword setup, Google Sheets creation, Slack integration) Requirements: Reddit account with OAuth2 application credentials (create at reddit.com/prefs/apps) OpenAI API key with GPT-4o-mini access Google account with a new Google Sheet for tracking interactions Slack workspace with posting permissions to a marketing/monitoring channel Brand keywords and subreddit strategy prepared Create Reddit OAuth Application: Visit reddit.com/prefs/apps, create a "script" type app, and obtain your client ID and secret Configure Reddit Credentials in n8n: Add Reddit OAuth2 credentials with your app credentials and authorize access Set up OpenAI API: Obtain API key from platform.openai.com and configure in n8n OpenAI credentials Create Google Sheet: Set up a new sheet with columns: timestamp, postId, postTitle, subreddit, postUrl, sentiment, engagementScore, responseType, commentPosted, reasoning Configure these nodes: Brand Keywords Config: Edit the JavaScript code to include your brand name, product names, and relevant industry keywords Search Brand Mentions: Adjust the limit (default 50) and sort preference based on your needs AI Post Analysis: Customize the prompt to match your brand voice and engagement guidelines Filter Engagement-Worthy: Adjust the engagementScore threshold (default 60) based on your quality standards Loop Through Posts: Configure max iterations and batch size for rate limit compliance Log to Google Sheets: Replace YOURSHEETID with your actual Google Sheets document ID Send Slack Report: Replace YOURCHANNELID with your Slack channel ID Test the workflow: Run manually first to verify all connections work and adjust AI prompts Activate for daily runs: Once tested, activate the Schedule Trigger to run automatically every 24 hours --- Node Descriptions (10 words each) Daily Marketing Check - Schedule trigger runs workflow every 24 hours automatically daily Brand Keywords Config - JavaScript code node defining brand keywords to monitor Reddit Search Brand Mentions - Reddit node searches all subreddits for brand keyword mentions AI Post Analysis - OpenAI analyzes sentiment, relevance, generates contextual helpful comment responses Filter Engagement-Worthy - Conditional node filters only high-quality relevant posts worth engaging Loop Through Posts - Split in batches processes each post individually respecting limits Post Helpful Comment - Reddit node posts AI-generated comment to worthy Reddit discussions Log to Google Sheets - Appends all interaction data to spreadsheet for permanent tracking Generate Daily Summary - JavaScript aggregates metrics, sentiment breakdown, generates comprehensive daily report Send Slack Report - Posts formatted daily summary with metrics to team Slack channel
Generate WordPress blog posts with GPT-4O and Pixabay featured images via form
This workflow automates the creation of a draft article for a blog Use Cases Rapidly generate blog content from simple prompts. Ensure content consistency and speed up time-to-publish. Automatically source and attach relevant featured images. Save your digital marketing team significant time. (Personalized touch based on your experience) Prerequisites/Requirements An OpenAI API Key (for GPT-4O). A Pixabay API Key (for image sourcing). A WordPress site URL and API credentials (username/password or application password). Customization Options Adjust the AI prompt in the AI Content Generation node to change the content tone and style. Modify the search query in the Pixabay Query HTTP node to influence the featured image selection. Change the reviewer email address in the final Send Review Notification node.