# AI workflow

> Canonical: https://skillalmanac.com/glossary/ai-workflow | Last verified: 2026-11-24 | Index status: not offered to search engines

An AI workflow is a fixed sequence of steps in which language model calls and tools are orchestrated through predefined code paths. Anthropic contrasts this with an agent, where the model decides its own steps.

Also called: AI workflows, agentic workflow, LLM workflow, AI automation workflow.

## In plain language

An AI workflow is a recipe you write in advance. Step one might read an incoming email, step two asks an AI to classify it, step three files it in the right folder. The order is fixed by you, and the AI does a defined job at each step. That makes it more predictable and easier to test than an agent, which chooses its own steps. The limit is rigidity: if something arrives that your steps did not expect, the workflow cannot adapt. Each AI call also costs money, so long chains cost more. Check what data each step sends to the AI provider.

## Technical definition

Anthropic's Building effective agents defines workflows as systems where LLMs and tools are orchestrated through predefined code paths, versus agents, where LLMs dynamically direct their own processes and tool usage. It describes five workflow patterns: prompt chaining (sequential calls, with checks between steps), routing (classify an input, then send it to a specialised step), parallelization (sectioning or voting), orchestrator-workers (a central LLM delegates subtasks decided at runtime) and evaluator-optimizer (one call generates, another gives feedback in a loop). It recommends finding the simplest solution possible.

## How it shows up when you use agents

In practice, a workflow is what you get when you fix the steps and let the model fill in each one. A Claude Code or Codex session that follows a written plan item by item, a script that calls a model to summarise a file and then runs a linter, and a no-code automation that routes email are all workflows. See [AI agent](/glossary/ai-agent) and [Tool calling](/glossary/tool-calling).

What breaks when the distinction is missed: people build an agent when a workflow would do, and get less predictable behaviour and extra cost. Or they build a workflow for open-ended work and it fails the first time input differs from what the steps expect. Anthropic recommends finding the simplest solution possible and only increasing complexity when needed.

Your next action: write the steps down. If you can list them in advance, build a workflow, add a check after each model call, and log failures so nothing fails silently. If the steps depend on what turns up, consider an agent with limits. See [Agentic AI](/glossary/agentic-ai).

## Common confusions

- **Workflow versus agent.** In a workflow your code decides the path; in an agent the model does (Anthropic). Many real systems mix both.
- **AI workflow versus plain automation.** Ordinary automation runs fixed rules. An AI workflow has at least one step where a model interprets or generates language.
- **Agentic workflow versus workflow.** The phrase is used loosely. Some people mean a workflow with an agent step inside, others mean an agent. Ask which is meant.
- **Myth.** More steps do not make a workflow smarter. Anthropic says that for many applications optimizing single LLM calls is usually enough.

## Worked examples in this catalogue

### [workflow-automation-builder](https://skillalmanac.com/skills/skill-almanac/workflow-automation-builder)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill designs a no-code automation that does not fail silently and checks the design file with a validator.

Why it exercises the concept: A workflow is a predefined path, and a main risk is a step that fails without anyone noticing. This skill puts error handling into the design from the start.

### [executing-plans](https://skillalmanac.com/skills/obra/executing-plans)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill works through a written implementation plan inline, step by step, with checkpoints.

Why it exercises the concept: A written plan followed in order, with checkpoints between steps, is a workflow run by a coding agent. The steps are set by the plan, not invented as it goes.

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide builds a minimal agent as a tool-use loop in Python and cites Anthropic's definition that agents direct their own process, unlike workflows that follow predefined code paths.

Why it exercises the concept: It is the other side of the distinction. Building the loop shows what the model controls in an agent and what your code controls in a workflow.

## Related terms

- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Agentic AI](https://skillalmanac.com/glossary/agentic-ai.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)

## Sources

- [Building effective agents](https://www.anthropic.com/engineering/building-effective-agents), Anthropic (accessed 2026-11-23)
- [Tool use with Claude](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview), Anthropic (Claude Docs) (accessed 2026-11-23)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
