← Back to work
// AI · Planning

One Plan

One planning model for a fictional company that makes a modular, repairable phone and sells its spare parts. Five team views read it, and an AI analyst answers what-if questions with the plan's own numbers.

Type
Case study, example data
Category
Planning · AI analyst · Dashboard
Status
Working demo, made-up data
The challenge

In most hardware companies, sales, finance and supply chain each keep their own spreadsheet. The forecast in one doesn't match the stock plan in another, and a what-if question takes a week of reconciling.

Spare parts make it harder. A modular phone maker needs parts for the phones it sells and for every phone already in the field that might need a repair.

The solution

One Plan runs a single model with five views on top: Overview, Commercial, Finance, Supply chain and Impact. Demand is a seasonal forecast per product, region and channel. Component demand is the phone forecast times the bill of materials, plus phones in the field times the repair rate. Supply works out safety stock, reorder points, order quantities and order-by dates.

An AI analyst explains the plan, flags unusual sales and answers what-if questions. Its tools only call the engine, so it quotes the plan's numbers and never invents its own. Ask what happens if battery lead time goes from 8 to 14 weeks, and it re-runs the plan: two stockout months, an 18,000-unit order that is now late, and €109k more tied up in stock and open orders.

Every scenario lives in the URL, so it can be shared. All the data is made up, with two planted anomalies for the model to catch.

Tech stack
TypeScript engine
Pure functions, no IO. The views and the AI call the same plan function.
Next.js 16
Five team views reading one plan, with the scenario in the URL.
AI SDK + Claude
The analyst, with tools that only wrap engine calls.
Recharts
Forecast, stock and cash charts per view.
Vitest
Tests for the engine, the views and the AI tools.
Results
5
Team views
1
Planning engine
12 mo
Forecast horizon

One Plan is a working demo. Swapping the seed data for ERP feeds (stock by location, open orders, bills of materials, lead times, sales by channel) turns it into a real planning tool.

Need something
similar?

Planning, forecasting and S&OP tools your teams share instead of fighting over spreadsheets.

Book a discovery call