When a task needs an AI agent and when a workflow is enough
— By The Global Intelligencer
Choose an AI architecture by examining uncertain steps, permissions, recovery, and total task cost. Test whether extra autonomy improves accepted business outcomes.
What this means
- Keep transitions in ordinary code when the valid steps and exceptions are known.
- Let an agent choose steps where newly gathered evidence determines what to do next.
- Compare accepted outcomes, review effort, and recovery as well as generated answers.
- Enforce approvals and spending limits independently of model instructions.
Editorial note: This is AI-assisted editorial analysis, not original news reporting. Factual claims were checked against the linked primary sources on October 17, 2026. Recommendations are analysis, hypothetical examples are labeled, and photographs are illustrative.
Begin with the task. When valid steps are known, a controlled workflow makes the process easier to inspect. When evidence discovered along the way determines the next step, a model may usefully choose among tools. The question is how much freedom improves the result and how the system can support it. Examples here are hypothetical design cases, not measured customer outcomes.
Locate control of the process
Anthropic's Building effective agents distinguishes predefined workflows from agents directing their own process and tool use. Published in December 2024, the page now points to newer tooling. Its architectural distinction remains useful even as the framework list ages.
A workflow can retrieve documents, ask a model to classify a request, validate it, and send the case to a known queue. An agent might choose the documents, decide whether another tool is needed, and judge when enough evidence exists. Both can use capable models; control of the sequence differs.
Find the uncertain steps
Map how the task works today. Which steps repeat? Which require evidence unavailable at the start? Where do exceptions need judgment? A predictable core with a few uncertain branches may suit a hybrid design.
For example, invoice intake can follow rules for extraction, required fields, and supplier matching. Investigating a disputed charge across emails and purchase orders may require a variable search sequence. Keep deterministic intake and permit bounded investigation in the exceptional case.
Likewise, finding a support policy and drafting a response may need little autonomy, while reconstructing an unusual account history may need more. Each tool should resolve an identified uncertainty. Flexibility that is never used still needs testing and maintenance.
Define completion beyond the answer
A support result needs to match both policy and the customer's account. Accounting may require a classified record with an audit trail; research needs relevant, accessible sources. Fluency establishes none of these.
Write acceptance criteria before comparing designs, including when the system should refuse, escalate, or request information. An underspecified task can correctly stop. Counting every answer as success encourages fabricated completion.
For actions, check the record afterward. Did it change as permitted? Did a retry repeat it? Can the user distinguish completed work from pending work? These are the outcomes an operator must answer for.
Keep permissions independent
Choosing a tool does not confer permission to use every action it exposes. Reading, drafting, and submitting can be separate capabilities. An agent may investigate freely within approved sources while requiring authorization before changing an account or creating an external commitment.
Application code and downstream services must enforce that distinction. Give credentials only the required scope and validate tool inputs even when the model's proposed action sounds reasonable.
Prompt injection defense belongs in this decision because retrieved material can influence planning. The permission system must limit consequences if it does. More tools require a clear account of the authority behind them.
Compare cost and recovery on the same work
Use representative tasks, incomplete inputs, ambiguous requests, tool failures, and changing external state. Ordinary successful cases alone will not show how a design behaves when an assumption fails.
Measure accepted outcomes and end-to-end time. Count model calls, tool calls, retries, and human interventions, including necessary review. A quick first answer can take longer overall after repair; a cheap call can trigger expensive repeated investigation.
Match access, scope, and quality thresholds when comparing a workflow with an agent. An unrestricted agent and a tightly configured workflow do not establish which category is universally better. Report what the test actually covers.
Bound the flexible step
A hybrid can collect a complete case, allow approved-source investigation, require a structured recommendation, and return control to deterministic validation and review. Define entry and exit conditions, time and tool-call budgets, unresolved-uncertainty behavior, and the evidence a reviewer needs.
If the budget runs out, report the incomplete investigation. Clear boundaries help engineers locate retrieval or reasoning failures and help users understand what was done. Expand autonomy when evaluations show a need for it.
Design the human handoff
A reviewer needs the proposed change, source records, policy basis, and consequences, plus time and authority to reject it. An approval button without evidence transfers uncertainty to an employee.
Preserve work when the reviewer declines or requests information. Forcing a restart can encourage approval simply to avoid repetition. Examine frequent escalations for missing tools, unclear policy, or a poor fit for automation.
Before choosing a design
- Specify known transitions and exception handling in the workflow.
- Identify which decisions depend on newly obtained evidence.
- Keep permission and final approval controls outside model discretion.
- Use the same acceptance criteria in comparative tests.
- Include review and recovery in time and cost measures.
- Add freedom to address a demonstrated limitation.
Frequently asked questions
Can a workflow use several models?
Yes. It remains a workflow if ordinary code controls the permitted sequence, regardless of the number of model calls.
Does an agent need many tools?
No. Begin with tools that resolve known uncertainties. Add capabilities when evaluation identifies a need, then test their permission boundaries.
Is human approval sufficient for broad autonomy?
Only when the person can make an informed decision and unauthorized actions remain blocked. Approval after an external change cannot control that change.
Choose a design you can operate
Start with the simplest architecture that meets the acceptance criteria. Keep predictable steps explicit and bound the uncertain investigation. A workflow, agent, or hybrid earns its place through useful results that the organization can explain, test, and recover.
Sources and related analysis
- Anthropic: Building effective agents, originally published December 2024.
- Prompt injection defense starts with agent permissions.
- AI agent observability: trace the decisions that change outcomes.
- AI evaluations: a defensible learning loop.
The photograph is illustrative. Image supplied through Unsplash.
Tags: #ai-agents, #automation, #architecture