Magento 2 Low Stock Alert via Slack & Gmail (MSI Compatible) — n8n Workflow

Medium complexity Scheduled9 nodes🏷️ Miscellaneousby Kanaka Kishore Kandregula

Overview

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 opp

Nodes used

HTTP RequestSlackGmailCode

Workflow Preview

📦 MAGENTO 2 STOCK ALERTS
Author: Kanaka Kishore Kandregula
WORKFLOW PURPOSE:
Automatically monitor Magento 2 (Adobe Commerce) invent
S
KEY FEATURES
✅ MSI Support
✅ Daily automated inventory checks
✅ Customisable stock thresholds
✅ Multiple SKU Reporting
✅ Proactive restocking alerts
BUSINESS VALUE
🚫 Prevent stockouts
💰 Maintain sales revenue
📊 Better inventory management
⏰ Proactive restocking
TIME TO BUILD: 20 minutes
WORK FLOW
1. Schedule Trigger (daily 8:50 AM check)
2. Magento 2 (get all products)
3. Code Node (filter low stock items)
4. If Node (check if any alerts needed)
5. Format alert mess
CONFIGURATION NOTES
- Adjust lowStockThreshold variable in Process Stock Da
- Modify daily schedule timing as needed
- You Bearer YOUR_TOKEN_HERE from Magento
- Slack & Gmail API de
Trigs Daily 8:50am
Magento Logic
Notifications
Checks & Message Formatting
D
Daily Inventory Check
C
Check if Alerts Needed
Send Inventory Alert
Get All Product Skus
Extract SKUs
Fetch MSI Stock Status
Process Stock Data and I…
Send a message
Format Message
9 nodes8 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a scheduled trigger, running on a defined schedule.

  2. 2

    Process

    Data flows through 9 nodes, connecting code, gmail, httprequest.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (9)

HT

HTTP Request

httpRequest

#1
SL

Slack

slack

#2
GM

Gmail

gmail

#3
CO

Code

code

#4

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded magento-2-low-stock-alert-via-slack-gmail-msi-compatible file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Magento 2 Low Stock Alert via Slack & Gmail (MSI Compatible)", "nodes": [...], ...}

Integrations

codegmailhttprequestifscheduletriggerslack

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes9
Complexitymedium
Triggerscheduled

Created by

Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

Tags

codegmailhttprequestifscheduletriggerslack

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows