Five patterns for building AI into your workflows.

When Anthropic helped dozens of companies with agents, it found that simple, composable solutions worked best, not complex frameworks. From these building blocks it described five patterns. You know each of them from an ordinary company.

Five building-block shapes: a chain, a fork, parallel lines, a split and a loop

1. Chaining: the assembly line

The task is split into steps one after another. Each step works with the result of the previous one. You can put checkpoints between the steps: if the outline doesn’t meet the criteria, it doesn’t go further. It is slower but more accurate, because each step is simpler. Anthropic’s example: write a marketing text and then translate it.

2. Routing: the reception desk

The first step decides what kind of request it is and sends it on to the right place. Each branch can have its own instructions, tools and model. Anthropic’s example: split customer questions into general ones, refunds and technical ones. Send simple questions to a smaller, cheaper model and hard ones to a bigger one.

Five machines on one table, one for each pattern of working with AI

3. Parallelization: several people at once

Several model calls run at the same time and the results are combined afterwards. It has two forms:

  • Sectioning: each does a different part. One model answers the customer, a second checks in parallel whether the question is inappropriate.
  • Voting: the same task is done several times and the results are compared. For example several code reviews for security flaws.

4. Orchestrator and workers

A central model decides by itself how to split the task, hands the parts to workers and puts the results together. The difference from parallelization: the parts are not set in advance, they follow from the assignment. Subagents grew out of this pattern. Anthropic’s example: changes in several code files at once, or searching and analyzing information from multiple sources.

5. Author and reviewer

One model creates a result, a second one evaluates it and gives feedback. This repeats until the result is good enough. It works when the criteria are clear and another round really adds quality. Anthropic’s example: a literary translation that a reviewer comments on repeatedly.

PATTERNWHEN TO USE ITWHAT IT CAN LOOK LIKE IN A COMPANY
ChainingThe task has clear steps in sequenceMeeting notes from a transcript, then tasks from the notes into ClickUp
RoutingDifferent kinds of requests come inSplit emails to info@ into orders, complaints and questions
ParallelizationThe parts are independent or you want several opinionsThree checks review a contract at once: prices, deadlines, penalties
Orchestrator and workersYou don’t know in advance what the task will consist ofPreparing materials before a meeting with a new client
Author and reviewerYou can describe quality with criteriaA proposal is rewritten until it meets the company checklist

An agent is then the last step: a model that combines these patterns on its own, depending on what it needs at the moment.

Be careful with frameworks

Anthropic warns that ready-⁠made frameworks make it easier to start, but add layers that hide what the model actually received and what it answered. It advises starting directly with the model and using a framework only when you understand what it does inside.

Try it: find a pattern in your process

  • Take a process you marked as a workflow.
  • For each step, say which of the five patterns it is.
  • If you found an author and a reviewer, write three criteria the reviewer would judge by. That is the fastest way to improve the quality of AI output.

Source: Anthropic, Building effective agents (December 2024).

Ask yourself

Which of the five patterns are people in your company already doing by hand?

Jaro Rais

Founder of itashu. Builds agents and connects AI to company systems.

The itashu assistant, a robot with a red head, waving

Have a question? Just ask.

Want to know more about our services? Interested in concrete use cases and references, whether we’ve already solved a problem like yours, or what it might all cost? Talk it through with our AI agent. It knows a lot more than you’d think.

Cookie settings

Choose which cookies we may use. You can change your choice at any time in the website footer.

Speaking

itashu assistant

Hello, I’m the itashu digital assistant. How can I help you?