Distinguish Workflows From Agents

A workflow is a fixed sequence of steps with known branching; an agent decides dynamically what to do next. Conflating the two produces systems that are harder to test, monitor, and trust.

What it is

Workflows and agents occupy different points on a control spectrum, and choosing the wrong abstraction produces real costs. A workflow is a predetermined control flow: step A runs, then step B, then a conditional that leads to either C or D. The path is known in advance; the model fills in content at each step but does not choose the path. An agent is a control loop where the model decides what to do next at each turn, selecting from available tools and actions based on the current state. The distinction matters operationally. Workflows are predictable, testable, and auditable — you can trace every execution against a fixed graph. Agents are adaptive and flexible — they can handle situations the designer did not anticipate — but they are also non-deterministic in their control flow, harder to test exhaustively, and more likely to go down unexpected paths. Most practical systems that are called agents are actually workflows: the model fills in text, makes a classification, or generates a plan, but the control flow is fixed by the code. Naming these correctly is not a semantic preference. If a team believes they are building an agent but they have actually wired a workflow, they will design for flexibility they cannot have and be surprised when the system cannot deviate from the programmed path. If they believe they have a workflow but the model is actually driving control flow, they will underestimate the surface area for unexpected behavior.

When to reach for it

When NOT to

Exemplars

Related