Skip to content
  1. Home
  2. AI agents
  3. Orchestration and multi-agent systems
  4. Workflows vs agents

Build · Orchestration and multi-agent systems

AI workflow vs AI agent: which one does your process need?

A workflow runs a process along a path that developers write in advance, calling a model only inside fixed steps. An agent lets the model decide which step comes next and which tools to use. In practice, many enterprise processes are a workflow with one or two agent steps placed where the input varies too much to script.

In this guide: 83 pages

Key takeaways

  1. Anthropic’s advice is to find the simplest solution possible and add complexity only when needed. Often that means a single model call, or a workflow with model calls inside fixed steps.
  2. Five workflow patterns cover a lot of ground before you need an agent: prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimizer.
  3. OpenAI’s guide gives an agent the edge when a task involves complex decisions, rules that are hard to maintain or heavy unstructured input. Otherwise, it says, a deterministic solution may suffice.
  4. Put the agent inside the workflow, with its own tools, a turn limit and an exit, so the flow keeps ownership of approvals, retries and the audit trail.
From workflow to agent: who decides the next stepThree designs side by side. In a workflow, code decides every step: the paths are written in advance, model calls sit inside individual steps, and it is tested like software. In a workflow with agent steps, code owns the path and an agent handles the step that varies, with its own tools, a turn limit and an exit, and approvals sit in the flow where the risk is. In an agent, the model chooses the next step: it suits open-ended goals, varies from run to run, needs an evaluation set and limits, and uses more tokens.Who decides the next stepWorkflowCode decides every stepPaths written in advanceModel decisions sit insidesteps, as in Copilot Studioagent flowsModel calls inside stepsExtract, classify or draft: onecall eachTested like softwareUnit tests per stepWorkflow with agent stepsCode owns the path; an agent takesthe step that variesBounded agent stepIts own tools, a turn limit anda defined exitApprovals in the flowA person signs off where therisk sitsTested twiceUnit tests for the flow, anevaluation set for the agentstepAgentThe model chooses the next stepOpen-ended goalResearch, triage, investigationVaries run to runNeeds an evaluation set andhard limitsMore tokensAbout 4 times a chat(Anthropic, 13 Jun 2025)Anthropic, 19 Dec 2024: workflows run LLMs and tools through predefined code paths; agents direct their ownprocesses and tool use.From workflow to agent: who decides the next stepThree designs side by side. In a workflow, code decides every step: the paths are written in advance, model calls sit inside individual steps, and it is tested like software. In a workflow with agent steps, code owns the path and an agent handles the step that varies, with its own tools, a turn limit and an exit, and approvals sit in the flow where the risk is. In an agent, the model chooses the next step: it suits open-ended goals, varies from run to run, needs an evaluation set and limits, and uses more tokens.Who decides the next stepWorkflowCode decides every stepPaths written in advanceModel decisions sit inside steps, as in CopilotStudio agent flowsModel calls inside stepsExtract, classify or draft: one call eachTested like softwareUnit tests per stepWorkflow with agent stepsCode owns the path; an agent takes the step thatvariesBounded agent stepIts own tools, a turn limit and a defined exitApprovals in the flowA person signs off where the risk sitsTested twiceUnit tests for the flow, an evaluation set forthe agent stepAgentThe model chooses the next stepOpen-ended goalResearch, triage, investigationVaries run to runNeeds an evaluation set and hard limitsMore tokensAbout 4 times a chat (Anthropic, 13 Jun 2025)Anthropic, 19 Dec 2024: workflows run LLMs and toolsthrough predefined code paths; agents direct theirown processes and tool use.
Three designs on a spectrum. The middle column is the usual starting point for a business process: the flow owns the path, approvals and retries, and the agent handles only the step that needs judgment.

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

The difference is who decides the next step. In a workflow the developer decides, in code or a visual flow, and the model works inside fixed steps; in an agent the model decides, choosing tools and their order as it goes. Anthropic’s definitions, published on 19 Dec 2024, are the ones most teams now use.

Anthropic: “Workflows are systems where LLMs and tools are orchestrated through predefined code paths. Agents, on the other hand, are systems where LLMs dynamically direct their own processes and tool usage.” The same post recommends finding the simplest solution possible and adding complexity only when it is needed. OpenAI’s guide to building agents makes the same point from the other side: an agent beats deterministic automation on complex decision-making, rules that are difficult to maintain and heavy reliance on unstructured data, and otherwise a deterministic solution may suffice.

The difference shows up in operations more than in demos. A workflow follows paths you wrote, so you test each one like software and walk an auditor through it step by step; Microsoft describes Copilot Studio agent flows this way: “The same input always produces the same output.” An agent takes different paths on different days, so you test it with an evaluation set of real tasks, cap its turns, tokens and tools, and log every step to explain a decision afterwards. In Anthropic’s research system, agents used about four times the tokens of a chat, and every extra turn an agent takes adds to what a fixed step would use.

