BLOG ·
9 MIN READ
AI Agent Development: From Workflow Mapping to Production
A research-led guide for enterprise teams evaluating production AI systems.

Drew Brooker
ML Engineer
- AI AGENT DEVELOPMENT PROCESS
- AGENTIC WORKFLOW DEVELOPMENT
- ENTERPRISE AI AGENTS
- AI AGENT ARCHITECTURE
AI agent development starts with a business process. The agent framework comes later.
The central engineering task is to translate a real workflow into a system that combines deterministic software, model judgment, retrieval, tools, state, approval rules, verification, and evaluation. The amount of agentic control should follow the structure of the work.
Production research supports that controlled approach. An ICML 2026 study based on 20 case studies and 306 practitioners found that reliability remains the leading challenge for deployed agents. Sixty-eight percent of surveyed systems execute no more than 10 steps before human intervention, 70% primarily use prompting with off-the-shelf models, and 74% still rely primarily on human evaluation.
This guide follows an agent project from workflow mapping through production.
The AI agent development lifecycle

FIGURE 1
A practical development sequence for a production agent.
| Stage | Main question | Output |
|---|---|---|
| Workflow mapping | What work actually happens today? | Process map |
| Baseline | How does the current process perform? | Cost, time, error and volume baseline |
| Architecture | Which parts need code, retrieval, models, tools or people? | System design |
| Eval set | What cases prove the system works? | Test dataset |
| Read-only pilot | Can the system reason correctly without changing systems? | Measured prototype |
| Controlled actions | Which writes can be exposed safely? | Tool and approval policy |
| Production | Does measured behavior remain acceptable? | Operating system + feedback loop |
A USEFUL WORKFLOW MAP SEPARATES FIVE TYPES OF WORK
1. Map the workflow before choosing the architecture
Start with one bounded process.
Interview the people who perform it and collect real examples. Record the inputs they receive, systems they open, information they search for, decisions they make, exceptions they encounter, actions they take, and conditions that cause escalation.
A useful workflow map separates five types of work.
| Work type | Example | Mechanism |
|---|---|---|
| Exact rule | Refunds above $5,000 need approval | Deterministic code |
| Information retrieval | Find current refund policy | RAG / database query |
| Interpretation | Decide which policy clause applies | Model |
| External action | Create refund request | Tool |
| Authority | Approve high-value refund | Human or policy gate |
This decomposition prevents a common design mistake: giving a model control over operations that ordinary software can perform exactly.
Capture the exceptions
Experienced employees spend much of their time handling cases that do not match the standard procedure.
Those cases are disproportionately useful during design.
Collect examples such as missing records, contradictory records, stale documents, ambiguous requests, tool outages, permission restrictions, duplicate actions, unusual customer histories, and cases where the correct outcome is to stop.
These examples later become part of the eval set.
BEGINNING WITH THE SIMPLEST ARCHITECTURE THAT SATISFIES THE TASK
2. Decide whether the workflow needs an agent
An agent is justified when the correct next step depends on information discovered during execution and the path cannot be reliably encoded in advance.

FIGURE 2
Model judgment and consequence should shape the architecture.
| Characteristic | Fixed workflow | LLM workflow | Agent |
|---|---|---|---|
| Steps known in advance | Strong | Strong | Weak reason |
| Unstructured inputs | Limited | Strong | Strong |
| Contextual judgment | Limited | Strong | Strong |
| Tool choice varies by case | Weak | Possible | Strong |
| Open-ended investigation | Weak | Limited | Strong |
| Clear completion state | Strong | Strong | Strong |
| High consequence | Strong controls | Strong controls | Constrained agent |
Anthropic's agent engineering guidance recommends beginning with the simplest architecture that satisfies the task. Its distinction is useful: workflows follow predefined code paths, while agents dynamically direct their own process and tool use.
WHERE AUTOMATION CREATES LITTLE ECONOMIC VALUE
3. Establish a baseline
A new system needs something to beat.
Measure the current process before replacing it.
Useful baseline measures include:
- completion rate;
- average handling time;
- human minutes per case;
- escalation rate;
- rework rate;
- error rate;
- cost per completed case;
- customer wait time;
- backlog;
- percentage of cases with complete evidence.
The exact set depends on the workflow.
The baseline also helps expose cases where automation creates little economic value. A process performed 20 times per month with five minutes of labor per case has a different automation case from one performed 50,000 times per month.
4. Define the success contract
"Build an agent that handles support" is not testable.
A success contract describes what completion means.
For a billing-dispute agent, the contract requires:
- 1correct customer identity;
- 2correct invoices retrieved;
- 3current policy retrieved;
- 4dispute classified correctly;
- 5permitted action selected;
- 6approval triggered above a threshold;
- 7tool called with valid arguments;
- 8resulting account state verified;
- 9customer response consistent with the resulting state.
A run that produces a polished message while refunding the wrong account fails.
THE AUTHORITATIVE SOURCE FOR EACH FACT
5. Design the architecture around the workflow
A production agent commonly contains these layers:
| Layer | Job |
|---|---|
| Model | Interpretation and reasoning |
| Instructions | Goal, boundaries and behavior |
| Context | Information supplied for the current decision |
| Retrieval | Current or proprietary knowledge |
| Tools | Defined reads and actions |
| State | Progress across the run |
| Policy | Permission and action constraints |
| Human review | Approval and escalation |
| Verification | Confirms environmental result |
| Trace | Records execution |
| Evals | Measures behavior |
The architecture should identify the authoritative source for each fact. Customer balance belongs in the billing system. Policy belongs in the policy repository. A model-generated summary is useful context, but it should not silently replace the system of record.
7. Prototype in read-only mode
A read-only prototype lets the team test reasoning while reducing operational risk.
The agent can retrieve records, search documents, classify cases, propose actions, and explain what it would do.
It cannot yet modify the CRM, issue a payment, delete a record, send an external message, or change an account.
This phase answers several questions cheaply:
- Does retrieval return the right evidence?
- Does the model interpret it correctly?
- Does the agent choose the right tool?
- Does it know when evidence is insufficient?
- Does it route approval cases correctly?
- Does it terminate at the right point?
NARROW TOOLS ARE EASIER TO UNDERSTAND AND TEST
8. Design tools for models
Tools are the model's interface to software.
Narrow tools are easier to understand and test than broad interfaces.
run_database_query(sql)
gives the model a large action surface.
get_customer_invoices(customer_id, start_date, end_date)
expresses a bounded operation.
Every write tool should define its accepted arguments, permission checks, possible errors, idempotency behavior, success response, and verification method.
THE GOAL IS DIAGNOSTIC VISIBILITY
10. Instrument the full execution path
A production trace should let an engineer reconstruct what happened.
Record the relevant input, model and prompt version, retrieved evidence, tool selection, tool arguments, tool result, state transitions, approvals, final output, resulting environment state, latency, and cost.
Trace data should respect privacy and data-handling rules. The goal is diagnostic visibility with selective logging.
A LAYERED EVALUATION CATCHES THIS
11. Evaluate the whole trajectory
A final answer can be correct after a poor execution path.
The system can retrieve an irrelevant policy, choose the wrong tool, recover by chance, and still produce the expected message.
A layered evaluation catches this.
| Layer | Example measure |
|---|---|
| Retrieval | Recall@k / relevance |
| Grounding | Evidence consistency |
| Tool selection | Tool accuracy |
| Arguments | Structured validity |
| Policy | Violation rate |
| Escalation | Precision / recall |
| Trajectory | Trace grader |
| Environment | State verification |
| Outcome | Task completion |
| Runtime | Cost and execution time |
FIX THE LAYER THAT CAUSED THE FAILURE
12. Expect failures to cluster by layer

