AI for leadersPublished Updated 9 min readRead in Vietnamese

Workflow or agent? Climb one rung at a time

Across 250 daily messages at an online homeware shop, 85 per cent clear in one or two model calls while barely 0.5 per cent warrant an autonomous AI agent. Anthropic's four rungs and ReAct's failure audit show where to cap complexity before costs climb.

View .mdLinkedIn
Ảnh bìa bài workflow hay agent trên Khoi Greenwich

When software vendors pitch an "all-in-one autonomous AI agent" for customer operations, the sharpest budget question is what share of daily tickets genuinely requires an open-ended loop. Across 250 daily enquiries at an illustrative three-person online homeware shop, 85 per cent clear cleanly in one or two preset model calls and barely 0.5 per cent (roughly six lost-parcel cases a week) require multi-system investigation. Jumping straight to an autonomous agent inflates token bills, slows replies and compounds early errors (Anthropic, 2024); see also Workflows versus agents, Five LLM workflow patterns and The reason–act–observe loop.

Four AI automation rungs: when to use a workflow and when you need an agent

Choose an LLM workflow whenever engineering code can define the sequence of branches and tool calls upfront; reserve an AI agent for open-ended problems where the model must inspect live feedback before picking its next step (Anthropic, 2024).

Anthropic advises engineering teams to default to the simplest setup that clears their quality bar, noting that a single model call paired with clean retrieval and a few examples handles many office tasks (Anthropic, 2024). Handing control to an autonomous loop carries three immediate costs: slower response times across sequential reasoning turns, growing token spend as step history accumulates, and early missteps snowballing through later actions.

Workflows versus agents

When a firm brings AI into a business process, should the product lead build a predefined workflow or let an agent decide its own steps?

CriterionWorkflowAgent
Who decides the pathpredefined codethe model directs itself
Predictabilityhighlower
Cost and latencylowerhigher; errors can compound
Suitsclear, repeatable tasksopen-ended tasks where the number of steps is hard to know in advance
Adviceprefer the simplest solutionadd complexity only when the benefit is demonstrated
Figure 1 · Workflows versus agents according to Anthropic's architectural classification (2024).Framework page

Grouped by build cost and day-to-day operational risk, Anthropic's five patterns stack into four clear rungs (Anthropic, 2024):

Automation rung Control mechanism Best-fit tasks (Anthropic, 2024) Cost and latency trade-offs
Rung 1: Single call + retrieval One model call supplied with retrieved docs and few-shot examples Standard Q&A, spec lookups and structured field extraction Lowest latency, smallest token bill, predictable behaviour
Rung 2: Prompt chaining (workflow) Fixed sequence where checked output from call one feeds call two Jobs splitting cleanly into known sequential stages Slight wait-time increase in exchange for tighter step accuracy
Rung 2: Routing (workflow) Classifier reads intent and directs each ticket to a tailored branch Mixed support inboxes covering distinct request categories Depends heavily on entry classification accuracy
Rung 2: Parallelisation (workflow) Independent calls run concurrently, or multiple passes vote Fast batch processing or separating reply drafting from policy checks Multiplies token consumption across concurrent calls
Rung 2: Evaluator-optimiser (workflow) Drafter call paired with a rubric-scoring critic inside a capped loop Tasks with clear grading rules where revision measurably lifts output Multiplies latency per pass; requires a strict iteration cap
Rung 3: Orchestrator-workers Central model breaks unfamiliar tasks into custom worker calls Complex requests whose subtasks vary with every input Heavy coordination token overhead across calls
Rung 4: Autonomous agent Model plans, fires tools, reads live environment output and repeats Open-ended investigations with unknown step counts Compounding errors, variable wait times, highest unit cost

One parallelisation pattern at Rung 2 delivers quick risk reduction in customer chat: let one call draft the helpful answer while a separate parallel call screens solely for policy breaches or prompt manipulation (Anthropic, 2024). Splitting generation from guardrails avoids the failure mode behind the US car dealer widget that agreed to sell a Chevrolet for USD 1 (dealer chatbot that "agreed" to sell a car for $1).

Five diagnostic questions and a 50-ticket test before building