Which workflow patterns handle LLM tasks without an agent?

Anthropic names five patterns that keep the developer in charge of the path: prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimizer. Each uses a model where it helps and code everywhere else.

The five workflow patterns from Anthropic’s Building effective agents (19 Dec 2024), with an enterprise use for each.

PatternHow it worksEnterprise useMove to an agent when
Prompt chainingA fixed sequence of model calls, each working on the previous output, with checks between themSummarise a contract, check the summary against a clause list, then format itThe sequence changes from one document to the next
RoutingA model classifies the input and code sends it down the matching pathSort inbound tickets into billing, access and hardware queuesNew routes appear faster than you can maintain them
ParallelisationIndependent model calls run at once, and code merges or votes on the resultsCheck one marketing asset against several rules at the same timeThe checks depend on one another
Orchestrator-workersA model splits the task into subtasks at run time and code collects the resultsResearch a supplier across filings, news and internal recordsThe subtasks need tools and decisions of their own
Evaluator-optimizerOne model drafts, another critiques against criteria, and the loop repeats until the criteria are met or a cap is reachedImprove a customer reply until it meets tone and policy rulesEach round needs new information found with tools

Anthropic’s post now carries a banner noting that much of the tooling it describes has changed since December 2024. The patterns have not, and most current frameworks implement them directly as graph or workflow nodes.

When does a step need an agent instead of fixed logic?

When the step cannot be written down as rules without the rules becoming the maintenance problem. Ask four questions of each step, and give it an agent only if the answers point that way.

  1. Can you list the paths? If the step has five known outcomes, use routing. If new cases keep arriving that nobody planned for, an agent may cost less than maintaining the branches.
  2. Is the input structured? A form with fixed fields needs extraction, one model call. A thread of emails, attachments and a phone note that must be reconciled needs judgment across several sources.
  3. What does a wrong action cost? If the step writes to a ledger or contacts a customer, keep the write in the workflow behind an approval and let the agent only propose it.
  4. Can you test it? An agent step needs an evaluation set of real cases with known outcomes before launch. Without one, you cannot tell whether the agent beats the rule it replaces.

When the answers are mixed, we start with the workflow and promote one step to an agent once the evaluation set shows the rules failing. Moving the other way is normal too: when the agent’s choices settle into a pattern clear enough to write down, that part goes back into code.

How do the platforms combine workflows and agents?

Every major platform now runs both in one product, so the design question is where the boundary sits. The table shows how each lets a deterministic flow call an agent, as documented on 2 Nov 2026.

Deterministic and agent parts by platform, with statuses as the vendor pages showed on 2 Nov 2026.

PlatformDeterministic partAgent partStatus
Microsoft Copilot StudioAgent flows on the standard harness, which Microsoft describes as deterministicGitHub Copilot harness takes a goal, breaks it into steps and adjusts when a step fails; Customer Conversation harness uses specialised sub-agentsHarnesses page dated 19 Oct 2026; GitHub Copilot harness experience in production-ready preview since Jun 2026
Microsoft Foundry and Agent FrameworkGraph workflows with checkpointing; Foundry multi-agent workflows with Sequential, Human-in-the-loop and Group chat templatesPrompt and hosted agents as workflow nodesAgent Framework 1.0 GA 3 Apr 2026; Foundry multi-agent workflows public preview since 25 Nov 2025
AWSStep Functions Standard workflows, up to one year with exactly-once semantics, or Lambda durable functionsThe AgentCore harness, called from Step Functions through an InvokeHarness stateAgentCore harness GA 17 Jun 2026; Lambda durable functions launched 2 Dec 2025
GoogleADK sequential, parallel and loop workflow agents; ADK 2.0 graph workflowsLLM-driven transfer between agents and sub-agentsADK Python 2.0 GA 19 May 2026
Open sourceLangGraph graphs; Strands Graph and Workflow; LlamaIndex WorkflowsAgents as graph nodes; Strands Swarm for autonomous coordinationLangGraph 1.0 on 22 Oct 2025; Strands Agents 1.0 on 15 Jul 2025

Strands’ documentation puts the choice in one line: “Use Graph when you want to define the flow, Swarm when agents should coordinate autonomously, and Workflow when the process is fixed.” RPA vendors moved toward the same design from the other side; UiPath’s platform, launched on 30 Apr 2025, puts agents, robots and people on one system with UiPath Maestro as the orchestration layer.

How do Microsoft, AWS and Google implement it?

Where the deterministic and agent parts live on each cloud, with statuses as the vendor pages showed on 2 Nov 2026.

Capability, Microsoft, AWS, Google

