Pull Inventory -> Match Demand -> Rank Risk -> Flag Stale -> Send List
Critical Spares Stockout-Risk Agent
The agent reads your CMMS spares inventory, consumption history, and open work orders, then ranks the critical parts that are one failure away from a stockout with a long replacement lead time. It also surfaces reorder points that no longer match usage and spares tied to equipment you already retired. You get a short expedite list, a stale-level list, and a dead-stock list every morning.
The Problem
The pump failed on a Tuesday. The spare had a 16-week lead time and none on the shelf.
A seal pump trips at 2am and the standby is already down for overhaul. Stores shows zero on hand for the impeller, and the vendor quotes 16 weeks. The reorder point was set five years ago when the line ran half the batches it runs now, so nothing ever triggered a purchase. The batch sits, and the first anyone hears of the gap is the breakdown itself.
What Changes
See the stockout before the breakdown does.
The agent joins inventory on hand against open work-order demand, recent consumption, and vendor lead times, then flags every critical spare where one more issue empties the shelf before a replacement can arrive. It checks reorder points against actual usage and calls out the ones that drifted. It lists spares still carried for equipment that was decommissioned, so you can free the cash and the shelf space.
Humans stay in control: the agent ranks and drafts the expedite list, and your planner decides what to order, expedite, or write off.
HOW THE AGENT WORKS
HOW TO BUILD IT
Three levels of depth. Pick the one that matches where you are.
For the ops person who needs to understand what's involved and brief their team.
WHAT YOUR TEAM PROVIDES ONCE
- CMMS inventory export - a daily snapshot of spares on hand and reorder points
- Consumption history - how often each part has been issued
- Open work-order demand - parts already committed to scheduled jobs
- Vendor lead times - how long a replacement takes to arrive
- Equipment criticality - which assets stop production when they fail
For the IT person or technical lead who needs to scope the integration.
INQUIRY SOURCES
WORKFLOW ENGINE (N8N)
CONNECTS TO
Without API access, someone drops a nightly CSV export into a watched folder and the agent runs from that. It still ranks risk and sends the digest, just from the file you provide.
With API access to the CMMS, the agent pulls a fresh inventory and demand snapshot every night, matches it to live lead times, and posts the digest straight to the planner's channel. No manual export, no stale file. Best experience.
For the person who wants to build this agent step by step. Each node below maps to an n8n workflow node.
You are a maintenance stores analyst. For each spare below, decide whether it is at risk of a stockout before a replacement can arrive, and whether its reorder point looks stale. Input: {spares_json}. A spare is at risk when on_hand minus open_demand is at or below the quantity likely to be consumed over the vendor lead_time_weeks, and equipment_criticality is high. A reorder point is stale when it was set more than {stale_months} months ago or no longer matches recent consumption. Respond ONLY with valid JSON. No explanation.{"stale_months":24,"spares":[{"part":"IMP-204","desc":"Impeller, feed pump","on_hand":0,"open_demand":1,"weekly_use":0.3,"lead_time_weeks":16,"equipment_criticality":"high","reorder_point":2,"reorder_set":"2019-03-01"}]}{"at_risk":[{"part":"IMP-204","reason":"Zero on hand against one open work-order demand, 16-week lead time on a high-criticality pump","action":"expedite"}],"stale_reorder":[{"part":"IMP-204","reason":"Reorder point set in 2019, well past the 24-month window"}],"dead_stock":[]}- Export one nightly CSV from the CMMS with part number, on hand, reorder point, and consumption.
- Add a small reference sheet mapping each part to equipment criticality and vendor lead time.
- Build the schedule trigger and the file or API read in n8n.
- Drop in the LLM node with the scoring prompt and test it on last week's data.
- Filter to at-risk items and format a plain-text digest.
- Send the digest to the planner by email and check the first week's flags by hand.
- =+ Pull live lead times from procurement instead of a static sheet.
- =+ Add seasonality to consumption so risk reflects the busy season.
- =+ Post to Teams or Slack with an acknowledge button that logs who actioned each item.
- =+ Track flagged versus actioned spares to measure avoided stockouts.
- =+ Feed dead-stock findings into a quarterly write-off review.
- =+ Learn per-vendor lead-time reliability and widen the buffer for the unreliable ones.
Full Video Walkthrough Coming Soon
A two-minute look at how the agent turns a nightly CMMS export into a ranked spares risk list.
Register to be notifiedEverything on this page is free to learn.
When you're ready to build — do it yourself or bring us in.
OTHER AGENTS IN LEASING & MARKETING
Changeover Maintenance Readiness Agent
Frequently asked questions
This is 2 of 2 agents in Engineering & Maintenance. → · Explore all 15 departments →