Skip to main content

Track inventory levels with automated alerts

Workflow preview

Workflow preview
100%
Track inventory levels with automated alerts preview
Open on n8n.io

1. Workflow Overview

Receive inventory movements via webhook, validate data, update stock levels, and trigger automatic alerts when products need reordering. WHAT IT DOES: Accepts inventory movements (sales, purchases,...

Best for

  • Project Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, n8n-nodes-base.httprequest, n8n-nodes-base.switch, 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 Manu.

Original n8n.io source

1.1 Workflow description

Title
Track inventory levels with automated alerts
Workflow name
Track inventory levels with automated alerts

Receive inventory movements via webhook, validate data, update stock levels, and trigger automatic alerts when products need reordering.

WHAT IT DOES:

Accepts inventory movements (sales, purchases, adjustments, transfers) via webhook Validates required fields including product ID, quantity, and movement type Records each movement via REST API Retrieves current stock levels after each movement Compares stock against configurable reorder points Routes alerts by severity through Slack and email Logs every movement to audit trail for traceability Returns movement ID, stock level, and alert status to the caller

INCLUDED FLOWS:

Valid movement: Webhook receives data → Validate fields and type → Record via API → Get current stock → Compare against thresholds → Route alerts by severity → Log to audit trail → Return movement ID, stock level, and alert status Invalid movement: Missing product ID, quantity, or invalid type → Return 400 error with validation details Workflow error: Any node fails → Error trigger → Slack alert to #errors channel

ALERT LEVELS:

Critical (stock is zero): Slack alert to #inventory-critical AND email to purchasing team with suggested reorder quantity Urgent (stock below 50% of reorder point): Slack alert to #inventory with stock percentage and suggested order Warning (stock at or below reorder point): Slack alert to #inventory with current level None (stock above reorder point): No alert, movement logged normally

SETUP:

HTTP Header Auth credential with API key and base URL for your inventory API Gmail credential for critical stock email alerts Slack credential with access to #inventory-critical, #inventory, and #errors channels Backend API with /inventory/movement, /inventory/product, and /inventory/audit endpoints

CUSTOMIZABLE:

Alert thresholds are adjustable in the Check Stock Levels code node (default: 0 for critical, 50% for urgent, 100% for warning) Movement types can be extended in the Validate Movement code node Critical alert email recipient is configurable in the Email - Critical Alert node Slack message format for each alert level is editable in the corresponding Format Alert code nodes

IDEAL FOR:

E-commerce, retail, and warehouse teams that need real-time inventory tracking with automatic reorder alerts across multiple severity levels.

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 - Overview

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

Block 2 - Movement Intake

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

Block 3 - Stock Update

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

Block 4 - Alert System

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

Block 5 - Audit & Response

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

Block 6 - Error Handling

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

Block 7 - Webhook - Inventory Movement

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

Block 8 - Validate Movement

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

Block 9 - IF - Valid Movement

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

Block 10 - Format Validation Error

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

Block 11 - Respond - Validation Error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 12 - Prepare API Body

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

Block 13 - API - Record Movement

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - API - Get Current Stock

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Check Stock Levels

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

Block 16 - Alert Router

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 17 - Format Critical Alert

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

Block 18 - Slack - Critical Alert

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

Block 19 - Email - Critical Alert

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

Block 20 - Format Urgent Alert

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

Block 21 - Slack - Urgent Alert

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

Block 22 - Format Warning Alert

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

Block 23 - Slack - Warning Alert

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

Block 24 - No Alert Needed

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

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Track inventory levels with automated alerts
Complexity advanced
Nodes 31
Categories Project Management
Author Manu
Published 02 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13165/13165.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 inventory levels with automated alerts do?

Receive inventory movements via webhook, validate data, update stock levels, and trigger automatic alerts when products need reordering. WHAT IT DOES: Accepts inventory movements (sales, purchases,...

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 Project Management use case.