Before approving developer hours on a new automation flow, test the process against five progressive checks from Anthropic alongside a 50-ticket baseline benchmark (Anthropic, 2024):

  1. Does one model call with retrieved context and examples hit your target accuracy? Stop at Rung 1 whenever it passes.
  2. Does the work follow a fixed order of steps known ahead of time? Link narrow prompts in a Rung 2 chain (read complaint, check courier API, draft reply).
  3. Do incoming messages split into distinct operational buckets? Place a Rung 2 router at the front door to separate stock queries, shipping checks and returns.
  4. Can written compliance or tone rules grade drafts objectively? Add a capped Rung 2 evaluator-optimiser pass.
  5. Are required steps genuinely unknowable upfront, and can the business tolerate live autonomous tool calls? Consider Rung 3 or Rung 4 only when both answers are yes.

Even inside customer support flows wired to order databases, OpenAI's (2025) deployment guide sets a firm boundary: actions carrying financial or legal exposure, such as refunds above a threshold or contract edits, must pause for human sign-off (OpenAI, 2025).

In my own implementation reviews, no team moves up a rung without running 50 real historical tickets with agreed answers against a preset pass mark such as 90 per cent (Anthropic, 2024). If Rung 1 or Rung 2 clears 90 per cent, lock it in. When accuracy falls short, inspect the misses first: missing product policies belong in Rung 1 retrieval; dropped instructions from an overloaded prompt call for a Rung 2 chain; only cases whose next lookup depends on unpredictable mid-flight results justify an agent build (covered in the five ingredients of an AI agent).

ROI maths on 250 daily shop enquiries: why 85 per cent stop at Rungs 1 and 2

Applying those five checks to an illustrative online homeware shop receiving 250 messages a day across three support staff concentrates almost all volume on the lower rungs:

Inbound ticket group Share Chosen rung Est. calls Operating setup and risk controls
Order status checks 45% Rung 2 (Routing) 2 Code queries courier API; model extracts order ID and writes a clear update
Product specs and care 25% Rung 1 (Single call) 1 Retrieval injects dimensions, wattage and warranty terms straight into context
Returns and damaged goods 15% Rung 2 (Routing + Human gate) 2 Classifies claim reason; refunds over 500,000 VND pause for staff approval (OpenAI, 2025)
1–2 star review replies 5% Rung 2 (Prompt chain) 3 Call 1 lists issues, call 2 checks warranty rules, call 3 drafts a reply for manager sign-off
Lost-parcel tracing 0.5% Rung 4 (AI agent) ~8 Unfixed path across courier scan logs, warehouse dispatch records and packing timestamps
Unusual disputes 9.5% Human desk 0 Routed directly to senior support staff

Eighty-five per cent of daily enquiries clear in one or two model calls at low token cost and near-instant speed, while another 5 per cent run through a three-step chain checked by a manager.

Running the wage maths exposes why over-building for the 0.5 per cent slice destroys ROI. Across a five-day week, 0.5 per cent of 250 daily messages equals roughly six lost parcels a week; at 15 minutes of manual checking per case, staff spend 1.5 hours weekly. Paying engineers to build, integrate and monitor an autonomous Rung 4 agent to save 1.5 hours of weekly admin loses money immediately. In my view, dedicated agent engineering only nears break-even if order volume grows tenfold or messy courier disputes reach 5 per cent of traffic (over 60 cases and 15 staff hours every week).

Where autonomous agent loops break according to ReAct failure data

Caution around Rung 4 rests on empirical failure audits from Yao et al.'s (2023) ICLR paper introducing ReAct: wiring in Wikipedia search cut fabricated facts from 56 per cent in plain chain-of-thought (CoT) down to 0 per cent, yet reasoning slips drove 47 per cent of ReAct errors and weak search results caused another 23 per cent (Yao et al., 2023).

Prompting PaLM-540B to interleave reasoning traces (Thought), Wikipedia tool actions (Act: search, lookup, finish) and returned text (Observation) showed mixed raw scores across benchmarks (Yao et al., 2023). On multi-hop question answering (HotpotQA), ReAct scored 27.4 exact match behind plain CoT at 29.4, whereas on fact verification (Fever) ReAct led at 60.9 per cent versus 56.3 per cent (Yao et al., 2023).

