Deploying and Monitoring Agentic AI Workflows in Production
An agentic workflow is ready for production only when the organisation can observe its decisions, limit its authority and recover from failure while real cases continue to move. Deployment should therefore expand authority in stages, using evidence from each stage to decide whether the next one is justified.
Define the operating contract before deployment
A successful demonstration proves that the workflow can complete selected examples under controlled conditions. It does not establish which live cases the workflow may accept, which records it may read, which actions it may take or who must intervene when evidence is missing. Those decisions form the operating contract for the first production release.
The contract should name the eligible case types, permitted tools, transaction limits, completion conditions, escalation triggers and accountable owner. It should also state what the workflow must never do. Without these boundaries, managers cannot distinguish a software defect from an agent acting beyond the authority that the organisation intended to grant.
Test production conditions before granting authority
Historical replay shows how the proposed workflow would handle known cases, including failures and exceptions that a demonstration may omit. However, replay cannot reproduce current queues, changing records, unavailable systems or live handovers. Shadow operation supplies the next test by allowing the agent to process current cases while employees continue to make the actual decisions.
The two stages answer different questions. Replay tests coverage against a fixed record of past cases. Shadow operation tests whether the workflow receives the right information at the right time and whether its proposed actions remain suitable under current operating conditions. Management should grant production authority only after both stages expose and resolve the failure modes relevant to the first release.
Expand authority through a bounded release
The first live release should limit the agent's users, case types, tools, transaction values or operating hours. Consequential actions should remain behind human approval until evidence supports a narrower exception. This boundary limits potential harm and creates a defined population against which managers can judge performance.
Expansion then becomes an evidence decision rather than a calendar milestone. If the workflow performs reliably for ordinary cases but fails when customer identity, policy or source records conflict, the next release can retain the proven route and exclude the unresolved cases. A staged release preserves useful capability without treating partial success as proof that every case is safe.
Trace the complete business route
Infrastructure logs can show that a service responded, but they cannot explain why an agent selected a tool, used a particular record or stopped before completing the case. Production traces should connect the case identifier, model and prompt version, retrieved sources, agent handovers, tool arguments, tool results, approvals, errors and final state. OpenTelemetry conventions now provide a common structure for many of these events across platforms.
Trace collection also creates a privacy and security obligation. Prompts, retrieved content and tool results may contain personal data, commercial information or credentials. The organisation should therefore decide which fields to record, redact sensitive content before storage, restrict access and apply an appropriate retention period. A trace that exposes the information it was meant to protect is not an acceptable control.
Monitor outcomes, not activity alone
Production teams need four distinct views. Service measures show availability, latency and technical errors. Decision measures show policy adherence, unsupported actions and human overrides. Business measures show completed cases, elapsed time, rework and the outcome that justified the workflow. Economic measures show model use, review effort, incident cost and cost per completed case.
These measures must be joined at case level and examined by route, user group and exception type. An aggregate completion rate can improve while a small high-value segment experiences more rework or incorrect action. Segment-level evidence tells management whether to expand the workflow, change a boundary or withdraw authority from a particular route.
Detect changes outside the model
An unchanged model can produce worse results when the operating environment changes. A revised policy may make an old instruction invalid. A new system field may break a tool call. Changes in customer mix, missing data or knowledge coverage may send more cases into routes that the workflow handles poorly.
Monitoring should therefore compare current inputs, retrieval coverage, tool errors, exception rates and outcomes with the conditions established during release. When a material change appears, the owner must determine whether to update the workflow, narrow its boundary or suspend it. Model monitoring alone cannot detect every change that affects an end-to-end business outcome.
Treat every dependency change as a release
An agentic workflow depends on more than a model. Prompts, tool schemas, permissions, policies, knowledge sources, routing rules and integration code can each change its behaviour. The release record should identify the complete configuration, the tests affected by the change and the authority boundary that the evidence supports.
A canary release can expose a new version to a small share of eligible cases before wider deployment. However, rollback must restore more than code. The operating design must preserve case state, identify actions already taken, prevent duplicate execution and provide a manual route for unfinished cases. Otherwise, a technical rollback can leave the business process in an uncertain state.
Apply the controls to hotel guest requests
Consider a hotel agent that reads reservations and guest messages, then creates departmental tasks. Historical replay may show whether it routes earlier housekeeping and maintenance requests correctly. Shadow operation can then compare its proposed route with the route selected by hotel staff while the agent remains unable to create a task.
The first live release might allow the agent to create a housekeeping task for an occupied room after it verifies the booking and request type. Room moves, compensation, payment changes and disclosure of stay information remain blocked. The trace connects the guest request, records retrieved, rule applied, task created, acknowledgement and verified completion without retaining unnecessary message content.
Management should monitor completed requests, repeat contact, duplicate tasks, staff correction, response time and cost per resolved request. If response time falls but repeat contact rises, the agent may be closing tasks before the hotel has resolved the guest's request. That finding should trigger rollback or a narrower release even when the technical service remains available.
Turn production evidence into release decisions
Marketways can define the operating contract, design replay and shadow tests, specify production traces, set release indicators and establish rollback conditions. We can also connect operational telemetry with business outcomes so that managers can distinguish technical activity from reliable completion.
The resulting production plan states which cases the workflow may handle now, which evidence would justify wider authority and which events require intervention. This discipline allows the organisation to obtain value from proven routes while keeping unresolved risks outside the agent's authority.
Continue through the agentic workflow series
References
- NIST: Artificial Intelligence Risk Management Framework, Generative Artificial Intelligence Profile
- Microsoft Foundry: Set up tracing for AI agents
- Microsoft Foundry: Tracing and data handling
- Amazon CloudWatch: Monitor AI agents
- AWS Prescriptive Guidance: Production monitoring for generative AI applications
