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

AI agent development lifecycle

FIGURE 1

A practical development sequence for a production agent.

StageMain questionOutput
Workflow mappingWhat work actually happens today?Process map
BaselineHow does the current process perform?Cost, time, error and volume baseline
ArchitectureWhich parts need code, retrieval, models, tools or people?System design
Eval setWhat cases prove the system works?Test dataset
Read-only pilotCan the system reason correctly without changing systems?Measured prototype
Controlled actionsWhich writes can be exposed safely?Tool and approval policy
ProductionDoes 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 typeExampleMechanism
Exact ruleRefunds above $5,000 need approvalDeterministic code
Information retrievalFind current refund policyRAG / database query
InterpretationDecide which policy clause appliesModel
External actionCreate refund requestTool
AuthorityApprove high-value refundHuman 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.

Workflow suitability matrix

FIGURE 2

Model judgment and consequence should shape the architecture.

CharacteristicFixed workflowLLM workflowAgent
Steps known in advanceStrongStrongWeak reason
Unstructured inputsLimitedStrongStrong
Contextual judgmentLimitedStrongStrong
Tool choice varies by caseWeakPossibleStrong
Open-ended investigationWeakLimitedStrong
Clear completion stateStrongStrongStrong
High consequenceStrong controlsStrong controlsConstrained 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:

  1. 1correct customer identity;
  2. 2correct invoices retrieved;
  3. 3current policy retrieved;
  4. 4dispute classified correctly;
  5. 5permitted action selected;
  6. 6approval triggered above a threshold;
  7. 7tool called with valid arguments;
  8. 8resulting account state verified;
  9. 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:

LayerJob
ModelInterpretation and reasoning
InstructionsGoal, boundaries and behavior
ContextInformation supplied for the current decision
RetrievalCurrent or proprietary knowledge
ToolsDefined reads and actions
StateProgress across the run
PolicyPermission and action constraints
Human reviewApproval and escalation
VerificationConfirms environmental result
TraceRecords execution
EvalsMeasures 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.

TRACES AS A FIRST-CLASS EVALUATION SURFACE

6. Build the eval set before granting broad authority

Agent evals should represent the work the system will face.

Start with historical cases and create categories.

CategoryWhy include it
Routine casesEstablish baseline competence
Difficult common casesTest recurring judgment
Rare edge casesTest boundaries
Missing informationTest uncertainty handling
Conflicting evidenceTest evidence selection
Permission-sensitive casesTest access control
Tool failuresTest recovery
Approval casesTest escalation
Known historical mistakesCreate regression coverage
Malformed inputsTest resilience

Anthropic's 2026 eval guidance notes that agents are harder to test because they operate across multiple turns, use tools, modify state, and react to intermediate results. OpenAI's current agent-evaluation guidance likewise treats traces as a first-class evaluation surface.

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.

AUTHORITY SHOULD FOLLOW MEASURED BEHAVIOR AND CONSEQUENCE

9. Add action authority gradually

A useful sequence is:

StageAuthority
1Read information
2Recommend action
3Draft action for approval
4Execute reversible low-consequence actions
5Execute bounded actions under policy
6Broader autonomy after measured evidence

Authority should follow measured behavior and consequence.

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.

LayerExample measure
RetrievalRecall@k / relevance
GroundingEvidence consistency
Tool selectionTool accuracy
ArgumentsStructured validity
PolicyViolation rate
EscalationPrecision / recall
TrajectoryTrace grader
EnvironmentState verification
OutcomeTask completion
RuntimeCost and execution time

FIX THE LAYER THAT CAUSED THE FAILURE

12. Expect failures to cluster by layer

Failure-driven development

FIGURE 3

Production failures should become regression tests.

FailureLayer
Wrong policy retrievedRetrieval
Correct API, wrong account IDTool arguments
Repeated action loopOrchestration
Missing earlier evidenceState/context
Unauthorized document returnedPermissions
Correct action without required approvalPolicy
Tool reports success but state unchangedVerification
Good trace, wrong business resultDecision logic

Fix the layer that caused the failure.

CONTROLLABILITY OVER LONG AUTONOMOUS TRAJECTORIES

What current production systems reveal

Production agent findings

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.

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.

LET'S TALK

Go fromproductionin weeks,not quarters.

Book a 15-minute working session. Bring one process that hurts. We'll leave with a plan for it, and an honest answer on whether we're the right neolab.