Hand-coding 50 correct and 50 failed HotpotQA trajectories revealed a failure mode absent from fixed workflows: when an initial search returned thin or ambiguous text, the agent frequently fell into a repetition loop, firing the exact same thought and search query until steps ran out (Yao et al., 2023).

To cut off runaway loops, Yao and colleagues enforced hard ceilings of 7 steps on HotpotQA and 5 steps on Fever, observing that barely 0.84 per cent of winning HotpotQA runs used step 7 and 1.33 per cent of Fever wins used step 5 (Yao et al., 2023). Crucially, the highest HotpotQA score (35.1 exact match) came from a hybrid setup that ran ReAct within its step cap and automatically fell back to self-consistent CoT voting whenever the loop stalled (Yao et al., 2023). Every production agent needs that exact pair of brakes: a hard step limit and a clean fallback path to deterministic code or human staff.

Going deeper: ReAct origins and limits in live production systems

Reading both foundational sources alongside their technical assumptions helps leaders avoid stretching benchmark claims past live SME infrastructure.

Anthropic published its engineering guide on 19 December 2024, written by Erik Schluntz and Barry Zhang from commercial client deployments (Anthropic, 2024). Its core distinction between code-governed workflows and model-governed loops assumes mature tool-calling models such as Claude 3.5 Sonnet; firms hosting smaller open-weight models locally face higher JSON and tool-syntax error rates that break multi-step chains much earlier.

On the academic side, Yao et al. (2023) tested ReAct via few-shot prompting on PaLM-540B across static environments including Wikipedia benchmarks (HotpotQA, Fever) and text simulations (Yao et al., 2023). Live ERP and CRM connections introduce operational hazards absent from static encyclopaedias: third-party API timeouts, rate limits and irreversible database writes that cost real money, reinforcing OpenAI's (2025) rule on human approval gates ahead of high-impact actions (OpenAI, 2025).

Quick questions

Does an AI agent always cost more and run slower than a workflow?

Yes, across both compute bills and customer wait times. Anthropic notes that open agent loops trade latency and token spend for flexibility while risking compounding mistakes across turns (Anthropic, 2024). That extra cost pays back only when the sequence of steps genuinely cannot be mapped ahead of time.

Does the orchestrator-workers pattern count as a workflow or an agent?

Anthropic places it under workflows because outer control remains governed by application code (Anthropic, 2024). Unlike fixed parallel branches, a central model splits each incoming request into custom subtasks on the fly, putting the pattern right next to the boundary with autonomous agents.

What should an operator ask a vendor pitching an end-to-end AI agent?

Ask three direct questions: which steps run in deterministic code, where the model chooses its own tool calls, and what hard step cap stops the loop (Anthropic, 2024). High-consequence actions such as large refunds or contract changes still require a mandatory human sign-off gate (OpenAI, 2025).

Do failure findings from the 2023 ReAct paper still hold for newer models?

The enduring lesson sits in how loop errors arise, independent of PaLM-540B's raw benchmark scores (Yao et al., 2023). Adding search tools eliminated fabricated facts yet introduced reasoning slips and repetitive query loops; modern frontier agents still rely on step ceilings and fallbacks to contain both.

References

Listed A–Z by author surname, Harvard style. A source with a DOI links to https://doi.org/…; one without links to its page or says plainly that it has no DOI.

  1. Anthropic (2024) Building effective AI agents. Anthropic Research.No DOIanthropic.comCited in 6 articles
  2. OpenAI (2025) A practical guide to building agents [guide].No DOIcdn.openai.comCited in 3 articles
  3. Yao, S. et al. (2023) ReAct: synergizing reasoning and acting in language models. (ICLR 2023 (camera-ready version); arXiv:2210.03629).doi:10.48550/arXiv.2210.03629Cited in 1 article
Keep reading

Related articles

All articles

Was this article useful?

Rate the article from 1 to 5 stars

No ratings yet.

Comments (0)

No comments yet. Be the first.

Leave a comment

Comments are moderated before they appear. That can take a few hours.