Agentic Workflow Examples You Can Show Clients
A catalog of agentic workflow examples, from prompt chaining to autonomous agents, with guidance on picking the right pattern for a client's task.
- published
Anthropic's guide splits agentic systems into two kinds. Workflows are systems where LLMs and tools run through predefined code paths. By contrast, agents are systems where LLMs direct their own processes and tool usage. The guide calls all of these agentic systems, but it keeps the two apart, and so should you when you scope a job. For a broader look at the idea, see what an agentic AI workflow is.
Anthropic's guide recommends finding the simplest solution possible and only adding complexity when needed. The guide says workflows offer predictability and consistency for well-defined tasks. Agents fit when the model needs to make its own choices. It also notes agentic systems often trade latency and cost for better task performance. For many jobs, tuning a single LLM call with retrieval and examples is enough.
Example 1: Prompt chaining
Anthropic's guide says prompt chaining splits a task into steps, and each LLM call processes the output of the previous one. Between steps, you can add programmatic checks. This fits best when a job breaks cleanly into fixed subtasks.
Each step feeds the next.
Example 2: Routing
Routing classifies an input first, then sends it to a specialized follow-up task. Anthropic's guide says it works well when a task has clear groups that are better handled apart. Its own example is sorting customer service queries into different paths.
Classify first, then let each branch do what it does best.
Example 3: Parallelization
Anthropic's guide says parallelization has two variations, sectioning and voting. Use it to save time when subtasks can run side by side. Use it too when you want more than one try. One example from the guide: one model answers a query while another checks it for bad content.
Sectioning splits a big job into pieces that run at once. Voting runs several attempts on the same job and compares results.
Example 4: Orchestrator-workers
Here a central LLM breaks down tasks and delegates them to worker LLMs. Anthropic's guide says this suits complex tasks where you cannot predict the subtasks needed. It differs from parallelization because the orchestrator picks the subtasks, not you.
Use it when the shape of the work changes with each request. A fixed set of branches cannot cover that.
Example 5: Evaluator-optimizer
One LLM call makes a response and another gives feedback, in a loop. This loop pays off when results are easy to judge and each round of fixes helps, per Anthropic's guide.
Draft, critique, refine, repeat. Without clear criteria the critique is just opinion, so nail those down with the client first.
Example 6: Autonomous agents
Anthropic's guide says agents begin with a command from, or a discussion with, the human user. At each step, they need ground truth from the environment, such as tool call results. They are typically just LLMs using tools based on environmental feedback in a loop.
Agents suit open-ended problems where you cannot predict the number of steps or hardcode a path. That freedom brings higher costs and errors that can build on each other. That is why the guide recommends finding the simplest solution possible. The guide says customer support suits agents. It needs both talk with the user and access to outside facts and actions. For how the loop itself works, see the agentic loop explained.
Multi-agent examples
OpenAI's guide describes two ways multiple agents work together. In the manager pattern, one lead agent runs a set of expert agents through tool calls. In the decentralized pattern, agents work as equals. They hand off tasks based on what each one does best. It says the decentralized pattern works well for conversation triage.
OpenAI's guide also says to try multiple agents if clearer tool names, settings, and descriptions do not help. The n8n docs say to use sub-agents when a task has clearly separate parts. They also say to connect Message an Agent Tool to the AI Agent node. That lets one agent hand work to another. See how to build an n8n multi-agent workflow.
How to pick the right example
Work through the questions in order. Does the task split into fixed steps? Use prompt chaining. Does it sort into categories? Use routing. Can the subtasks run at once, or do you need several attempts? Use parallelization. Can you not predict the subtasks? Use orchestrator-workers. Does the work need review and refinement against clear criteria? Use evaluator-optimizer. Is the problem open-ended, with no path you can hardcode? Use an agent.
OpenAI's guide says to use an agent for complex decisions, like refund approval. It also says to use one for rules that are hard to keep up, like vendor security reviews. And it says to use one when a workflow leans on messy data, like insurance claims. If the use case does not meet these criteria, a deterministic solution may suffice. Its final advice: start small, validate with real users, and grow capabilities over time.
Where to see these patterns in practice
In the n8n docs, an AI agent is a system that acts on its own. It reads what comes in and decides what to do within its space. They say to use an agent when work is too open-ended for a fixed workflow. An agent runs a reasoning loop until it gives a final answer. To go deeper, read about the n8n AI Agent node, the tools an n8n agent can use, and agent memory in n8n. For ready-made starting points, browse n8n workflow templates.