Skip to main content

Magento 2 low stock alert via Slack & Gmail (MSI compatible)

Workflow preview

Workflow preview
100%
Magento 2 low stock alert via Slack & Gmail (MSI compatible) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Daily Magento 2 stock check Automation It identifies SKUs with low inventory per source and sends daily alerts via: Gmail (HTML emai...

Best for

  • Miscellaneous automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.if, n8n-nodes-base.slack, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Magento 2 low stock alert via Slack & Gmail (MSI compatible)
Workflow name
Magento 2 low stock alert via Slack & Gmail (MSI compatible)
Daily Magento 2 stock check Automation

It identifies SKUs with low inventory per source and sends daily alerts via:

📬 Gmail (HTML email)
💬 Slack (formatted text message)

This automation empowers store owners and operations teams to stay ahead of inventory issues by proactively monitoring stock levels across all Magento 2 sources. By receiving early alerts for low-stock products, businesses can restock before items sell out—ensuring continuous product availability, reducing missed sales opportunities, and maintaining customer trust.

Avoiding stockouts not only protects your brand reputation but also keeps your store competitive by preventing customers from turning to competitors due to unavailable items. Timely restocking leads to higher fulfillment rates, improved customer satisfaction, and ultimately, stronger revenue and long-term loyalty.

✅ Features:
  1. Filters out configurable, virtual, and downloadable products
  2. Uses Magento 2 MSI stock per source
  3. Customizable thresholds (default: ≤10 overall or ≤5 per source)
  4. HTML-formatted email report
  5. Slack notification with a code-formatted
  6. Runs daily via Cron (08:50 AM)
  7. No need of any 3rd part Modules
  8. One time Setup
🔑 Credentials Used
  1. HTTP Request (Magento 2 REST API using Bearer Token)
  2. Gmail (OAuth2)
  3. Slack (OAuth2 or Webhook)
📊 Tags

Magento, Inventory, MSI, Stock Alert, Ecommerce, Slack, Gmail, Automation

📂 Category

E-commerce → Magento 2 (Adobe Commerce)

👤 Author

Kanaka Kishore Kandregula
Certified Magento 2 Developer https://gravatar.com/kmyprojects
https://www.linkedin.com/in/kanakakishore

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 - Daily Inventory Check

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

Block 2 - Check if Alerts Needed

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

Block 3 - Send Inventory Alert

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

Block 4 - Workflow Info

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

Block 5 - Features & Config

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

Block 6 - Business Value

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

Block 7 - Get All Product Skus

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

Block 8 - Extract SKUs

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

Block 9 - Fetch MSI Stock Status

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

Block 10 - Process Stock Data and Identify Low Stock

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

Block 11 - Send a message

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

Block 12 - Format Message

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

Block 13 - Sticky Note

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

Block 14 - Sticky Note1

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

Block 15 - Sticky Note2

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

Block 16 - Sticky Note3

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

Block 17 - Sticky Note4

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

Block 18 - Sticky Note5

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

3. Summary Table

Workflow Magento 2 low stock alert via Slack & Gmail (MSI compatible)
Complexity advanced
Nodes 18
Categories Miscellaneous
Author Kanaka Kishore Kandregula
Published 26 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6471/6471.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 Magento 2 low stock alert via Slack & Gmail (MSI compatible) do?

Daily Magento 2 stock check Automation It identifies SKUs with low inventory per source and sends daily alerts via: Gmail (HTML emai...

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 Miscellaneous use case.