AI Agents · 11 min

What are agentic workflows? A plain definition, six patterns and when to use one

Agentic workflows explained: workflow vs agent, six patterns from prompt chaining to tool-using agents, with business examples and when to skip them.

Feature graphic: What are agentic workflows? A plain definition, six patterns and when to use one

Agentic workflows are processes in which a large language model does more than answer once. It works through a task in steps: it plans, calls tools such as a CRM or a search index, checks its own output and revises it, and in the more autonomous versions decides for itself what to do next. That puts them on a spectrum. At one end is fixed automation, where every step is written in advance. At the other is an autonomous agent that chooses its own steps until the job is done. Most systems that work reliably in a business sit nearer the fixed end than the marketing suggests. This guide defines the terms using two primary sources, walks through the six common patterns with a business example for each, and covers when not to build one at all.

Workflow vs agent: the distinction that matters

Anthropic's engineering guide Building effective agents (December 2024) gives the clearest split. A workflow is a system where models and tools are orchestrated through "predefined code paths": a developer decided the order of steps, and the model fills in the judgement at each one. An agent is a system where the model directs its own process and tool use, deciding which step comes next and when it is finished. Anthropic groups both under the name agentic systems.

Andrew Ng popularised the term from a different angle. In a March 2024 letter in The Batch he contrasted asking a model for an answer in one pass with letting it iterate: outline, research, draft, review, revise. He named four design patterns for that iteration (reflection, tool use, planning and multi-agent collaboration) and reported that on the HumanEval coding benchmark, GPT-3.5 scored 48.1% in one pass and GPT-4 67.0%, while GPT-3.5 wrapped in an agent loop reached up to 95.1%. The point was that the loop around a model can matter more than which model you pick. Those numbers are from early 2024 models, so read them as a demonstration of the effect, not a current benchmark.

Put the two together and you get a usable definition. A workflow becomes agentic when a model's output decides something about the flow, whether that is which branch to take, whether a draft is good enough, or which tool to call next. The more of those decisions the model makes, the more agentic it is.

The spectrum, from fixed automation to autonomous agent

LevelWho decides the next stepExamplePredictabilityCost per run
Fixed automationYour rulesNew Shopify order creates a row in the warehouse sheetIdentical every timeAlmost nothing
One model call in a fixed flowYour rules; the model fills one fieldClassify a support email's language, then route by ruleHighLow
Chained or routed workflowYour code, using the model's outputsExtract invoice fields, validate in code, draft a payables noteHigh, if each step is checkedLow to medium
Orchestrated workflowA model splits the work; code assembles itAnswer a 60-question security questionnaire from your policy libraryMediumMedium
Tool-using agent with limitsThe model, within a fixed tool set and step capResolve an order exception by checking order, carrier and stock systemsLower; needs evalsMedium to high
Open-ended autonomous agentThe model, with broad toolsA coding agent working on a repositoryLowestHighest

Moving down the table buys flexibility and pays for it in predictability and money. Anthropic says this directly: agentic systems trade latency and cost for better task performance, and you should only make that trade when it pays.

The six patterns, with a business example for each

The first five are the workflow patterns Anthropic describes; the sixth is its agent pattern. The examples are ours, chosen from the kinds of jobs mid-sized companies bring us.

1. Prompt chaining

How it works: the task is split into fixed steps, each model call working on the output of the last, with checks in code between them. Business example: a supplier invoice arrives as a PDF. Step one extracts the fields as structured data. Code then checks that line items add up to the total and the supplier exists. Step two drafts the approval note for accounts payable only if the checks pass. Use it when a task splits cleanly into stages and you want to check each one. Watch for errors carrying forward: without the check between steps, a misread total becomes a confident wrong note.

2. Routing

How it works: a first step classifies the input and sends it to a specialised path, which may be a different prompt, a different model, or a person. Business example: inbound support email is sorted into order status, returns, product questions and complaints. Order status goes to a path that looks the order up; complaints go straight to a human. Anthropic also suggests routing easy questions to a smaller, cheaper model. Watch for misclassification. In a support agent we built for a Shopify Plus brand, the agent replies on its own only when classification and retrieval both clear confidence thresholds, and everything else goes to a person; it now resolves 64% of tickets that way (case study).