CapabilityMicrosoftAWSGoogle
Deterministic flowsCopilot Studio agent flows; Agent Framework graph workflowsStep Functions; Lambda durable functionsADK sequential, parallel and loop agents; ADK 2.0 graph workflows
Agent inside a flowFoundry agents as nodes in multi-agent workflows (preview)AgentCore harness through an InvokeHarness state in Step FunctionsLLM agents as sub-agents in an ADK workflow
Approval stepRequest information action in agent flows (preview from Nov 2025); approval-required tools in Agent FrameworkThe .waitForTaskToken callback in Step Functions; callbacks in Lambda durable functionsHuman input nodes in ADK 2.0 graph workflows

Copilot Studio’s request information action pauses an agent flow for reviewers through Outlook; it was listed as preview in Nov 2025, so check the current label before relying on it.

Enterprise example · Worked example · illustrative

Invoice exceptions: a workflow with one agent step

Illustrative: a 4,000-person distributor’s accounts payable team handling about 30,000 supplier invoices a month. The numbers are invented.

The workflow keeps doing what it did before: capture each invoice, match it against the purchase order and the goods receipt, and post it. About one invoice in ten fails the match, and today a clerk reads the email thread, the PDF and the receiving note to find out why. That step becomes an agent. It may read the thread, the order, the receipt and the supplier record, and it returns one of four outcomes with a reason and the evidence it used.

Everything around it stays in code. The workflow posts only matched invoices, sends every agent proposal above a set amount to an approver, retries the agent once on a timeout and then routes the case to a clerk. The agent never posts, pays or writes to the supplier.

Owner
The accounts payable lead, with a named finance systems engineer for the agent step
Identity
Its own agent identity with read access to the ERP, one mailbox folder and the supplier master, and no write rights
Risk tier
Medium: it proposes financial outcomes; a person approves those above a threshold and samples the rest
Approval
Proposals above the threshold go to an approver inside the workflow; a daily sample of the rest is reviewed
Evaluation
300 past exceptions with known outcomes; the agent must match the clerk on 90 percent before launch
Retirement
Reviewed every quarter, and retired if the exception volume no longer justifies it

Frequently asked questions

Is an agentic workflow the same as an agent?

The term is used both ways. Most vendors mean a workflow that contains one or more agent steps, the design this page recommends, while a few use it for any multi-step agent. Ask who decides the next step: if code does, it is a workflow.

Can RPA bots and AI agents work in the same process?

Yes. UiPath’s platform, launched on 30 Apr 2025, puts agents, robots and people on one system with Maestro coordinating them, and Copilot Studio offers computer use next to deterministic agent flows. Keep bots on stable screens and rules, and give an agent the step that needs judgment.

Are agents cheaper to build than workflows?

Sometimes faster to prototype, rarely cheaper to run. An agent spends tokens deciding what a workflow already knows, needs an evaluation set to show it works, and needs monitoring for the paths nobody foresaw. Use one where those costs buy something the rules cannot do.

Should a multi-agent system replace a workflow?

Rarely. Anthropic reports that its multi-agent research system used about 15 times the tokens of a chat, and Cognition argues for a single-threaded agent when steps share context. A workflow that calls one well-scoped agent covers most business processes; the multi-agent patterns page covers the exceptions.

More in Orchestration and multi-agent systems

Sources

Each source was read on 2 November 2026. The date shown is the date on the page, or the page’s ms.date for Microsoft Learn; an undated page shows the date it was read.

  1. Building effective agents Anthropic, 19 December 2024
  2. A practical guide to building agents OpenAI, undated page, read 2 November 2026. The PDF carries no date; press coverage places it in April 2025.
  3. How we built our multi-agent research system Anthropic, 13 June 2025
  4. Don’t Build Multi-Agents Cognition, 12 June 2025
  5. Harnesses in Copilot Studio Microsoft Learn, 19 October 2026
  6. Agent flows overview Microsoft Learn, 26 October 2026
  7. What’s new in Copilot Studio Microsoft Learn, 22 October 2026
  8. Introducing multi-agent workflows in Foundry Agent Service Microsoft Foundry blog, 25 November 2025
  9. Microsoft Agent Framework version 1.0 Microsoft Agent Framework blog, 3 April 2026
  10. AgentCore harness AWS documentation, undated page, read 2 November 2026
  11. Top announcements of the AWS Summit in New York 2026 AWS News Blog, 17 June 2026
  12. Choosing workflow type in Step Functions AWS documentation, undated page, read 2 November 2026
  13. Build multi-step applications and AI workflows with AWS Lambda durable functions AWS News Blog, 2 December 2025
  14. Agent Development Kit: easy to build multi-agent applications Google Developers Blog, 9 April 2025
  15. Agent Development Kit Google, undated page, read 2 November 2026
  16. Strands multi-agent patterns Strands Agents docs, undated page, read 2 November 2026
  17. LangChain and LangGraph 1.0 LangChain, 22 October 2025
  18. UiPath launches enterprise platform for agentic automation UiPath, 30 April 2025

Planning an AI program?

Talk to the team that builds it and runs it after launch.

  • Built to SOC 2, HIPAA and GDPR standards
  • EU AI Act-aligned delivery
  • Microsoft Solutions Partner