Compare AI Agent Architecture Build Types
The short answer
What are the main ways to build an AI agent?
Teams build AI agents five ways: a code-defined workflow with LLM steps, a self-hosted vendor agent SDK, a ReAct loop, an RPA flow with LLM steps, or a multi-agent framework. The difference is what each leaves your team to build and run: policy logic, document handling, evals, evidence, capacity. For regulated document workflows, MightyBot ships those layers as a platform. Building wins when agent infrastructure is your product.
Workflows vs agents
Workflows vs agents: the line that matters
The five build types sit at different points on one line: who decides the next step, your code or the model.
Workflow end
Code decides the steps
"Workflows are systems where LLMs and tools are orchestrated through predefined code paths."
Anthropic, Building effective agents. LangGraph's documentation uses the same split.
- Deterministic workflow plus LLM calls
In between
Depends on how it is configured
An SDK build, an RPA flow and a code-defined multi-agent graph sit in between.
- Self-hosted vendor agent SDK
- RPA plus LLM workflow
- Multi-agent, code-defined graph
Agent end
The model decides the steps
Agents "are systems where LLMs dynamically direct their own processes and tool usage."
Anthropic, Building effective agents. LangGraph's documentation uses the same split.
- ReAct agent
- Multi-agent, model-directed
Predictability and consistency Trades latency and cost for task performance
"Use the lowest level of complexity that reliably meets your requirements."
Microsoft, Azure Architecture Center
"We recommend that you start with a single agent."
Google Cloud, Choose a design pattern for your agentic AI system
"Deterministic workflow" here means LLM steps inside code-defined control flow, not a BPM engine. A fixed prompt chain is a workflow under both definitions and is counted with the deterministic build type. The ROI calculator's "ReAct / sequential prompt-chain agent" preset is a modeling convention for loops where the model directs each step; the ReAct row below describes that loop.
Side by side
Five agent architecture build types compared
Each row is one way to build, what your team ends up running, and the case where it is a fine choice.
Deterministic workflow plus LLM calls
Code-defined steps; LLM calls inside steps. Includes fixed prompt chains.
Engineers, in code, or in configuration, decision tables or a policy service the team builds and governs.
8 engineers
15 months
4 to maintain
6 steps per run, 5,000 tokens per step, 1.25 retry factor
A well-defined task that splits into verifiable steps and a platform team that wants to own it.
Deterministic workflow plus LLM calls: Compared with MightyBotSelf-hosted vendor agent SDK
Vendor loop with tools and handoffs.
Engineers, in prompts, tools and code.
8 engineers
10 months
4 to maintain
8 steps, 4,500 tokens per step, 1.2 retry factor
A team standardized on one model provider that wants a shorter build for tasks that fit the SDK's loop.
Self-hosted vendor agent SDK: Compared with MightyBotReAct agent
The model chooses each next step at runtime; the context grows as the loop runs.
Prompts and tool descriptions, plus checks your team adds around the loop.
8 engineers
15 months
3.5 to maintain
8 steps, 6,500 tokens per step, 1.35 retry factor
Open-ended problems where the step count cannot be predicted, such as research and prototypes.
ReAct agent: Compared with MightyBotRPA plus LLM workflow
Bot or flow; LLM steps inside.
Flow designers plus prompt text.
8 engineers
15 months
3 to maintain
6 steps, 4,500 tokens per step, 1.25 retry factor, plus an automation software reserve
Stable interfaces, legacy systems without APIs and structured high-volume data movement.
RPA plus LLM workflow: Compared with MightyBotCustom multi-agent framework
Agents with roles coordinate at runtime (supervisor, handoffs, group chat) or along a code-defined graph.
Engineers, in role prompts and orchestration code.
8 engineers
15 months
4 to maintain
10 steps, 9,000 tokens per step, 1.45 retry factor
Breadth-first research where work parallelizes and the task is worth the token cost.
Custom multi-agent framework: Compared with MightyBotMightyBot platform
Compiled execution plan from plain-English policies; deterministic checks plus LLM steps.
Your policy owners, in plain English; versioning, review and rollback supplied by the platform.
The platform runs execution, documents, evals and the why-trail.
60 days about, to production
0.25 FTE retained
Calculator: 2 months, editable
Regulated, document-heavy, policy-bound workflows.
See how MightyBot differsPlanning presets come from the ROI calculator's planning assumptions and are editable assumptions, not measurements. The "policy" column describes the usual implementation of each build type; a team can add a separately governed policy layer to any of them and then owns building and running it. Build-type definitions from Anthropic and LangGraph. Presets from the ROI calculator's planning assumptions. Code-defined multi-agent graphs from LangChain and Microsoft Agent Framework. MightyBot row from the June 2026 whitepaper and the build vs buy hub.
The layers around the model
What every build has to add for regulated document work
The architecture decides how the model is called. Whether a loan file, a claim or a draw request is processed correctly under policy depends on the layers around it, and every one of the five patterns needs the same ones.
The hub lists the eight layers a build has to add in detail, with the engineering each one takes.
How MightyBot differs
- Plain-English policiesYour policy owners write the rules. The description is the source.
- Agent CompilerTurns that description into the schemas, the workflow and a versioned execution plan.
- Compiled plan in productionA compiled plan for structured work, stepwise reasoning where judgment is needed, planned sequences for long-running work.
99% or higher accuracy was observed in one construction draw review deployment; validate other workflows on your own data. See production results.
The other side
When building makes sense
The hub's test holds here. Run the numbers on the build vs buy cost and TCO page before you decide.
- 01 Agent infrastructure is your core product IP
- 02 The workflow is experimental or low-risk
- 03 Your team is ready to own every layer above indefinitely Including evals, model upgrades, security and rollback.
How we are measuring the five architectures
MightyBot is running a first-party benchmark of these five architectures. The same regulated document workflows run on each build type, and the results will be labeled for what they are: vendor-run, on synthetic documents, specific to the configurations tested. The RPA arm runs through a proxy, which the published method will state. No results exist yet, and this page will link to them when they are published.
Sources
Sources and verification
- Anthropic, Building effective agents
- LangGraph, Workflows and agents
- Microsoft Azure Architecture Center, AI agent orchestration patterns
- Google Cloud, Choose a design pattern for your agentic AI system
- Thinking Machines, Defeating nondeterminism in LLM inference
- tau-bench (arXiv 2406.12045)
- Anthropic, How we built our multi-agent research system
- Microsoft Agent Framework overview
- MightyBot, July 2026 agent evaluation cost study
- MightyBot, ROI calculator planning assumptions
- MightyBot, The Policy-Driven AI Agent Platform, June 2026 whitepaper.
FAQ
Frequently Asked Questions
What is the difference between an AI agent and an agentic workflow?
Anthropic's definitions are the ones most teams use. Workflows are "systems where LLMs and tools are orchestrated through predefined code paths." Agents are "systems where LLMs dynamically direct their own processes and tool usage." In a workflow, code decides the next step and the model does the work inside it. In an agent, the model decides the next step. For well-defined tasks, Anthropic notes that workflows offer predictability and consistency (source).
Which agent architecture is most reliable for regulated work?
The ones that keep the decision outside the model. A deterministic check returns the same result for identical extracted inputs and policy version; a loop that lets the model decide each step can vary between runs. Extraction is a model step too, so full-document rerun agreement has to be measured. Temperature 0 does not fix this: in one published test, 1,000 identical requests at temperature 0 produced 80 unique completions (Thinking Machines). MightyBot compiles plain-English policies into deterministic checks and uses LLM steps for reading and judgment.
How do you make AI agent outputs consistent run to run?
Three things carry most of the weight: deterministic checks for every rule that can be expressed as one, versioned policies so a rerun executes against the policy snapshot in force, and evidence pointers that tie each value to its source page. The alternative is measurable. In MightyBot's July 2026 agent evaluation cost study, single-pass agent evaluation flipped about 1 in 5 borderline decisions between runs on the workload measured. A check fires the same way on the same extracted values; variance left in extraction still has to be measured.
Should we use a managed agent platform or build on an agent SDK?
An agent SDK gives you the loop, tool calling and tracing; your team hosts it and builds the document pipeline, policy logic, evals and evidence around it. A platform ships those layers and leaves your team the policies, thresholds and review gates. Choose the SDK when agent infrastructure is your product or the task fits the SDK's loop with little around it. The self-hosted vendor agent SDK comparison and the build vs buy hub go through the trade in detail.
When should you use a multi-agent system instead of a workflow?
When the task is breadth-first and parallel: research that spans more information than one context window, where separate agents can explore independently and the result is worth the extra tokens. Anthropic reports that multi-agent systems use about 15 times the tokens of a chat and recommends against them for tasks where all agents must share the same context (source). Microsoft's guidance is blunter: "If you can write a function to handle the task, do that instead of using an AI agent" (source).
How much does it cost to build an AI agent in house?
At the calculator default, the full three-year path for an internal build runs $9.9M to $13.0M across the five architecture presets, including the manual work that continues until launch and residual human review. The number depends on your volume, engineer cost and architecture, so treat the presets as a starting point and change them. The build vs buy hub explains the model and the ROI calculator lets you edit every input.