3. Parallelisation

How it works: several model calls run at once and their results are combined. Anthropic distinguishes sectioning, where independent parts of a task run side by side, from voting, where the same task runs several times and the answers are compared. Business example of sectioning: a contract review where separate calls check payment terms, liability caps and termination clauses against your playbook, while another screens the document for anything that should stop the process. Business example of voting: three independent checks on whether a product listing breaks marketplace rules, with a flag raised if any one says yes. Watch for cost, which multiplies with each parallel call.

4. Orchestrator-workers

How it works: a central model reads the task, decides how to break it up, hands the pieces to worker calls and assembles the result. Unlike parallelisation, the subtasks are not known in advance. Business example: answering a customer's security questionnaire. The orchestrator groups the questions, each worker drafts answers from the relevant policy documents, and the orchestrator assembles them and lists the questions it could not answer for a person to complete. Watch for the orchestrator inventing work. Cap the number of workers and log the plan it made so you can see why.

5. Evaluator-optimiser

How it works: one call produces a draft, a second call judges it against explicit criteria and sends feedback, and the loop repeats until the draft passes or a limit is hit. This is the reflection pattern in Ng's list. Business example: product descriptions written against a brand guide and a list of banned claims, where the evaluator checks tone, length and compliance and returns specific fixes. Use it when you can write down what good looks like. Watch for loops that never converge. Set a maximum number of rounds, and check that the evaluator agrees with your human reviewers before you trust it; our guide to calibrating an LLM judge covers how.

6. The tool-using agent loop

How it works: the model is given a goal and a set of tools, then repeats a cycle of choosing an action, calling a tool, reading the result and deciding what to do next, until it finishes or hits a stop condition. Business example: an operations agent handling an order exception. It looks the order up, checks the carrier's tracking, checks stock at a second warehouse, and proposes a fix (reship, refund or wait) for a person to approve with one click. Use it when the steps genuinely cannot be known in advance. Watch for compounding error: small per-step failure rates multiply over a long loop, which is why we split or gate long agents, as explained in when a multi-step AI agent fails in production.

When not to use an agentic workflow

Anthropic's first recommendation is to find the simplest solution that works and add complexity only when it clearly improves results. For many tasks, it notes, a single well-prompted model call with retrieval and a few examples is enough. We would go a step further: for a lot of business work, no model is needed at all.

  • The input is already structured. If the data arrives in fields, rules route it faster, cheaper and identically every time.
  • Nobody can define a correct answer. If you cannot write down what good output looks like, you cannot test an agent, and you will not know when it gets worse.
  • A mistake is expensive and cannot be checked. Payments, legal commitments and medical decisions need a person in the path, at which point a simpler draft-and-approve workflow often does the job.
  • The volume is tiny. Ten cases a week rarely justify the build and the monitoring.
  • Your exception rate is low. If rules already handle nearly everything, keep them. Our guide to rules-based automation vs AI agents gives exception-rate thresholds for when the upgrade is worth it.

The best designs we see are hybrids: rules handle the predictable majority, and an agentic step takes only the cases the rules cannot.

What makes an agentic workflow safe to run in production

None of this is specific to one pattern. Each point has its own guide on this site, so here is the short version and where to read more.

  • Evals before and after every change. A fixed set of real past cases with known right answers, run automatically, with a pass mark that blocks a release. What to measure is in AI agent eval metrics, and how to build the set from your own history is in building an eval set from support tickets.
  • A person where it counts. Approval on anything hard to undo, and a path to a human when confidence is low. The four supervision patterns are in when an AI agent should stop and ask a human.
  • Observability. A trace of every step: the prompt, the tool calls, the outputs and the cost, so you can explain any single decision after the fact. Anthropic lists showing the agent's planning steps as one of its three core principles. The rest of the stack is in the production AI agent stack.
  • Cost caps. A maximum number of steps or rounds per run, token limits per call and a spend limit at the provider. Where the money really goes is in what an AI agent costs.
  • Narrow, well-described tools. Give the agent the fewest tools that do the job, with least-privilege access, and document each one as carefully as a public API; Anthropic calls this the agent-computer interface. Treat anything the agent reads from outside as untrusted, as covered in our AI agent security framework.

