# Workflow or autonomous agent

> A workflow follows a path written in advance, and the model steps in at set points. An agent chooses its own steps. The workflow is predictable and cheaper, the agent copes with unexpected cases, and most processes mix the two.

There are two ways to automate with a model. In a workflow, code decides the order of steps. In an agent, the model decides. Many forms sit in between.

Common forms: chaining model calls, routing a request to the right handler, running several handlers in parallel, handing subtasks to workers under an orchestrator, having a second call review and correct an output.

A few questions settle the choice. Are cases varied or repetitive? What does a mistake cost? Must each step be explained to an auditor? What volume? The more alike the cases and the more audit matters, the more the workflow wins.

Start simple: a well-prepared model call, then a workflow, then an agent. Each step up is justified by a measurement on real cases. Gartner cites rising costs and unclear value among the reasons many agentic AI projects will be canceled by the end of 2027.

Existing automation keeps its place. Software robots (RPA) and integration platforms already handle well-structured cases. The agent takes the messy cases those tools hand back to a person today.

**When**: A workflow fits a repetitive, regulated, high-volume process where every step must be explainable. An agent fits varied cases, scattered information and steps that cannot be listed in advance. Neither is justified where a simple rule or a form does the job.

**Trade-offs**: An agent uses more tokens, responds more slowly and is harder to test. A workflow breaks as soon as a case leaves the planned path.

## Where to start

- Describe the process step by step with the people who do it
- Mark the steps that call for judgment
- Automate the fixed steps first
- Give an agent only the judgment steps, with a success criterion

## Common mistakes

- Handing a whole regulated process to an unconstrained agent
- Keeping a rigid workflow for highly varied cases
- Adding agents without measuring what they bring

## Metrics

- Share of cases handled without intervention
- Cases that left the planned path
- Cost and time per case, workflow against agent

## Sources

- [Anthropic, Building effective agents](https://www.anthropic.com/engineering/building-effective-agents)
- [Gartner, press release of 25 June 2025 on agentic AI projects](https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027)
