Supply Chain, Manufacturing, Energy and Telecom
In physical operations, a wrong action can spoil stock, stop a line or hurt someone.
Industrial agents earn their place by watching signals, assembling context, proposing plans and drafting orders or work tickets. Keep quantities and limits in tested calculations, require approval for unusual or irreversible actions, and keep language models away from direct control of equipment. Safety systems must work with the agent switched off.
What you will learn: uses across procurement, logistics, manufacturing, energy and telecom, how a reorder step combines calculation and review, how operational technology differs from office IT and how to test safely.
Prerequisites: Event-Driven and Background Agents and Human Approval, Thresholds and Secure Logging.
The example runs in November 2026 with Python 3.13 and only the standard library. Items, demand history and limits are invented, and the stock formula is a teaching simplification. This page is general information and does not replace engineering or safety review.
Supply chain and procurement
| Task | Agent contribution | Check |
|---|---|---|
| Demand and supply exceptions | Collect causes and affected orders | Planner confirms |
| Replenishment | Draft purchase orders | Limits, supplier and price rules |
| Supplier research | Gather documents and certificates | Verify with issuer; dates |
| Shipment tracking | Explain delays and propose options | Cost and promise approval |
| Contract and quote comparison | Normalize terms into a table | Buyer reads originals |
| Customs and trade documents | Prepare and check completeness | Qualified specialist |
Manufacturing and maintenance
- Search manuals, work history and drawings for a technician, showing revision numbers.
- Summarize alarms with likely related events, labeled as hypotheses.
- Draft work orders and parts lists for planner review.
- Compare quality records with specifications using code for the limits.
- Write shift handover notes from logged events.
Predicting equipment failure is usually a job for statistical or machine learning models built on sensor data. An agent can explain the prediction's context and arrange work; it does not improve the underlying forecast by describing it fluently.
Energy and utilities
Useful starting points include outage communication, field crew documentation, regulatory report preparation, asset record search and forecast commentary. Grid and plant control have strict reliability, security and safety requirements, and in many places are subject to mandatory standards.
Telecommunications
Network teams use agents to correlate alarms, find recent changes, draft diagnostics and propose fixes. The industry body TM Forum describes autonomous network levels from 0, fully manual, to 5, fully autonomous. A scale like this helps say which function runs at which level, since one network can sit at different levels for different tasks.
Divide the work
| Method | Best for |
|---|---|
| Optimization and planning solvers | Routing, scheduling, allocation with constraints |
| Forecasting models | Demand, lead time, failure risk |
| Rules | Policy limits, approved suppliers, safety interlocks |
| Language model agent | Reading messages and documents, choosing which tool to call, explaining results |
| People | Trade-offs, relationships, unusual situations |
Let the agent call the solver or forecast as a tool and report its assumptions. Do not ask a model to invent a schedule that a solver could compute and check.
A reorder step with review rules
The program calculates a reorder point as expected demand over the lead time plus safety stock based on demand variability. It drafts routine orders and sends doubtful ones to a planner.
"""Propose replenishment orders within limits; a planner approves exceptions."""
from math import ceil, sqrt
from statistics import mean, pstdev
Z = 1.65 # service factor chosen by the business
def reorder_point(daily_demand, lead_days):
average = mean(daily_demand)
safety = Z * pstdev(daily_demand) * sqrt(lead_days)
return average * lead_days + safety, safety
def propose(item):
point, safety = reorder_point(item["demand"], item["lead_days"])
position = item["on_hand"] + item["on_order"]
if position > point:
return point, 0, "no order"
target = point + mean(item["demand"]) * item["cover_days"]
quantity = ceil((target - position) / item["pack"]) * item["pack"]
flags = []
if quantity > item["usual_order"] * 2:
flags.append("more than twice the usual order")
if item["data_age_hours"] > 24:
flags.append("stock data is stale")
if max(item["demand"]) > 3 * mean(item["demand"]):
flags.append("demand spike in history")
return point, quantity, "planner review: " + ", ".join(flags) if flags else "auto-draft"
items = {
"valve": dict(demand=[10, 12, 9, 11, 10, 13, 12], lead_days=5, on_hand=40,
on_order=0, cover_days=7, pack=25, usual_order=100, data_age_hours=2),
"seal": dict(demand=[20, 22, 19, 21, 95, 20, 23], lead_days=4, on_hand=60,
on_order=0, cover_days=7, pack=50, usual_order=150, data_age_hours=3),
"motor": dict(demand=[1, 0, 2, 1, 1, 0, 2], lead_days=10, on_hand=10,
on_order=0, cover_days=14, pack=1, usual_order=20, data_age_hours=30),
}
for name, item in items.items():
point, quantity, action = propose(item)
print(f"{name:6} reorder point {point:6.1f} order {quantity:4} {action}")
Output:
valve reorder point 59.8 order 100 auto-draft
seal reorder point 211.5 order 400 planner review: more than twice the usual order, demand spike in history
motor reorder point 13.9 order 18 planner review: stock data is stale
The valve order is routine and is drafted, not sent. The seal order is much larger than usual and its history contains a spike, which might be a real change or a one-off project, so a person looks. The motor's stock record is old, so the calculation cannot be trusted however precise it looks. The formula assumes fairly stable demand and a fixed lead time. Intermittent spare-part demand, variable lead times, seasonality, expiry and capacity all need other methods.
Data that operations depend on
- Show the timestamp of every figure and refuse decisions on stale data.
- Keep units explicit: cases, pallets, kilograms, local time.
- Resolve item, site and supplier identifiers through master data, not name guessing.
- Detect sensor faults and gaps rather than treating zero as measured.
- Record whether a value is measured, forecast, entered or inferred.
Messages from outside
Supplier emails, portals and shipping documents are untrusted input. They may be mistaken, forged or contain instructions aimed at an agent. Verify changes to bank details, delivery addresses and contacts separately. Limit what an agent may commit to in negotiation, and require approval for any acceptance (Prompt Injection Attacks and Defenses). Agent-to-agent exchanges between companies need the same identity, authority and record keeping as human ones (A2A Security and Interoperability).
Operational technology is different
Operational technology (OT) monitors and controls physical processes. Compared with office IT, availability and safety dominate, equipment may be old, changes need engineering approval and a restart can be hazardous.
In December 2025 cybersecurity agencies including the US CISA and Australia's ACSC published principles for securely integrating AI into operational technology. Their four themes cover understanding AI, considering whether to use it in the OT setting, establishing governance and assurance, and embedding safety and security with oversight.
| Zone | Agent access |
|---|---|
| Business systems | Read and propose changes through supported interfaces |
| Replicated operational data | Read, ideally through one-way transfer |
| Supervisory systems | None by default; any exception engineered and reviewed |
| Controllers and equipment | No direct commands from a language model |
| Safety instrumented systems | No access |
Interlocks, limits and emergency stops must not depend on a model behaving well. Follow your sector's functional safety and control system security standards, such as the ISA/IEC 62443 series for industrial automation security.
Grading actions
| Action | Typical handling |
|---|---|
| Open a ticket, notify a person | Automatic with rate limit |
| Draft order or schedule change | Review by exception |
| Place order within policy | Automatic only after evidence, with caps |
| Reroute shipment or change production plan | Planner approval |
| Change equipment or network configuration | Engineering change control |
| Override a safety function | Never |
Cascades and many agents
Small automatic reactions can amplify one another. If each site orders extra after a delay, suppliers see a surge; if several network agents react to the same alarm, they may undo each other. Add caps per hour and per value, hold-down periods, a single owner for each resource, global view checks and a way to pause all related automation at once (Parallelism, Deadlocks and Conflict Resolution).
When connectivity fails
Plants, ships, depots and field sites lose connections. Decide what works locally, what queues and what stops. A queued order must be revalidated before release because the world has moved on. Smaller local models can help with search or notes, with the same permissions and records (Open-Source Stack and Local LLM Agents).
Testing without risking the plant
- Replay historical days, including disruptions, and compare proposals with outcomes.
- Use a simulator or digital model for actions, and state where it differs from reality.
- Inject faults: stale data, duplicate events, missing sensors, wrong units.
- Run in advisory mode alongside planners.
- Automate one low-consequence action with strict caps.
- Drill the manual fallback and the stop control.
Never test attacks or unusual commands on live control equipment.
Measures
| Area | Outcome | Guardrail |
|---|---|---|
| Inventory | Service level | Excess and expired stock |
| Procurement | Cycle time | Off-policy purchases |
| Maintenance | Planned work share | Repeat failures, safety events |
| Network | Time to restore | Incidents caused by changes |
| People | Preparation time saved | Override rate and alert fatigue |
Keeping operators capable
Operators must still understand the process when automation stops. Show why a proposal was made, which data it used and what happens if rejected. Avoid floods of low-value alerts. Give frontline workers a simple way to say a suggestion is wrong, and act on it. Check rules on workforce monitoring before using operational data to assess individuals.
A replenishment agent sees a stock record of zero after a scanner outage and drafts large urgent orders for several sites. A freshness check and a rule that treats sudden mass zeros as suspected data failure would stop the batch and call a person. This scenario is invented.
Handling a disruption
A late vessel or a failed supplier is where planners spend their day, and where an agent can help most.
| Step | Agent work | Evidence shown |
|---|---|---|
| Detect | Match a delay notice to shipments | Message, time, identifiers |
| Assess | List affected orders, sites and dates | Stock and demand as of a stated time |
| Options | Call planning tools for reallocation, other suppliers or routes | Cost, date and constraints for each |
| Decide | Present trade-offs | What is assumed and unconfirmed |
| Act | Draft messages and changes | Approval and system confirmation |
| Follow up | Track whether promises hold | Open items with owners |
Do not tell a customer a new date until the supplying system or responsible person has confirmed it.
Quality and traceability
In regulated or safety-relevant production, records show what was made, from which materials, on which equipment and with which results. An agent can search and summarize these records during an investigation, but it must not alter them, fill gaps by inference or release product. Keep limits and specifications in controlled systems with revisions, and have qualified staff make disposition decisions. A summary of a deviation should link every statement to a record and list what is missing.
Helping technicians in the field
Field staff work with gloves, noise and weak connections. Give short steps, show the manual page and revision, confirm the equipment identifier by scan rather than guess and put hazard warnings from the approved procedure before the step they apply to. Never let the assistant shorten or reorder safety isolation procedures. If it cannot find the exact model, it should say so rather than offer instructions for a similar one.
Judging the investment
Value in operations often appears as avoided downtime or waste, which is hard to attribute. Compare similar sites or periods, separate the effect of better data from the effect of the agent, count planner and engineering time for review and include integration and upkeep. Agree beforehand which result would justify expansion and which would end the trial (Business Case, Build vs Buy and Vendor Evaluation).
Recording decisions
Store the signals seen with their times, the calculation or solver inputs, the proposal, who approved or changed it, the system confirmation and the eventual outcome. Planners' reasons for rejecting suggestions are especially valuable: they reveal constraints that never reached the data, such as a customer who accepts partial delivery or a dock that closes early.
Sustainability and compliance reporting
Supplier and site data for environmental, safety or trade reporting arrives in many formats. An agent can collect it, normalize units and flag gaps. Keep emission factors and calculation rules in versioned code, separate measured values from estimates, record the source of each figure and have the accountable owner approve submissions. Do not allow gaps to be filled with plausible numbers; report them as gaps.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Model computes plans by itself | Infeasible or unsafe results | Call solvers and check constraints |
| Acting on stale or faulty data | Wrong orders or actions | Freshness and plausibility gates |
| Connecting agents to control networks for convenience | New attack path to equipment | Segregate and use one-way data |
| No caps across agents | Amplified disruption | Global limits and pause |
| Trusting supplier messages | Fraud or manipulation | Independent verification |
| Forgetting offline operation | Work stops with the network | Local and manual routes |
Checklist
- Each action has a grade, limit and approver.
- Calculations and constraints run in tested software.
- Data freshness and plausibility are enforced.
- Control and safety systems are segregated from agents.
- Engineering and safety teams approve OT-related designs.
- Combined automated activity is capped and stoppable.
- Fallback and offline procedures are rehearsed.
- Outcomes are measured with safety and waste guardrails.
Frequently asked questions
Can an agent control a machine?
Treat direct control as out of bounds for a language model unless a qualified engineering and safety process has designed and proved a tightly bounded function.
Does an agent replace forecasting tools?
No. It can feed and explain them. Forecast quality still depends on data and methods that you should evaluate directly.
What is a sensible first project?
Exception summaries for planners or manual search for technicians, both read-only, with sources shown and easy feedback.
How should negotiations with suppliers be limited?
Set allowed topics, price ranges and terms in code, require approval to accept anything and keep the full exchange.
References
- ACSC and partners: Principles for the secure integration of AI in OT
- TM Forum: autonomous network levels
- ISA: IEC 62443 series of standards
Where to go next
Action Guardrails and Policy Engines
Enforce limits on actions.
Planning and Search Algorithms
Understand planning methods.
Retail, Media, Travel, Property, Public and Education
Explore consumer and public sectors.