Which pattern fits which job

A starting point, not a rule. Pick the lowest row on the spectrum that does the job.

JobPatternWhy
Extract fields from invoices or purchase ordersPrompt chainingFixed stages, each checkable in code
Sort inbound email or tickets by intentRoutingOne classification decides the path
Draft replies to common support questionsRouting plus a draft for approvalEasy cases automated, hard ones to people
Review contracts against a playbookParallelisation (sectioning)Independent clauses checked side by side
Flag risky listings or contentParallelisation (voting)Several checks lower the miss rate
Answer RFPs or security questionnairesOrchestrator-workersThe breakdown depends on the document
Write on-brand product copyEvaluator-optimiserClear criteria to check against
Resolve order or shipping exceptionsTool-using agent, with approvalNext step depends on what each system returns
Research a prospect before a sales callTool-using agent, read-onlyOpen-ended search, low risk
Move an order into the ERPNo model; rulesStructured input, must be exact

How agentic workflows get built

You can build the workflow patterns in an automation tool such as n8n, which has an AI Agent node and handles the plumbing; our guide to n8n templates covers which ones suit a business and what to fix before they go live. You can also write them directly against a model provider's API in your own code. Anthropic recommends starting with the API directly, and warns that frameworks can hide the prompts and responses you need to see when debugging. Whichever you choose, the patterns are the same, and so is the work of testing and monitoring them.

Getting one built

If you have a workflow in mind and want it in production, Gigabit Agents builds and deploys a production agent for a flat fee from $8,000 per agent; the fee covers build, deployment and 30 days of tuning. If the job is a single automation with an AI step, the AI Quick Win Sprint is $8,000 fixed over 3 weeks. If you are not sure which workflow should come first, the AI Transformation Sprint ($25,000, 2 weeks) maps your workflows, models the return and ends with one scoped, ready-to-build agent. And if the honest answer is that rules will do, we will tell you that too.

AI Agents · FAQ

Questions this raises

Short answers to the questions this article is written to settle.

What is an agentic workflow?

A process in which a language model works through a task in steps, planning, calling tools, checking and revising its work, rather than answering once. It is agentic to the degree that the model's output decides the flow: which branch to take, whether a draft is good enough, or which tool to call next.

What is the difference between an AI workflow and an AI agent?

In Anthropic's definitions, a workflow orchestrates models and tools through code paths a developer wrote in advance, while an agent lets the model direct its own process and tool use. Workflows are more predictable and cheaper; agents handle tasks whose steps cannot be known in advance.

What are the main agentic workflow patterns?

Anthropic describes prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimiser as workflow patterns, plus the autonomous agent that uses tools in a loop. Andrew Ng's four design patterns, reflection, tool use, planning and multi-agent collaboration, cover similar ground from a different angle.

What is an example of an agentic workflow in business?

Invoice processing is a common one: a model extracts the fields, code checks the totals and supplier, and a second step drafts the approval note only if the checks pass. Support routing is another: a model classifies each email, answers routine ones when confidence is high and sends the rest to a person.

When should you not use an agentic workflow?

When the input is already structured, when nobody can define a correct answer to test against, when a mistake is expensive and cannot be checked, or when volume is tiny. Rules-based automation is cheaper and identical every time for work that fits it.

Are agentic workflows the same as agentic AI?

They overlap. Agentic AI is the broad label for systems that act with some autonomy. Agentic workflows are the concrete designs used to build them, from fixed chains with a model at each step to agents that choose their own steps.

Keep reading

Related insights

The next articles on the same decision.

AI Agents

Rules-based automation vs. AI agents: when you need the upgrade

Your Zapier flows and RPA bots aren't obsolete: they're cheaper and more predictable than an agent for the w…

AI Agents

The production AI agent stack: what we actually deploy

The six layers a production AI agent stack needs: model, orchestration, retrieval, evals, observability, gua…

Evals

What to measure in an AI agent eval suite

AI agent eval metrics that should gate every deploy: golden-set size, accuracy thresholds, confidence gates.…

Stop reading, start shipping

Want this running in your stack?

If this is the kind of work you're trying to get into production, a 30-minute call with an engineer is the fastest path to a scoped plan with a price.