Magento AI Demand Forecast: plan reorders, stock risk and price decisions
See what may run out, what to buy and which slow movers deserve review. Forecasts run locally; optional AI explains the numbers rather than replacing them.
Forecast product demand from sales and stockout history, review stock risks and export purchase suggestions. Check price recommendations before applying them. Numerical forecasts run locally; optional AI explains the aggregated product figures.
One-off payment, with 12 months of updates.
No subscription or automatic renewal. Keep using the versions included in your update period. Update and licence details
Composer package softaware/module-ai-demand-forecast
Sales history tells you what could be bought. Replenishment needs an estimate of what customers will want while the next delivery is on its way. AI Demand Forecast connects that gap with availability-aware forecasts, supplier timing and reviewable stock and price suggestions.
The dashboard brings together stockout risks, purchase value, overstock, slow movers and pending price suggestions. Open a product to inspect daily sales, forecast range, observed unavailable days and recent held-out model comparisons.
Numerical methods include seasonal, trend, intermittent-demand and moving-average candidates. Forecasts run locally in PHP; external AI is optional for written explanations. Recorded promotion, holiday, optional temperature and price effects are used when supported by history.
Backfill supported historical orders and maintain supplier, lead time, minimum order, case pack and cost data. Supported configurable options and MSI stocks are tracked. Stock observations start after installation, so an older imported quiet week cannot automatically be recognised as a stockout.
Purchase Suggestions prioritises items at or below their reorder point and calculates cover over lead time and an order cycle, with safety stock and pack constraints. Export a filtered CSV to your buying process.
The module does not issue supplier orders or automatically subtract open purchase orders. Check inbound quantities and commitments before converting a suggestion into a buy. Forecasted demand remains an estimate, particularly for sparse history or changing supplier conditions.
Inspect proposed markdowns, slow-mover adjustments or availability pressure, constrained by cost/margin settings and product price boundaries. Authorised approval applies a supported regular or special price. History and reversion protect the review trail, with checks around later edits and scope.
Configured competitor product URLs are read for schema.org prices on a schedule. Missing data, old prices, robots restrictions and blocked access are reported. Confirm comparable variants, pack sizes and currency before relying on an offer.
Optional Monday summaries and on-demand explanations use aggregated product figures through AI Core, with usage and budget controls. Turning off this language-model layer leaves the numerical forecasts available.
Magento 2.4.7–2.4.9, PHP 8.2–8.5, SoftAware Core/AI Core and running cron. Grouped products are not forecast, bundles are treated as bundles and configurable price suggestions are excluded. Consult the documented scope restrictions before planning a broad price change.
Read the Demand Forecast and reorder guide and inspect a product forecast, purchase queue and price recommendation in the demo. Demo amounts and backtests are illustrative, not performance claims for your store.
Try the admin demo. Storefront examples are available on the Luma demo and Hyvä demo. Demonstration or offline-test data shows the workflow; evaluate AI matching and forecasts with your own representative catalogue.
No. Numerical forecasting runs locally in PHP. Optional written summaries and explanations use your configured AI provider and incur its usage cost.
No. It prepares suggestions and a CSV for review. It does not issue supplier orders or automatically subtract open purchase orders; reconcile inbound stock yourself.
Price recommendations wait for an authorised approval. Applied changes are recorded and can be reverted with checks for later edits and documented scope restrictions.
No. Stockout observations begin with tracking after installation. Historical order backfill does not recreate unrecorded availability or price observations.
No. Forecasts are estimates with uncertainty. Backtests describe observed held-out history and do not promise future sales or a universal accuracy rate.
Compatibility
| Magento | 2.4.7 – 2.4.9 |
|---|---|
| PHP | 8.2 – 8.5 |
| Latest version | 1.0.3 |
| composer.json requires | php ~8.2.0||~8.3.0||~8.4.0||~8.5.0 ext-curl * ext-dom * ext-json * magento/framework ~103.0.7 magento/module-backend * magento/module-catalog * magento/module-catalog-inventory * magento/module-catalog-rule * magento/module-config * magento/module-directory * magento/module-eav * magento/module-sales * magento/module-sales-rule * magento/module-store * magento/module-ui * softaware/module-ai-core ^1.2 softaware/module-core ^1.0 |
Installation
After you buy, create a Composer key in your account. Then, in the root of your Magento project:
01Add the repository and your key (once per project)
composer config repositories.softaware composer https://repo.softawarecommerce.com composer config --auth http-basic.repo.softawarecommerce.com PUBLIC_KEY PRIVATE_KEY
02Install the module
composer require softaware/module-ai-demand-forecast
03Enable it
bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy bin/magento cache:flush
The last three are only needed in production mode.
Prefer a zip? Every version you are entitled to can be downloaded from My modules. More about Composer access
User guide
For version 1.0.3. The same guide comes with the module, in docs/user-guide.md.
bin/magento softaware:ai-forecast:backfill (two years by default), then bin/magento softaware:ai-forecast:run. Without this, cron starts with the last 30 days.Click a SKU: the chart shows daily sales, the forecast and its likely range (shaded), and hatched days where the product was out of stock (these days do not count as zero demand). Below: the stock recommendation, the chosen model with the backtest of all candidates (MASE below 1 = better than "same as last week"), and measured effects (promotion uplift, holidays, temperature, price elasticity). Recalculate Now updates one product at once.
Products at or below their reorder point, most urgent first. Suggested quantity = forecast demand over lead time plus one order cycle, plus safety stock, minus salable quantity, rounded up to the case pack and at least the MOQ. Export CSV downloads the list with the current filters, ready for a purchase order.
Nothing changes until you approve. Open a suggestion to see the reason, the expected demand change, the floor and competitor price. Approve and Apply sets a special price (for the configured number of days) or a new regular price; increases always change the regular price. Revert restores the previous prices, unless someone changed the price on the product page in the meantime (then it is left alone and you are told so). Products with their own price on a store view are not changed from a suggestion. Rejected suggestions of the same kind are not repeated for 14 days. Mass approve/reject is in the grid's Actions menu.
Add competitor product URLs on the product page (section Competitor Prices, one per line), one by one on the Competitors page, or by CSV (sku,url,competitor name; comma, semicolon or tab separated, UTF-8 or Excel encodings). They are read once a day; the status column tells you if a page has no schema.org price, is disallowed by robots.txt or blocks automated access (those are skipped). Fetch Now in the grid reads up to 10 selected URLs at once. Prices older than 7 days are ignored.
Set up keys and a budget under Softaware > AI Services (AI Core), then switch on AI Summaries in the settings. A summary is written every Monday (one request); Write Summary Now on the dashboard and Explain with AI on suggestions make one request each. Costs show on AI Core's Usage & Costs page.
Choose a country for public holidays (free Nager.Date service). Weather (free Open-Meteo service) is off by default; set the location where most customers are. Effects are only applied when the history shows them.
Changelog
softaware:ai-forecast:backfill, :run, :competitors:fetch [--dry-run], :summary.PoliteFetcherInterface), schema.org offer parsing (OfferParserInterface), the prompt allow-list filter (PromptDataFilterInterface) and the safe HTTP client for holiday/weather data; AI cost panel on the dashboard.softaware:ai-forecast:run could loop forever; it is now marked done for the day (previous forecast kept) and the error is logged.From the blog
See what may run out, what to buy and which slow movers deserve review. Forecasts run locally; optional AI explains the numbers rather than replacing them.
We use necessary cookies to run this site and, with your permission, Google Analytics to understand how it is used. You can accept analytics, reject it or choose in the settings. Cookie policy
Choose which cookies you allow. Necessary cookies are always on because the shop cannot work without them. You can change your choice at any time with the "Cookie settings" link.
Needed for the basket, checkout, login and security. They do not track you.
Google Analytics: how many people visit, which pages they read and how they found the site. It sets the _ga cookies and sends usage data to Google.