Agentic workflow
An agentic workflow is a process in which a language model works through a task in several steps, such as planning, using tools, drafting and revising, instead of producing a final answer in one pass.
Andrew Ng set out the idea in his letter in The Batch on March 20, 2024. He pointed out that most people use language models in one pass, which he likened to writing an essay from start to finish without ever pressing backspace. An agentic workflow instead lets the model work as a person would: plan an outline, decide whether to search the web, write a draft, critique it and revise.
Ng backed the point with coding results on the HumanEval benchmark. GPT-3.5 answering in one pass scored 48.1% and GPT-4 scored 67.0%, but GPT-3.5 placed inside an iterative agent loop reached up to 95.1%, a bigger jump than the move to the newer model. He grouped the techniques into four patterns: reflection, where the model reviews its own work; tool use; planning; and collaboration between several agents.
The term is used in two ways. In Ng's broad sense, any multi-step process of this kind is an agentic workflow. Anthropic's December 2024 guide draws a sharper line: a workflow follows steps fixed in code by a developer, while an agent decides its own steps as it goes. Anthropic's workflow patterns include prompt chaining, routing, parallel calls, orchestrator-workers and an evaluator that sends work back for another round.
A typical business example is invoice handling. One step extracts the supplier, amount and date; the next checks them against the purchase order through a database lookup; mismatches go to a person and matches go for payment. Every step uses a model, but the route is fixed, which makes it easy to test and predict.
Anthropic advises starting with the simplest design that works, since more autonomy brings higher cost, slower answers and the risk of errors compounding. Some products marketed as agentic are well-built workflows, and for many tasks that is the better choice.
It is a way of using a language model in several steps rather than one. The model might plan, gather information with tools, produce a draft, check it and revise, with each step building on the last. The aim is better results than a single prompt and answer. In Anthropic's definition, a workflow follows a sequence of steps fixed in advance by a developer, while an agent decides for itself which steps to take and when to stop. Others use agentic workflow more loosely for any multi-step process that involves a model. Often, for tasks that benefit from checking and revision. Andrew Ng reported GPT-3.5 rising from 48.1% to as much as 95.1% on a coding benchmark when run in an iterative loop. The gains come with extra model calls, so they cost more time and money per task.Common questions
What is an agentic workflow?
What is the difference between an agentic workflow and an AI agent?
Do agentic workflows give better results?
Search for "agentic design patterns", "workflows vs agents" or "prompt chaining" to see the main approaches. Useful sources include Andrew Ng's series in The Batch, engineering guides from model makers, and framework documentation with worked examples. Benchmark gains from agentic methods depend heavily on the task, so look for results on work similar to your own.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.