# AI Workflow

> Fixed steps written in code, where some steps ask a model to help.

**Field:** Artificial Intelligence  
**Category:** AI Agents  
**Also known as:** LLM Workflow, Agentic Workflow, Fixed AI Pipeline

## Think of it like

Think of it like a recipe card. The steps are written down, and you follow them in order.

## Definition

An AI workflow is a set of fixed steps in code, where some steps call a language model. A developer writes the steps, and the code decides the order, not the model. For example, one step sorts an email, the next drafts a reply and the last checks the tone. Workflows are easier to test and cheaper to run than agents. They fit tasks whose steps are known in advance.

## Example

Emma's support tool runs the same three steps on every email: sort it, draft a reply, then check the tone. No step is ever skipped or added.

## Why it matters

Many tasks do not need an agent. A workflow does the job with fewer surprises and a smaller bill.

## Common mistake

Building an agent for a job with fixed steps. The agent adds cost and risk and buys nothing.

## Three principles

- **Code sets the order.** Not the model.
- **Easy to test.** Same path each time.
- **Known steps only.** Agents for the rest.

## Related terms

- [AI Agent](https://learn.benibix.com/term/ai/ai-agent)
- [Prompt Chaining](https://learn.benibix.com/term/ai/prompt-chaining)
- [Agent Loop](https://learn.benibix.com/term/ai/agent-loop)
- [Parallel Agents](https://learn.benibix.com/term/ai/parallel-agents)
- [Evaluator-Optimizer Loop](https://learn.benibix.com/term/ai/evaluator-optimizer)

## Told apart from

- [AI Agent vs AI Workflow](https://learn.benibix.com/compare/ai-agent-vs-ai-workflow): People often call any system that uses a language model an agent. In an AI workflow, a developer fixes the steps in code, and the model fills in each one. In an AI agent, the model picks its own next step, again and again, until the goal is met. Workflows are cheaper and easier to test. Agents handle tasks whose steps cannot be known in advance.

![Three fixed boxes in a row, written by a developer: sort the email, draft a reply, check the tone. The order never changes.](https://learn.benibix.com/diagrams/ag-ai-workflow.svg)

---

Source: https://learn.benibix.com/term/ai/ai-workflow
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
