Automate demand forecasting & inventory ordering with AI, MySQL & optimal supplier selection
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs on a schedule (every 3 hours). Along the way it connects MySQL and Slack.
How it runs
Trigger: On a schedule (every 3 hours).
- Fetch POS Data (HTTP Request): calls an HTTP API
- Fetch Historical Sales (MySQL): select
- Fetch Weather Forecast (HTTP Request): calls an HTTP API
- Fetch SNS Trends (HTTP Request): calls an HTTP API
- Fetch Inventory Master (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Merge: merges the data from its input branches
- Format Prediction Dataset (Code): runs custom JavaScript code
- Call AI Prediction API (HTTP Request): calls an HTTP API (POST)
- Calculate Stock Shortage (Code): runs custom JavaScript code
…plus 13 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - MySQL
n8n-nodes-base.mySql - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Slack
n8n-nodes-base.slack
From the author
This workflow streamlines the entire inventory replenishment process by leveraging AI for demand forecasting and intelligent logic for supplier selection. It aggregates data from multiple sources—POS systems, weather forecasts, SNS trends, and historical…