Automated Magento 2 Inventory Alerts
detail.loadingPreview
Proactively prevent stockouts and optimize inventory management for your Magento 2 store. This workflow automatically checks product stock levels daily and sends instant alerts to Slack and Gmail when items are running low.
About This Workflow
This robust n8n workflow is designed to streamline your Magento 2 (Adobe Commerce) inventory management by providing timely alerts for low-stock products. It begins with a daily schedule to check your entire product catalog. The system fetches all product SKUs, then retrieves their current stock status, supporting Multi-Source Inventory (MSI). A smart code node analyzes this data against configurable thresholds to identify items requiring attention. If low stock is detected, the workflow triggers immediate notifications to a dedicated Slack channel and a specified Gmail address, ensuring you can react swiftly to prevent stockouts and maintain sales revenue. This solution is perfect for businesses looking to enhance inventory control and reduce lost sales opportunities.
Key Features
- Daily Automated Checks: Ensures consistent monitoring of your Magento 2 inventory.
- Customizable Stock Thresholds: Set your preferred low stock alert levels.
- MSI Support: Accurately tracks inventory across multiple sources.
- Proactive Restocking Alerts: Receive immediate notifications to prevent stockouts.
- Multi-Channel Notifications: Get alerts via Slack and Gmail for comprehensive visibility.
How To Use
- Schedule Trigger: Configure the 'Daily Inventory Check' node to run at your desired time (e.g., '50 8 * * *' for 8:50 AM daily).
- Magento API Credentials: Ensure your Magento 2 API credentials are set up correctly in n8n for authentication in the 'Get All Product Skus' and 'Fetch MSI Stock Status' nodes.
- Set Low Stock Thresholds: Modify the
lowStockThresholdandminSourceQuantityvariables within the 'Process Stock Data and Identify Low Stock' node to match your business needs. - Notification Channels: Update the Slack channel name ('#magento-notifications') in the 'Send Inventory Alert' node and the recipient email address ('kmyprojects@gmail.com') in the 'Send a message' node.
- Test the Workflow: Run the workflow manually to ensure all connections and configurations are working correctly before enabling automatic execution.
Apps Used
Workflow JSON
{
"id": "cb835b47-d6f1-40eb-be5c-21ff6632f2cc",
"name": "Automated Magento 2 Inventory Alerts",
"nodes": 14,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: cb835b47-d6f1...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.