From a spreadsheet everyone shared to a system that remembers
Big-box home-improvement retailer (Malaysia)
How Catalyst AI turned a fragile replenishment macro into a multi-user decision platform — without changing a single business rule.

At a glance
Industry
Big-box home-improvement retail.
Setting
A multi-site store network with a central distribution centre.
Starting point
A single spreadsheet macro, run by hand every morning.
What we built
An on-premises, multi-user replenishment review platform with an AI assistant.
How it was built
AI-accelerated delivery, from reverse-engineering to working software.
The problem
Every morning, one planner exported seven reports from the ERP into a spreadsheet macro so heavy it could process only one merchandise category at a time, then clicked through a fixed sequence to produce the day's recommended actions. The file went into a shared folder where about ten planners worked from the same static copy — so two could order the same item, a mistake caught not in the system but weeks later when double the stock arrived at the loading dock. And because each morning began from a fresh export, the process had no memory: a chronic exception looked identical to a brand-new one, with no history of who decided what.
The solution
We decoded the workbook line by line — macro code, a calculation sheet hundreds of columns wide, and every rule mapped back to its source fields — and turned the client's own worked examples into an automated acceptance test the new engine had to reproduce exactly. With the logic proven, we rebuilt it as an on-premises, multi-user platform: all seven exports processed together in seconds, routine lines cleared automatically, ten planners sharing one live view where claiming a line prevents duplicate orders, run-to-run memory that surfaces recurring exceptions, and an AI assistant that explains the numbers in plain language — while the deterministic rules, never the AI, make every decision.
The outcome
The organisation moved from a heavy spreadsheet one person ran and ten shared to a system a whole team works in together, with the same trusted logic now backed by memory and safeguards. The expensive, invisible mistakes — duplicate orders discovered only when stock arrived — became visible and preventable, the daily pile of exceptions became a managed, ageing, trending queue, and every decision is now recorded to inform the next improvement. It started by replacing a file; it ended by changing the work.
What we did first: earn the right to rebuild it
The temptation with a project like this is to rewrite from a fresh specification and move on. We didn't. The spreadsheet contained the client's real replenishment policy, and getting it subtly wrong would have been worse than useless — a planner who spots one incorrect number stops trusting the whole system.
So we started by decoding the workbook itself, not a description of it. That meant reading the macro code line by line, unpacking a calculation sheet hundreds of columns wide, and mapping every rule in the decision logic back to the exact fields it drew on. Several of the trickier derivations — how available stock was really composed, how the distribution centre's position was calculated, how demand was normalised for online orders — had never been written down anywhere. We reconstructed them from the formulas and confirmed each one against the client's own worked examples.
Those worked examples became our proof. The client had a sample output workbook — a set of fully worked lines covering every branch of the logic. We turned it into an automated acceptance test: our engine had to reproduce every one of those results exactly, or the build failed. Not checked by eye, once — enforced on every change, forever. When we could show the new system matching the old spreadsheet line for line, the conversation stopped being 'do we trust this?' and became 'what else can it do?'
Being honest about the edges mattered just as much. Where a calculation was reconstructed rather than certain, we surfaced it in the product with a plain confidence label and a short list of questions for the client's own experts to confirm — rather than burying an assumption inside the code and hoping. That turned the first client review into a working session instead of an interrogation.
Two capabilities across all five
A guard against repeat orders closes a subtle gap. Because the ERP's outstanding-order export can lag, an order raised on Monday might not appear in Tuesday's file — so the same line resurfaces and gets ordered again. The platform remembers what was already issued and warns before a duplicate goes out, even across days.
And an AI assistant lets planners simply ask — 'what must I order this week?', 'what's been stuck the longest?', 'is the exception rate improving?' — and get answers in plain language, with charts and tables, instead of clicking through screens.
Where we drew the line on AI
We were deliberate about this, and we say so plainly to every client: the recommendation engine is deterministic. The rules decide, exactly as the business defined them, auditable and repeatable — the same inputs always produce the same answer. That is not a limitation; for an inventory process that has to stand up to scrutiny, it is the point.
The AI's job is to explain and assist, never to decide. Every figure the assistant reports is computed by the system from live data; the model only puts it into words. If it cannot compute an answer, it says so rather than inventing one. There are no hallucinated numbers, because the numbers never come from the model.
That division — rules for decisions, AI for language and analysis — is what makes an AI feature safe to put in front of a team whose trust you cannot afford to lose.
Built for where it runs
The client needed the system to run entirely within their own environment, on their own hardware, with no dependency on the outside world at runtime. The platform was built to those constraints from the start: the data never leaves the building, and the whole system is light enough to run on modest on-premises infrastructure rather than a server farm.
How we work
This engagement is a template for how Catalyst AI delivers: we begin by faithfully understanding what already works, prove the new system against the old one before we extend it, and use AI to accelerate the build — while being disciplined about keeping AI out of the decisions that must remain auditable. The result is software a team actually trusts, delivered in a fraction of the usual time.
What we built
See
The seven daily exports are dropped in once, validated, and processed together — every category and every site at once, in seconds, rather than one merchandise group at a time.
Decide
The routine lines clear themselves; what reaches a planner is the genuine judgement calls. Every recommendation opens into its full working, so a planner can see exactly how a number was reached and which rule it matched.
Act safely
Ten planners now share one live view instead of one static file. A planner claims a line; everyone else immediately sees it's taken. The duplicate-order problem that used to be discovered at the loading dock is prevented at the point of decision.
Remember
Every run is compared with the last. The platform knows what's new today, what's carried over, how long each exception has been open, and which items keep coming back — a recurring line is a signal that a setting upstream needs fixing, and the system says so.
Improve
As the team formalises more of its decision rules, fewer lines need a human. Change a threshold and see exactly how many lines move before committing to it, then watch the exception rate trend down over time.
Interested in what this could look like for your operation?
Get in touch with Catalyst AI to explore how a governed decision platform — with the same trusted logic, and AI that explains rather than decides — could fit your operation.
Get in touch