in this blog
Businesses adopting artificial intelligence often assume they need an autonomous agent to handle complex business operations. In engineering practice, a fixed workflow that uses language models for specific steps is usually cheaper, faster, and far more reliable. A workflow is an automated process where software engineers set fixed paths in advance, directing large language models, the text generation models powering modern AI, through predetermined steps. An agent is a system where the model directs its own process, deciding which tools to run and what actions to take to reach an open-ended goal. We recommend choosing the simplest structure that satisfies the task.
Two shapes: recipes and chefs
The fundamental difference between these two systems comes down to control. Think of an everyday comparison: a workflow is a kitchen recipe, while an agent is a chef deciding what to cook based on what ingredients remain in the pantry. In a recipe, the sequence of instructions is set beforehand. Step one is chopping the onions; step two is heating the pan. In our hypothetical example of processing supplier invoices, a workflow follows a fixed chain. A document arrives by email, an AI model reads the text and extracts the total cost, a database check confirms whether the supplier exists, and a payment record is generated for review. Every stage follows fixed rules.
An agent, by contrast, determines its own sequence. Given the goal of resolving an invoice discrepancy, the model evaluates the problem, keeps track of what it has learned so far, and chooses which software tools to use. It might query an inventory system, search historical purchase orders, or draft an email to a vendor. Access to tools alone does not make a system an agent: Anthropic separates the two by whether people fixed the steps in advance or the model decides them as it goes.
Trade-offs and boundaries
Every degree of freedom given to a model has a cost. Workflows are predictable, quicker to respond and simpler to check. When every step is known in advance, engineering teams can test each part on its own and confirm where an error occurred. Agents provide flexibility when tasks have variable paths, but they bring higher costs, longer response times, and more places to fail.
| Fixed AI workflow | Autonomous AI agent | |
|---|---|---|
| Who decides the steps | People, in advance | The model, as it goes |
| Predictability | High and consistent | Varies from run to run |
| Cost and speed | Lower cost, faster | Higher cost, slower |
| Testing and fixing | Straightforward | Harder, because the path changes |
We apply a simple rule: stay with a fixed workflow whenever the steps can be mapped in advance. For many applications, a single, well-prepared AI call is enough: give it the right documents and a few worked examples. Only introduce an agent when the steps required to complete a task cannot be defined upfront.
From simple workflows to bounded agents
We organise implementations from simple chains to bounded autonomy.
1. Chain steps in a predictable sequence
The simplest pattern links independent steps together. In our hypothetical invoice scenario, the first step extracts the line items from a PDF document, and the second step compares those extracted items against a purchase order. Each step runs in a fixed order. If the system fails, engineers know whether the failure happened while reading the document or while matching it to the purchase order.
2. Route work based on clear criteria
Operations often need different handling for different cases. A naive approach asks a single open-ended prompt to solve every incoming variation. The reliable replacement uses a router, an automated switch that classifies an incoming item and sends it down a dedicated path. If an incoming invoice matches an approved purchase order, the router sends it straight to payment. If the invoice lists unrecognised line items or missing details, the router sends it to a person to investigate.
3. Keep agents within strict bounds
When an invoice shows a complex billing discrepancy across multiple contracts, the path to resolution cannot be scripted in advance. Here, an agent earns its place. Deploying an agent safely means bounding its actions:
- Explicit tool access. Grant access only to the exact tools required, such as a read-only search of the billing database.
- Step limits. Set hard stopping points, such as a cap of five planning steps, so it cannot run on indefinitely.
- Checks against reality. Have the agent look at real results from its tools, such as the database record, to judge its progress.
- Human checkpoints. Stop and require explicit approval before any action that cannot be undone.
Human oversight becomes symbolic when a person only rubber-stamps actions after they occur. Real review stops the system before the action runs. The reviewer needs full context: the planned action, which agent proposed it, and the amount involved.
Common pitfalls
Teams deploying agents frequently run into predictable failures when the limits are loose.
| Pitfall | Risk | Remedy |
|---|---|---|
| Unbounded tool use | The agent queries irrelevant systems or loops | Restrict the systems it can reach and cap its steps |
| Blind rubber-stamping | Reviewers approve actions without context | Show the payee, amount and reason before anything runs |
| Stale context | Wrong details carry over from an earlier task | Clear context between tasks and check the current state directly |
| Unchecked payments | High-value actions run without a person | Require manual sign-off for sensitive or irreversible actions |
Choosing for your own process
Start on paper. If your team can draw the process as boxes and decisions, build a fixed workflow and try a single well-prepared AI call at each step before anything more elaborate. Keep an agent for the one part with too many branches to map in advance, and put a human approval in front of anything that changes a record or moves money.

.jpg)
