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

Moyen complexité Planifié9 nœuds🏷️ Miscellaneouspar Kanaka Kishore Kandregula

Aperçu

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

Nœuds utilisés

HTTP RequestSlackGmailCode

Aperçu du workflow

📦 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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur planifié, s'exécutant selon un planning défini.

  2. 2

    Traitement

    Les données transitent par 9 nœuds, connecting code, gmail, httprequest.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (9)

HT

HTTP Request

httpRequest

#1
SL

Slack

slack

#2
GM

Gmail

gmail

#3
CO

Code

code

#4

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier magento-2-low-stock-alert-via-slack-gmail-msi-compatible téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

codegmailhttprequestifscheduletriggerslack

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds9
Complexitémedium
Déclencheurscheduled
CatégorieMiscellaneous

Créé par

Kanaka Kishore Kandregula

Kanaka Kishore Kandregula

@kmyprojects

Tags

codegmailhttprequestifscheduletriggerslack

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →

Related Miscellaneous Workflows