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

Mittel Komplexität Geplant9 Knoten🏷️ Miscellaneousvon Kanaka Kishore Kandregula

Übersicht

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

Verwendete Knoten

HTTP RequestSlackGmailCode

Workflow-Vorschau

📦 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

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem geplant-Auslöser, der nach einem definierten Zeitplan läuft.

  2. 2

    Verarbeitung

    Die Daten fließen durch 9 Knoten, connecting code, gmail, httprequest.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (9)

HT

HTTP Request

httpRequest

#1
SL

Slack

slack

#2
GM

Gmail

gmail

#3
CO

Code

code

#4

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei magento-2-low-stock-alert-via-slack-gmail-msi-compatible und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.

Oder direkt in n8n → Aus JSON importieren einfügen:

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

Integrationen

codegmailhttprequestifscheduletriggerslack

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten9
Komplexitätmedium
Auslöserscheduled
KategorieMiscellaneous

Erstellt von

Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

Tags

codegmailhttprequestifscheduletriggerslack

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →

Related Miscellaneous Workflows