Templates / Automate demand forecasting & inventory ordering with AI, MySQL & optimal supplier selection

Automate demand forecasting & inventory ordering with AI, MySQL & optimal supplier selection

Ready for 3.0

by sato rio ✓ · 978 views · created 2025-12-26 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Fetch POS Data (HTTP Request): calls an HTTP API
  2. Fetch Historical Sales (MySQL): select
  3. Fetch Weather Forecast (HTTP Request): calls an HTTP API
  4. Fetch SNS Trends (HTTP Request): calls an HTTP API
  5. Fetch Inventory Master (HTTP Request): calls an HTTP API
  6. Merge: merges the data from its input branches
  7. Merge: merges the data from its input branches
  8. Format Prediction Dataset (Code): runs custom JavaScript code
  9. Call AI Prediction API (HTTP Request): calls an HTTP API (POST)
  10. Calculate Stock Shortage (Code): runs custom JavaScript code

…plus 13 more steps. See the full node list below.

Services it uses

MySQLSlack

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)

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…

Excerpt from sato rio's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.