Agentic Workflow Patterns: A Guide for No-Code Builders
Anthropic and OpenAI each name a set of agentic workflow patterns. Here is what each one is, when it fits, and how to pick.
- published
Agentic workflow patterns are named shapes an AI build can take. Anthropic's guide lists several, from a simple chain to a loop that critiques its own work. OpenAI's guide splits the field into two kinds: one-agent systems and multi-agent systems. You need to know what each shape is for.
If the line between agents and workflows is new to you, start with the difference between agents and workflows.
Prompt chaining: fixed steps, one after another
Anthropic's guide says prompt chaining splits a task into steps, and each LLM call processes the output of the previous one.
You can add programmatic checks on the intermediate steps. Anthropic's guide says so, and it matters. A check can stop a bad output before it moves down the chain.
Anthropic's guide says prompt chaining is ideal when a task splits cleanly into fixed subtasks. If the steps are the same every time, this is your pattern. If they change run to run, look further down the list.
Routing: classify first, then specialize
Anthropic's guide says routing classifies an input and sends it to a specialized follow-up task. One step reads the input and decides which expert handles it.
Anthropic's guide says routing works well when a task has distinct categories that are better handled separately. Its own example is customer service queries. Each one goes to a different process downstream.
Parallelization: sectioning and voting
Anthropic's guide says parallelization has two variations, sectioning and voting. Sectioning splits a job into pieces that run at the same time. Voting runs several attempts at the same job and compares them.
Anthropic's guide says parallelization works when subtasks can run in parallel for speed, or when multiple attempts are needed. The guide gives one example. One model answers a query. At the same time, another checks it for content that does not belong. Both run at once.
Orchestrator-workers: when you can't predict the subtasks
Anthropic's guide says a central LLM in the orchestrator-workers workflow breaks down tasks and delegates them to worker LLMs. The workers do their pieces and hand results back.
Anthropic's guide says this suits complex tasks where you can't predict the subtasks needed. That is the whole test. Prompt chaining needs fixed steps. Parallelization needs pieces you already know. Orchestrator-workers decides the pieces at run time.
Anthropic's guide says orchestrator-workers differs from parallelization because the orchestrator decides the subtasks. In parallelization, you decide them when you build.
Evaluator-optimizer: generate, critique, refine
Anthropic's guide says the evaluator-optimizer workflow uses two LLM calls. One makes a response. The other gives feedback. The two run in a loop. The maker tries. The critic marks what falls short. The maker tries again.
Anthropic's guide says this works best when you have clear rules for judging output. It also works best when going back and improving the result adds value. Without clear criteria, the critic has nothing solid to say. If one pass is good enough, the loop is wasted effort.
Single agent or multiple agents? How to decide
OpenAI's guide says orchestration patterns fall into single-agent systems and multi-agent systems. Its advice is blunt. OpenAI's guide recommends maximizing a single agent's capabilities first.
More agents are not free. OpenAI's guide says more agents add intuitive separation but can add complexity and overhead. So when do you split?
OpenAI's guide says you may need more agents when one agent fails to follow complicated instructions or picks the wrong tools. It also says prompts with many if-then-else branches are a reason to split logic across separate agents.
Before you split, OpenAI's guide says to try clearer tool names, parameters, and descriptions. Use multiple agents if that does not improve performance. OpenAI's guide also says to think about splitting tasks across agents as the tool count grows.
The same guide has a warning. Tool overload is about tools being alike or overlapping. It is not only about how many there are.
Multi-agent orchestration: the manager and decentralized patterns
Once you go multi-agent, OpenAI's guide names two shapes.
In the manager pattern, one lead agent runs the show. It directs expert agents through tool calls. OpenAI's guide says this fits when you want only one agent to control the workflow and talk to the user. One face out front, specialists behind it.
In the decentralized pattern, agents work as peers. Each one hands tasks to others based on what it does best. OpenAI's guide says a handoff is a one-way transfer that lets an agent delegate to another agent. This pattern suits cases where no single agent needs central control. OpenAI's guide says it works well for conversation triage.
Guardrails, stopping conditions, and human oversight
Agents act on their own, so control matters. Anthropic's guide says agents often use stopping conditions, such as a maximum number of iterations, to keep control. It also says agents can pause for human feedback at checkpoints or when they hit blockers.
Anthropic's guide says the autonomy of agents means higher costs and the potential for compounding errors. Its advice is to test a lot in sandboxed spaces. It also says to add fitting guardrails. It also says to test how the model uses your tools and iterate on the mistakes.
OpenAI's guide says guardrails help manage data privacy risks and reputational risks. It says to think of guardrails as a layered defense, since one is unlikely to be enough. Guardrails should sit next to login checks, access limits, and normal software security.
The guide describes several kinds. A relevance classifier flags queries that stray off topic. A safety classifier spots jailbreaks and prompt injections. A PII filter checks model output for private details about people. Tool safeguards rate each tool's risk as low, medium, or high. Those ratings can set off guardrail checks. They can also pass the task to a human. Rules-based protections include blocklists, limits on input length, and regex filters. OpenAI's guide says to add new guardrails based on real-world edge cases and failures.
Humans stay in the loop. OpenAI's guide says human intervention is a critical safeguard, especially early in deployment. It says an agent should hand control back to a human when it cannot finish a task. High-risk actions, like canceling orders or making payments, should get human oversight too. An agent can halt execution and hand control back to the user if it fails. Anthropic's guide says human review remains crucial even when automated tests verify an agent's code.
Choosing a pattern for your next build
Work through the shapes in order. Fixed steps? Prompt chaining. Distinct input categories? Routing. Known pieces that can run at once, or several attempts to compare? Parallelization. Unpredictable subtasks? Orchestrator-workers. Clear criteria and a payoff for refinement? Evaluator-optimizer.
Start with one agent. OpenAI's guide says to get the most from one agent before you add more. Anthropic's guide says you must have some level of trust in an agent's decision-making. Earn that trust in testing.
When you are ready to build, how to build an agentic workflow walks through the steps. Agentic workflow tools covers what to build with. Agentic workflow orchestration goes deeper on running multiple agents. If you build in n8n, see the n8n AI agent page.