Skip to main content

Track WooCommerce inventory and send reorder alerts via Gmail and Slack

Workflow preview

Workflow preview
100%
Track WooCommerce inventory and send reorder alerts via Gmail and Slack preview
Open on n8n.io

1. Workflow Overview

WooCommerce Inventory Reorder Automation with n8n, Gmail & Slack Alerts Automatically track product sales and inventory levels in WooCommerce and trigger reorder notifications when stock runs low o...

Best for

  • File Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.merge, n8n-nodes-base.scheduletrigger, n8n-nodes-base.woocommerce, n8n-nodes-base.code, n8n-nodes-base.filter, n8n-nodes-base.gmail, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Track WooCommerce inventory and send reorder alerts via Gmail and Slack
Workflow name
Track WooCommerce inventory and send reorder alerts via Gmail and Slack

WooCommerce Inventory Reorder Automation with n8n, Gmail & Slack Alerts

Automatically track product sales and inventory levels in WooCommerce and trigger reorder notifications when stock runs low or sales spike.

This n8n workflow runs daily, analyzes all WooCommerce orders to calculate SKU-wise sales, compares them with current product stock, calculates an optimal reorder quantity and sends automated alerts via Email (Gmail) and Slack when a product meets reorder conditions.

Quick Implementation Steps (Get Started Fast)

  1. Import the workflow JSON into your n8n instance.
  2. Connect WooCommerce, Gmail and Slack credentials.
  3. Set the Schedule Trigger to run daily.
  4. Update email recipients and Slack channel.
  5. Activate the workflow.

What It Does

This workflow automates inventory monitoring and reorder decision-making for WooCommerce stores. On a daily schedule, it fetches all orders from WooCommerce and calculates how many units of each SKU were sold. This gives you a clear picture of recent sales velocity without manual reporting.

The workflow then retrieves live product inventory data from WooCommerce, including current stock levels and low-stock thresholds. Sales data and product data are merged using SKU matching and evaluated using logical conditions to determine whether a product should be reordered.

When a product meets the reorder criteria, the workflow calculates an optimal reorder quantity using average daily sales, supplier lead time and safety stock logic. It then automatically notifies the purchasing team via email and Slack, ensuring no critical stock replenishment is missed.

Who’s It For

This workflow is ideal for:

  • WooCommerce store owners
  • Inventory and supply chain managers
  • E-commerce operations teams
  • Businesses looking to reduce stockouts
  • Teams that want proactive, automated purchase alerts

Requirements to Use This Workflow

To use this workflow, you will need:

  • An active n8n instance
  • A WooCommerce store with:
  • Products using SKUs
  • Stock management enabled
  • WooCommerce API credentials with access to:
  • Orders
  • Products
  • A Gmail account connected to n8n (OAuth2)
  • A Slack workspace with bot permissions
  • Basic understanding of n8n nodes and credentials

How It Works & How To Set Up

Step-by-Step Workflow Logic

  1. Schedule Trigger (Daily)
  • The workflow runs automatically once per day.
  1. Fetch All WooCommerce Orders
  • Retrieves all available orders from WooCommerce.
  • No status or date filtering is applied.
  1. Calculate Sales per SKU
  • A JavaScript Code node loops through order line items.
  • Quantities sold are aggregated per SKU.
  1. Fetch All WooCommerce Products
  • Retrieves product inventory data including:
  • Stock quantity
  • Low stock threshold
  • Product name
  1. Merge Sales & Product Data
  • Sales data and product inventory data are merged using SKU matching.
  1. Reorder Eligibility Filter
  • A product qualifies if either condition is met:
  • Current stock ≤ low-stock threshold
  • OR recent sales quantity ≥ 1.5× low-stock threshold
  1. Reorder Quantity Calculation
  • Uses:
  • Average daily sales
  • Fixed lead time (7 days)
  • Safety stock (5 units)
  • Calculates recommended reorder quantity.
  1. Email Notification
  • Sends a formatted HTML email with reorder details.
  1. Slack Notification
  • Sends a real-time alert to a specified Slack channel.

How To Customize Nodes

You can easily adapt this workflow to your business needs:

  • Schedule Trigger
  • Change execution frequency (daily, weekly, etc.).
  • Sales Calculation Code
  • Modify logic to:
  • Ignore certain SKUs
  • Add time-based filtering
  • Apply weighted averages
  • Filter Conditions
  • Adjust reorder rules:
  • Change sales multiplier
  • Use AND logic instead of OR
  • Reorder Formula
  • Update lead time or safety stock values.
  • Integrate supplier-specific rules.
  • Email & Slack Nodes
  • Replace recipients and channels.
  • Customize message formatting or branding.

Add-ons (Extend the Workflow)

You can enhance this workflow with:

  • Automatic purchase order creation in ERP systems
  • Google Sheets logging for reorder history
  • Vendor-specific reorder logic
  • Forecast-based inventory planning
  • Approval workflows before notifications
  • Webhook integration with procurement tools

Use Case Examples

Primary use cases include:

  1. Preventing stockouts in fast-moving WooCommerce stores
  2. Automating daily inventory monitoring
  3. Supporting purchasing teams with data-driven reorder alerts
  4. Replacing manual stock checks and spreadsheets
  5. Improving response time to sudden sales spikes

There are many more variations of this workflow that can be adapted to different industries and store sizes.

Troubleshooting Guide

Issue Possible Cause Solution
No emails sent Gmail credentials not connected Reconnect Gmail OAuth2
No Slack alerts Wrong channel ID or permissions Update channel and Slack app scopes
Reorder triggered too often Filter logic too sensitive Adjust threshold values
Missing sales data Products without SKUs Ensure all products have SKUs
Workflow fails WooCommerce API limits Reduce frequency or paginate data

Need Help?

Need assistance setting up this workflow or customizing it for your business?

Our n8n workflow development team at WeblineIndia specializes in building advanced n8n automations, WooCommerce integrations and end-to-end business process workflows.

Whether you need enhancements, add-ons or a completely custom automation solution, our experts are here to help you streamline operations and scale efficiently.

Contact WeblineIndia to get started with smarter automation today.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Merge Sales & Inventory Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 6 - Inventory Check

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 7 - Fetch Orders

Type / Role
n8n-nodes-base.wooCommerce - wooCommerce
Config choices
Version 1

Block 8 - SKU Sales Volume

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Fetch Products

Type / Role
n8n-nodes-base.wooCommerce - wooCommerce
Config choices
Version 1

Block 10 - Reorder Check

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 11 - Reorder Calc

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Send Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 13 - Slack Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

3. Summary Table

Workflow Track WooCommerce inventory and send reorder alerts via Gmail and Slack
Complexity intermediate
Nodes 13
Categories File Management
Author WeblineIndia
Published 21 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12874/12874.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track WooCommerce inventory and send reorder alerts via Gmail and Slack do?

WooCommerce Inventory Reorder Automation with n8n, Gmail & Slack Alerts Automatically track product sales and inventory levels in WooCommerce and trigger reorder notifications when stock runs low o...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.