FIGURE 3
Production failures should become regression tests.
| Failure | Layer |
|---|---|
| Wrong policy retrieved | Retrieval |
| Correct API, wrong account ID | Tool arguments |
| Repeated action loop | Orchestration |
| Missing earlier evidence | State/context |
| Unauthorized document returned | Permissions |
| Correct action without required approval | Policy |
| Tool reports success but state unchanged | Verification |
| Good trace, wrong business result | Decision logic |
Fix the layer that caused the failure.
CONTROLLABILITY OVER LONG AUTONOMOUS TRAJECTORIES
What current production systems reveal

FIGURE 4
Selected findings from Pan et al., Characterizing Agents in Production, ICML 2026.
The 2026 production study shows deployed systems favoring controllability over long autonomous trajectories. Treat it as context for architecture decisions.
Production readiness checklist
Workflow
- Is the owned process bounded?
- Is success measurable?
- Are common exceptions documented?
- Are authoritative systems identified?
Architecture
- Does each model call have a reason to exist?
- Are deterministic operations kept deterministic?
- Are retrieval and tools independently testable?
- Are stopping conditions explicit?
Control
- Are permissions enforced at retrieval and tool layers?
- Are consequential actions gated?
- Are duplicate side effects prevented?
- Can failed actions recover safely?
Evaluation
- Does the eval set represent real work?
- Are known failures included?
- Are traces evaluated?
- Are production failures converted into tests?
Operations
- Can a run be reconstructed?
- Are prompts, tools and models versioned?
- Are releases compared against the current baseline?
- Is rollback possible?
FAQ
The schedule depends on workflow breadth, number of systems, data condition, action risk, evaluation burden, security requirements, and the quality of existing APIs. A bounded read-only workflow can reach useful testing much sooner than an agent with authority across several enterprise systems.
Map one real workflow and collect representative historical cases. Architecture follows from the process.
Only when separate roles, parallel work, independent context, or permission boundaries create a clear reason to split the work. A single agent creates fewer coordination and testing surfaces.
Many production agents do not. The IBM-led 2026 study found that 70% of surveyed practitioners primarily used prompting with off-the-shelf models.
Production readiness comes from measured task performance, bounded authority, reliable tools, tested retrieval, permission controls, explicit approval rules, traceability, regression tests, recovery behavior, and operating economics that fit the workflow.
Sources
- PAN ET AL.
- Characterizing Agents in Production, ICML 2026, IBM Research.
- LANGCHAIN
- State of Agent Engineering, June 2026.
- ANTHROPIC
- Building Effective Agents.
- ANTHROPIC
- Effective Context Engineering for AI Agents.
- ANTHROPIC
- Demystifying Evals for AI Agents, January 2026.
- OPENAI
- Evaluate Agent Workflows and Optimizing LLM Accuracy.
- NIST
- Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, NIST AI 600-1.
- GOOGLE CLOUD
- Fine-tuning LLMs and AI Models.
Editorial note
Charts based on survey findings identify their source in the caption. Mathematical examples are labeled as illustrations. Architecture diagrams and decision frameworks are original explanatory assets created for this post.