A shortage just as production is about to start: Field notes from an FDE at a supplement factory
FDE stands for forward deployed engineer. This time we worked at a dietary supplement factory. We sit alongside the client’s team, using AI as we learn how the work gets done and build the system.
1. What do you do when materials calculations keep holding up production?
The factory’s old system already had modules for orders, inventory and production. But they didn’t form a single workflow. People still had to calculate material requirements themselves and handle many steps by hand.
It’s easy to miss something. At a meeting, the client told us: “When they got the calculation wrong, they wouldn’t find out until they were about to start production. Hang on, why are we short of this material?”
Several products share some of the same ingredients. Someone might count what one product needs and forget another. Or two orders might both count on the same lot when production is scheduled.
When we arrived, we didn’t start building right away. We walked through the process with each department first.
2. Work out what’s needed when scheduling production
Planners now select the products they want to schedule and enter the quantities. The system suggests a materials requisition showing how much of each material is needed, which lot to draw from and whether there’s enough. Confirming the schedule reserves the stock and generates the requisition, so later orders can’t count on that same stock.

Material requirements in the production plan (system interface; demo data).
The screen shows a gelatin shortage, with 100 kg in transit and due on December 4. The team asked for the “Quantity awaiting inspection” column when we discussed the prototype. Materials can arrive at the warehouse but still be waiting for quality clearance. As they put it, “We often had no idea when they’d release it. We had to chase someone down every time.” Now planners can see both the quantity awaiting inspection and when results are expected.
3. Ontology: Show AI how the records fit together
Once the data was in the system, we wanted AI to help people look things up. WorkBuddy connects to the system via MCP, so people can ask questions directly in the chat.
For the same lot of material, the warehouse uses a material lot number, the shop floor a production batch number, sales an order number and purchasing a contract number. Hand AI a collection of APIs and it won’t know how those numbers fit together.
We added an ontology: a layer that records which business objects exist in the factory and how they relate. It currently covers 16 object types and 67 relationships, including materials, purchase contracts, inventory lots, requisitions, production batches, sales orders and inspection results.

Here’s what the code looks like:

An excerpt from the actual ontology code. define declares an object, ref and many describe relationships, and function specifies an analysis available for that object.
If there was a problem with a gelatin lot, someone used to have to find it in inventory, check the stock issue records to see where it went, then search production records for the batch that used it and the corresponding order. The answer took several trips between modules.
Now that those relationships are recorded, you can ask WorkBuddy: “Which production batches used gelatin lot R261018-2, and which orders do they correspond to?”

Tracing a material lot in WorkBuddy (illustration based on the WorkBuddy interface; demo data).
Suppose a shipment will arrive a week late. People used to check stock on hand, find out when the purchase was due, then work through the orders one by one, comparing due dates and material needs. Only then could they tell which order would miss its deadline.
Now they ask: “If the 100 kg of gelatin in transit arrives a week late, which orders will be affected?” The calculation is already in the system: it’s delay_impact in the code. AI calls it and explains the result; it doesn’t estimate the numbers itself.

Asking WorkBuddy about the impact of a material delay (illustration; demo data).
The ontology doesn’t store a second copy of the business data. Queries read the system’s current records. Each query can follow relationships down up to three levels; if that’s not enough, you can ask a follow-up. If you don’t have access to a level, AI tells you it can’t see it.
4. MCP: Connect AI to the system
WorkBuddy connects through MCP, a common protocol for connecting AI tools to software. Configure the system’s MCP connection in WorkBuddy and you’re ready to go. Another MCP-compatible tool such as Claude works too. The client doesn’t need to install anything extra.
To use it, just ask WorkBuddy: “Give me a material shortage alert.”

A shortage alert generated by WorkBuddy from a template (illustration; demo data).
You can also schedule a task in WorkBuddy to produce a report automatically every morning.
5. What AI can see and what it can change
• Everyone uses their own token. If you can’t see something in the system, AI can’t see it either.
• Access is read-only by default. Creating or editing records requires separate authorization. AI shows a preview and writes the change only after a person confirms it.
• Approval and deletion aren’t available to AI. A person decides whether to approve an item in the system.
• Every call is logged: who made it, when, which tool was called and how AI restated the question. The logs can be viewed in the admin interface but not edited.

AI assistant logs in the admin interface (system interface; demo data). The entry marked “Failed” is a planner asking for a reconciliation amount they weren’t authorized to see.
One last thought
If there’s a step in your company that still depends on someone calculating, cross-checking or chasing things up by hand, how much of it could AI take on? Tell us about it in the comments, or get in touch and we’ll pick one step to try together. The result might surprise you.