One of the most important decisions in any automation project is choosing the right architecture. Should you build a fixed workflow — a defined sequence of steps — or an AI agent that decides its own path? The answer matters more than it might seem. Getting it wrong costs time, money, and trust in the system.

This distinction is one that LangGraph — the leading framework for building agentic systems — makes precisely. Understanding it properly helps you make better automation decisions.

What is a workflow?

A workflow is a predefined graph of steps. The control flow is determined by you, the developer, at build time. Step A always leads to Step B. If a condition is true, go to Step C; otherwise, go to Step D. The logic is explicit, auditable, and predictable.

This is the architecture behind most business process automation today — invoice approval flows, email sequences, form-triggered actions, data synchronisation between systems. When the process is well-understood and consistent, a workflow is the right choice.

Workflows win when:

  • The process has low variance — inputs are predictable and structured
  • Speed and cost matter — LLM calls add latency and cost per execution
  • Auditability is required — you need to be able to explain exactly what happened and why
  • The steps are known upfront — you don't need the system to figure out what to do

What is an agent?

An agent is a system where an LLM decides the control flow. Rather than following a fixed sequence, the agent reasons about the current state and chooses what to do next — which tool to call, what to ask, when to stop. The path through the system is determined at runtime, not at build time.

This is what makes agents genuinely more capable for certain tasks. They can handle inputs they've never seen before, adapt to unexpected intermediate results, and execute complex multi-step tasks where the right sequence depends on what they discover along the way.

Agents win when:

  • The task requires interpretation of unstructured inputs (emails, documents, natural language)
  • The right sequence of steps isn't known in advance
  • The process has high variance — many exceptions, edge cases, or novel situations
  • You need the system to make judgements, not just execute instructions
LangGraph's framing

LangGraph distinguishes precisely: in a workflow, an LLM is used within predefined control flow. In an agent, the LLM itself determines the control flow. Both are valid — the question is which one fits your problem.

Real examples: workflow or agent?

Invoice processing

If your invoices come in a consistent format from known suppliers and you just need to extract data and post it to accounting: workflow. Fast, cheap, predictable. If your invoices come from hundreds of vendors in dozens of formats, some scanned PDFs, some emails, some structured and some not — and you need the system to handle all of them: agent (or at least an AI-assisted workflow). The agent can interpret the document regardless of format, extract the right fields, and flag the ones it's unsure about.

Customer enquiry handling

If you're routing inbound emails to the right department based on keywords: workflow. If you want the system to read the email, understand what the customer actually wants, look up their account, draft a personalised reply, and escalate if needed: agent. The judgement required — what does this person actually need? — is what the LLM handles.

Lead follow-up

A fixed sequence of follow-up emails sent on days 1, 3, and 7 after a lead submits a form: workflow. Personalised follow-up that researches the lead's company, references their specific situation, and adapts based on whether they opened the previous message: agent.

Report generation

Pulling numbers from your accounting system and inserting them into a template on a schedule: workflow. Generating a narrative analysis that explains the numbers, identifies trends, and flags anomalies: agent (or LLM-augmented workflow).

The hybrid approach

In practice, the most effective systems often combine both. You might have a workflow that handles the structured, predictable parts of a process — triggering on a schedule, fetching data, routing results — and embed an LLM call at specific decision points where interpretation is needed. LangGraph supports this natively, letting you mix fixed and dynamic control flow within the same graph.

This is the approach Abi Mind uses most often. We start by mapping the process and identifying where decisions require genuine reasoning versus where rules are sufficient. The result is a system that's as efficient as a workflow where it can be and as flexible as an agent where it needs to be.

How to decide: a practical test

Ask yourself these questions about the task you want to automate:

  1. Can I write out all the steps in advance? If yes, lean toward a workflow.
  2. Are the inputs structured and predictable? If yes, lean toward a workflow.
  3. Does the task require reading and interpreting text, documents, or natural language? If yes, you likely need an LLM somewhere.
  4. Does the right next step depend on what you find in the previous step? If yes, lean toward an agent.
  5. How important is cost per execution? Agents are more expensive — if this runs thousands of times a day, the economics matter.

There's no single right answer for every situation. The best automation professionals know when to reach for each tool — and don't over-engineer a workflow into an agent to make it sound more impressive.


Not sure which approach fits your business?

We assess your process, recommend the right architecture, and build the system. No jargon — just a clear recommendation and a plan.

Talk to us

How Abi Mind approaches this decision

When we start an automation project, we spend time understanding the process before we decide on the architecture. What are the inputs? How much do they vary? Where does human judgement currently happen? What are the consequences of an error?

For our business process automation work, we often start with fixed workflows and add intelligence where the variance justifies it. For our AI agents and agentic workflows work, we build purpose-built agents with clear tool definitions, memory where needed, and human-in-the-loop checkpoints for high-stakes decisions.

The goal is always the same: a system that works reliably in production, not just in a demo.