AI Agents for Equipment Maintenance: Part, Approval, Work Order

AI agents for equipment maintenance earn their place in the minutes between an alarm and a decision, and this is a story about those minutes. I'm Trevor Solis, Lead AI Engineer for Missions at StudioX. The scene below is illustrative: a composite of how a packaging plant works, not a record of a real event, and the times in it are there to show the shape of the work, not to report a result. The organisation is a mid-sized food packaging manufacturer running three lines across two shifts.
The Moment
It is 4:40 in the morning on line 2. The case packer's gearbox has been running hot for two days, nothing dramatic, and now the condition monitoring system raises a vibration alert on the output-side bearing. The amplitude at the bearing's defect frequency has crossed the warning band and is trending up.
The night shift lead sees the alarm on the HMI. The line is still running. A bearing failure on that gearbox means a damaged gear set and a line down for most of a day instead of an hour. Stopping the line for a bearing the storeroom may not have is its own problem. The maintenance supervisor starts at six. The storeroom clerk starts at seven.
What Used to Happen
At this plant, the old path went like this.
The shift lead logs the vibration alert in the CMMS as a request. A technician on nights walks to the gearbox, puts a hand on the housing, listens, and agrees it sounds wrong. He looks up the bearing part number on the asset's bill of materials in the CMMS, which may still describe the gearbox as it was before a rebuild.
He then needs to know whether the bearing is on the shelf. The storeroom system belongs to the materials team, and nobody on nights remembers how to use it. So he emails the storeroom, leaves a voicemail, and writes the part number on a sticky note for the morning.
At six, the maintenance supervisor reads the emails, checks the service history and decides whether this is a planned downtime job. At seven, the storeroom clerk finds the bearing, or finds it is on order, and walks it to the cage. Someone re-keys the reservation into the work order. The work order is released to the day shift around mid-morning, and the line goes down at the next changeover.
Every step was reasonable. The waiting was the cost: two systems, three people, each holding one piece, connected by email.
What Happened Instead: AI Agents for Equipment Maintenance
The plant now runs a maintenance agent, built as a StudioX mission owned by the reliability team. The storeroom runs its own inventory agent, built and operated by the materials team on another platform. The two talk over Agent2Agent, the open protocol described in What Is the Agent2Agent (A2A) Protocol?.
The trigger. At 4:40 the vibration alert arrives at the maintenance agent along with the asset ID, the measurement point and the trend.
What the maintenance agent read and decided. It pulled the asset record and service history from the CMMS through its MCP connection, saw the gearbox had been rebuilt, and took the bearing part number from the rebuild work order rather than the original bill of materials. It read the plant's maintenance procedure for this gearbox family, which says a rising defect-frequency trend past the warning band means replace at the next planned downtime, not run to failure. Its decision: replace the output bearing, schedule it for the next changeover, and confirm the part.
The A2A handoff. The maintenance agent read the inventory agent's Agent Card. The card names the agent, its endpoint and the skills it offers, including checking stock for a part number and placing a reservation against a work order. It declares that it accepts structured data, supports streaming, and requires OAuth 2.0.
Before the request went out, StudioX's Agent Policies checked it. The policy written by the reliability team allows the maintenance agent to ask the inventory agent for stock checks and reservations. It does not allow it to ask for a purchase requisition; that stays with a person. The allow was logged.
The maintenance agent sent a message with three parts: the part number, the quantity, and the draft work order reference. The task moved from submitted to working. The inventory agent streamed updates, and the task moved to completed and returned an artifact: two bearings in stock, bin location C-14-03 in the main storeroom, and a reservation of one against the work order, with a reservation number.
What the maintenance agent did with it. It wrote the reservation number and bin location into the work order in the CMMS, attached the vibration trend and the procedure reference, estimated the job at one hour of planned downtime, and proposed the slot at the 7:00 changeover.
Where a person approved. The work order did not release itself. The mission pauses at a defined step: the maintenance supervisor must approve any work order that takes a line down. At 6:05 she opened it on her phone and saw the alert, the history, the procedure, the part with its bin location, and the proposed slot. She approved it. The shift lead was told in the same moment.
Outcome. The technician picked the bearing from C-14-03 at the start of the day shift and changed it at the changeover. In this scene the line lost its planned hour and nothing more; the gearbox did not fail, and OEE for the shift took the hit of a planned stop rather than an unplanned one.
Why It Worked
Underneath the scene is a plain architecture.
Two agents, two teams, two platforms. The reliability team owns the maintenance agent; the materials team owns the inventory agent. Neither granted the other a database login. StudioX supports A2A 1.0, and StudioX missions and assistants are published as A2A agents with their own Agent Cards, so the same arrangement works in the other direction when another platform's agent needs to send work to a StudioX mission. Before relying on the inventory agent, the reliability team tried it from the A2A playground in Studio to see what its skills actually returned.
The Agent Card. The card told the maintenance agent what the inventory agent could do and how to authenticate. The inventory agent stayed opaque: its logic and its rules for which bins to draw from were its own business.
The task lifecycle. Submitted, working, completed, with streamed updates. If the bearing had been out of stock, the inventory agent could have returned input-required or a result saying so, and the maintenance agent would have routed the work order to the supervisor flagged as waiting on parts, rather than proposing a slot.
Policy and approval. Agent Policies, written in Rego and checked before every tool call, limited what the maintenance agent could ask for. The approval step meant no line was taken down without the maintenance supervisor's yes.
The record. For any run, the plant can download a W3C PROV provenance record showing which agent and which person acted, what data was used and what was produced. The same run is one OpenTelemetry trace across StudioX services, sent to whatever monitoring the plant uses.
For plants where the network is isolated, the same pattern runs in an air-gapped deployment. The handoff works only if both agents are reachable inside the isolated environment, so the plan has to account for where each agent runs and which models, identity services and data sources it depends on. More on manufacturing use is on the FactoryX page.
What This Pattern Generalizes To
The same shape, one agent deciding and another holding the resource, recurs across a plant:
- Quality hold to production scheduling. A quality agent places a lot on hold after an out-of-spec reading and asks the scheduling agent to resequence the line so the held material is not consumed.
- Changeover to tooling crib. A changeover agent asks the tooling agent to confirm the change parts for the next SKU are in the crib and to stage them at the line before the shift starts.
- Preventive maintenance to spare parts planning. A planning agent building next month's PM schedule asks the spare parts agent which kits are short, so purchase requests go out before planned downtime, with a buyer approving each one.
- Contractor work to permits. A maintenance agent asks the safety agent to confirm a lockout permit is issued before a contractor work order is released.
In each case the person who owns the consequence still approves the step that commits the line.
Frequently Asked Questions
Does the inventory agent have to be built in StudioX?
No. It has to speak A2A and publish an Agent Card. In this scene it runs on another platform, owned by the materials team. If the storeroom system has no agent at all, the maintenance agent can reach it through an MCP connector instead, but then the reliability team owns that integration.
Can the maintenance agent order parts if the storeroom is out?
Only if your policy allows it. In this plant's policy it may reserve stock but not raise a purchase requisition; a short part goes to a person. That line is yours to draw, and it is written down in Agent Policies where your team can read it.
What does the maintenance supervisor actually see?
The work order as the agent drafted it, with the vibration alert, the service history it used, the procedure it followed, the reserved part and its bin location, and the proposed slot. Her decision becomes part of the run's record.
Call to Action
If your plant moves condition-monitoring answers between teams by email, start with one asset class and one handoff. Talk to us about building the maintenance side as a StudioX mission and connecting it to the systems that hold your spare parts. See how StudioX works in manufacturing on the FactoryX page.
Related Reading
Discussion
No comments yet — start the conversation.