An LLM-Agentic Framework for Intelligent Work Order Management in Industrial Maintenance

Nianjun Zhou, Dhaval PatelarXiv 2026 · arXiv

TL;DR

Researchers have developed CodeReAct, an AI agent framework that translates natural language queries into executable Python code to manage industrial maintenance. By bridging the gap between raw IoT data and maintenance strategy, the system allows engineers to perform complex data science tasks—like predicting failures or bundling work orders—through simple conversation.

What Problem Does This Paper Address?

Industrial maintenance is currently stuck between a rock and a hard place. Traditional "preventive" maintenance (fixing things on a fixed schedule) is often wasteful, while "predictive" maintenance requires a heavy lift from data science teams to interpret vast streams of IoT sensor data, OEM alerts, and manual work orders.

The challenge is one of translation: how do you take a reliability engineer's question—"What are the temporal relationships between recent work orders and alerts for Chiller 9?"—and turn it into a rigorous analytical workflow? Most current Large Language Model (LLM) tools struggle with the domain-specific jargon and the multi-step reasoning required to navigate complex industrial databases.

Methods

The authors introduce the CodeReAct agent, which evolves the popular "ReAct" (Reasoning + Acting) paradigm. While standard agents might just call a pre-defined tool via a JSON command, CodeReAct acts as a "mini-programmer."

Key components of the framework include:

  • Thought-Action-Observation Loop: The agent first reasons about the task (Thought), generates and executes actual Python code (Action), and then analyzes the output (Observation).
  • Business Object (BO) Catalog: To help the LLM understand industrial entities, the authors standardized data (like work orders and failure codes) into structured Python classes.
  • Analytical Function Catalog: A library of domain-specific APIs for tasks like frequent pattern mining, temporal relationship identification (using Allen’s Interval Algebra), and Markov-based event prediction.
  • External Reflection: If a task fails or hits a deadlock, a secondary "Review Agent" evaluates the trajectory and refines the system prompt for a second attempt, often adjusting the model's "temperature" to encourage more creative problem-solving.
Figure 1: Unified View of the AI Agent-Driven Framework for Event Forecasting and Predictive Maintenance in Industrial Environments

Datasets

The framework was validated using a real-world case study involving 11 industrial chillers. The dataset integrated:

  • Work Orders: 4,392 records from IBM Maximo Manage.
  • Alert Events: 1,995 real-time IoT alerts from SkySpark.
  • Anomalies: 542 statistical deviations generated by machine learning models.
  • Failure Codes: A standardized hierarchy of 137 codes developed by the authors based on ISO 14224 standards to label previously unstructured maintenance logs.

Key Insights and Ideas

  • Code as the Universal Interface: Generating executable code is far more flexible than calling static APIs. It allows the agent to perform data transformation, "glue" different functions together, and handle edge cases on the fly.
  • Reasoning is Non-Negotiable: In an ablation study, the authors removed the "Thought" step (leaving only Act-Observe). This led to a massive drop in success rates (up to 50%), proving that LLMs need intermediate reasoning steps to ground their actions in industrial logic.
  • The "Deadlock" Challenge: Agents often get stuck in repetitive loops when code fails. The authors found that an "adaptive temperature" strategy—increasing the model's randomness after a failure—was essential for breaking these cycles.
  • Standardization is the Foundation: The LLM's success relied heavily on the Business Object definitions. By treating a "Work Order" as a structured object rather than a raw string, the agent could reliably perform complex operations like "bundling" related tasks to minimize downtime.
Figure 2: Asset Management for Chiller

Key Results

The researchers tested the framework against 36 complex maintenance utterances using two different models:

  • Granite-8b: Achieved a 72% success rate on initial attempts.
  • Mistral-Large: Achieved a 56% success rate initially.
  • Impact of Reflection: By adding "Outer Reflection" (the review-and-retry loop), success rates for Granite improved significantly, reaching 81% after five iterations.
  • Practical Utility: The system successfully identified seasonal clustering in corrective maintenance (see Figure 2d) and found opportunities to bundle work orders, which could significantly reduce operational costs.

Limitations and Future Work

While promising, CodeReAct isn't perfect. The authors noted that the agent still occasionally suffers from hallucinations or "tool misuse," especially when faced with highly ambiguous human instructions. It also struggles with complex bundling and prediction tasks if the instructions aren't sufficiently detailed.

Future work will focus on:

  1. Refining the BO Catalog: Making the data structures even more intuitive for LLMs.
  2. Self-Consistency Testing: Implementing checks to ensure the agent provides the same answer to the same query across different runs.
  3. Cross-Asset Generalization: Moving beyond chillers to other industrial equipment like pumps and generators.

Summary updated

Abstract

This paper presents an AI-driven framework, CodeReAct agent, designed to enhance industrial equipment maintenance through natural language (NL) interactions. The framework employs an advanced AI agentic approach to interpret human instructions, providing knowledge extraction, asset status summarization, and work order recommendations. It identifies patterns and trends and predicts work orders by standardizing industrial data into business objects (BOs) and utilizing analytical function API calls. The AI agent operates through a Thought-Action-Observation process similar to human problem-solving, automating complex analytical tasks typically performed by data scientists. Notably, the Action phase generates executable code, replacing manual coding efforts. A case study focusing on chiller maintenance demonstrates the framework's capability to analyze multiple years of work orders, and alerts and anomalies are presented. The results indicate that the AI agent framework effectively processes human utterances to analyze data, extract valuable insights, and support informed decision-making, reducing the need for data scientist involvement. By recontextualizing NLP agent frameworks in industrial engineering, the approach enables autonomous function generation and task execution across a range of domain-specific maintenance scenarios, with chillers used as a representative case study.
BibTeX
@misc{zhou2026llm,
  author = {Nianjun Zhou and Dhaval Patel},
  title = {{An LLM-Agentic Framework for Intelligent Work Order Management in Industrial Maintenance}},
  year = {2026},
  eprint = {2611.25070},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25070},
}
Figure