Skip to content
atlas

Agentic workflow

Also known as: LLM workflow

A fixed chain of steps written in code, where a language model does some of the steps but does not choose the order.

Draft - this entry has not been reviewed yet.

Formal

A system in which large language model calls and tool calls follow paths set in advance by the developer - in a line, in branches chosen by rules, or side by side - rather than the model deciding its own next step as an AI agent does.

In plain English

Like a relay race on a fixed route - each runner is fast and skilled, but where they run and whom they hand the baton to was settled before the start.

In practice

At a water utility, each customer email passes a fixed chain - a model sorts it by topic, a prompt written for that topic drafts a reply, code checks the draft against the price rules, and a customer adviser sends it.

Why it matters

For most business tasks a fixed path is cheaper, easier to test and harder to lead astray than a free-acting agent, so it is often the better first choice.

Technical deep dive

The distinction most practitioners now use comes from Anthropic's "Building effective agents" (December 2024): workflows are systems in which LLMs and tools are orchestrated through predefined code paths, whereas agents let the model dynamically direct its own process and tool use. In a workflow the control-flow graph is authored by the developer and is known before execution; the model fills in nodes. The term "agentic workflow" is used loosely in industry, sometimes for anything involving an LLM loop, so it pays to ask who owns the next-step decision: code or model.

The same article names five recurring patterns. Prompt chaining decomposes a task into sequential calls, with programmatic gates between steps (for example, rejecting a draft that fails a length or schema check). Routing classifies the input and dispatches it to a specialised prompt or cheaper model. Parallelisation runs calls concurrently, either by sectioning a task into independent subtasks or by voting, running the same task several times and aggregating, which trades cost for reliability. Orchestrator-workers lets a central LLM decide at run time how to split the work, and evaluator-optimiser loops a generator against a critic until acceptance criteria are met. The last two already hand some control to the model and sit on the boundary with agents.

Engineering a workflow looks like ordinary distributed-systems work. Each step should exchange structured output validated against a schema, so failures are caught at the edge rather than propagating as free text. Steps need timeouts, retries with backoff, idempotency keys for side-effecting tool calls, and checkpointing so a long run can resume; durable-execution engines and graph frameworks such as LangGraph exist largely for this. Because each node has a narrow contract, it can be evaluated in isolation with its own test set, which is the main practical advantage over free-running agents, whose trajectories vary from run to run.

Workflows also make control placement explicit. A human-in-the-loop approval can be inserted at the one step that sends email or moves money; untrusted content can be confined to steps that have no dangerous tools; and cost and latency are bounded because the number of model calls is fixed or capped. The failure mode is rigidity: inputs the designer did not anticipate fall through the routing logic. A common evolution is to start with a chain, add routing as edge cases appear, and grant agentic autonomy only to the sub-task that genuinely needs open-ended exploration.

What to learn first

Everything this builds on, foundations first.

  1. Token
  2. →Transformer
  3. →Large language model (LLM)
  4. →Prompt
  5. →Agentic workflow

Relationships

Don't confuse with
AI agent

Sources & further reading

Reference works

  • Anthropic (2024), Building effective agents · Anthropic

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Check yourself

Loading…

Atlas is in beta.