# Agent or workflow: a decision guide for automation leaders

> If you can draw the path, build a workflow. Use an agent only for the steps whose path cannot be known in advance, and keep that agent inside a workflow that controls what it may touch.

Agentic AI · Implementation guide · November 17, 2026 · 7 minute read · By Nabil Ahmed
Canonical: https://farside.works/insights/agent-or-workflow-decision-guide/

![The lunar surface near 52°S, 105°W, lit by a low Sun with night falling across one side.](https://farside.works/content/images/2026/11/agent-or-workflow-decision-guide.webp)

Automation leaders are increasingly asked to deliver agents. The request usually comes from above and is phrased as a goal ("we need an agent for accounts payable"), which puts the solution ahead of the problem. Whether a process could have an agent matters less than whether it contains steps where nobody can say beforehand what should happen next.

In a workflow, a person fixes the sequence of steps in code or configuration. In an agent, a language model decides at run time which step to take next, usually by choosing among tools in a loop until it judges the task finished. The difference comes down to whether the designer or the model controls the path.

Our recommendation is to default to a workflow and to put models inside it at the steps that need judgment. An agent should be introduced only for the specific part of the work where the path depends on what is found along the way, and that part should be tightly bounded. Most processes described as needing an agent turn out to need a workflow with one or two intelligent steps.

## In brief

- A workflow fixes the path in advance while an agent lets a model choose it at run time, and this difference in control drives cost, predictability and risk.
- When a competent person can draw the process as a flowchart that covers nearly all cases, it should be built as a workflow that uses models at individual judgment steps.
- Agents are justified where each next step depends on what the previous one found, as in investigating a discrepancy across several systems.
- The safest production design is usually a hybrid where a deterministic workflow owns the state, the approvals and the writes and calls a narrowly scoped agent for an investigative step.
- Choosing an agent means accepting variable cost and latency per case along with harder testing, so the choice should rest on variability in the work and not on ambition.

## Two definitions, and a spectrum

It helps to picture three points on a line.

At one end sits rules-based automation, where a person writes every step and every branch and no model is involved.

The middle point is a workflow with model steps. Its path is still fixed, but certain steps call a model to classify a message, extract fields from a document or draft a reply, and the model's output feeds a branch the designer wrote. This is what we mean by [intelligent automation](https://farside.works/services/artificial-intelligence/intelligent-automation/).

At the far end, an agent is given a goal and a set of tools (search this system, read that record, call this API) and works out its own sequence, so two runs on similar inputs may follow different routes.

Each move along the line trades predictability for flexibility. A fixed path can be tested exhaustively, timed, priced and explained to an auditor, whereas a path the model chooses can handle cases the designer never imagined and can also do things the designer never imagined.

## Six questions that decide it

**Can you draw the path?** Ask the people doing the work to describe it. A description like "first we check A, then if B we do C" is a workflow, however many branches it has, while "it depends what we find, so we look around until it makes sense" suggests there may be an agentic step in it.

**Is the variability in the inputs or in the path?** Messy inputs such as free-text emails, scanned forms and inconsistent formats are often mistaken for a sign that agents are needed. A model step that reads a messy input and returns clean fields deals with input variability inside a fixed path, and agents are meant for variability in the path itself.

**What would a wrong action cost, and could it be undone?** A workflow can only do what its designer wrote, but an agent with write access can do anything its tools permit. Irreversible or regulated actions (payments, customer communications, changes to master data) belong in deterministic steps with approval, whatever sits upstream of them.

**Who needs to understand what happened?** When an auditor or a customer may ask why a case was handled in a particular way, a fixed path gives a short answer. An agent's answer is a trace of model decisions that can be recorded and reviewed but takes more effort to read.

**What are the volume and the latency budget?** An agent might make three model calls for one case and fifteen for the next. Cost and duration per case therefore become distributions with long tails, which is a real constraint for high-volume, time-sensitive work.

**How will you test it?** A workflow is tested path by path, whereas an agent is tested by outcome across a set of representative cases, with checks on which tools were used and how many steps were taken. That is achievable but takes more work, and it never reaches full coverage.

| Signal | Points to a workflow | Points to an agent |
| --- | --- | --- |
| Process description | Steps and branches can be listed | "It depends what we find" |
| Source of variability | Inputs vary, path is stable | Path itself varies per case |
| Actions taken | Writes, payments, external messages | Reading, searching, gathering evidence |
| Reversibility | Hard or impossible to undo | Easy to undo, or no side effects |
| Audit expectation | Must be explained simply | A reviewed trace is acceptable |
| Volume and timing | High volume, tight response time | Lower volume, minutes are acceptable |
| Exception share | Few exceptions | Exceptions are the work |

No single row settles the question, and the common case of a process with stable steps and one investigative stage sits between the two columns.

## The hybrid that usually wins

For most enterprise processes, the design we would try first puts a workflow on the outside and, if one is needed at all, an agent on the inside.

The workflow owns everything that has to be dependable, meaning the state of each case, timers and retries, the order of stages, human approvals and every write to a system of record. A [workflow orchestration](https://farside.works/services/process-automation/workflow-orchestration/) engine is built for this, and we cover the mechanics in [long-running workflows](https://farside.works/insights/long-running-workflows/).

At the stage that calls for investigation, the workflow hands an agent a narrow brief made up of one question to answer, read-only tools, a limit on steps and spend, and a required output format. The agent returns findings and a recommendation without acting on them, and the workflow then validates that output, sends it for approval where policy requires and carries out the action in a deterministic step.

This gives the agent freedom where freedom costs little (looking things up) and takes it away where it is expensive (changing things). It is consistent with the principle of [giving an agent one job and only the keys it needs](https://farside.works/insights/one-job-agents/), and the related choice of underlying automation technology is discussed in [our comparison of RPA with APIs and agents](https://farside.works/insights/rpa-apis-or-agents/).

## Invoice discrepancies at a manufacturer

Take a mid-size manufacturer whose accounts payable team processes supplier invoices, where the finance director asks for "an AP agent" to handle invoices from receipt to payment.

When the team maps the work, most invoices turn out to follow one path. The invoice is received and its fields extracted, then it is matched against the purchase order and the goods receipt (the three-way match), and if everything agrees within tolerance, payment is scheduled. That is a flowchart, and although extraction needs a model because invoices come in many layouts, the path stays the same, so this part is a workflow with one model step.

The rest of the invoices fail the match, and those take up most of the clerks' time, because the quantity differs from the goods receipt or the price differs from the purchase order. Resolving one of them means looking around for a later partial delivery, a price amendment agreed by email, a credit note already issued, or a unit-of-measure mismatch between the supplier's "box" and the ERP's "each". Which of these to check, and in which order, depends on what each check turns up, and that kind of path variability is a reasonable place for an agent.

The resulting design has three parts. An outer workflow handles receipt, extraction, matching and payment scheduling. When a match fails, it calls a discrepancy agent that has read-only access to purchase orders, receipts, the supplier's invoice history and the buyer's mailbox folder for that supplier, is limited to a fixed number of tool calls and has to return a structured finding. That finding gives the probable cause, the evidence with record identifiers and a proposed resolution from a short list (pay as invoiced, pay the matched amount, hold and query the supplier, route to the buyer). A clerk then reviews it and approves or changes the resolution, and the workflow carries it out.

Had a single agent been in charge from reading the invoice through to scheduling the payment, a model would have controlled the one irreversible step, for invoices that mostly never needed a decision. The hybrid uses the agent only on the exceptions and never lets it move money, and it leaves a record that a controller can follow. Whether it works is judged by how long discrepancies take to resolve, how often clerks accept the proposed resolution unchanged and what each investigated invoice costs.

## What agents cost that workflows do not

An agent needs tools that are safe to hand to a model because they are narrowly defined and well described and their permissions are scoped to the task, and building them is integration work. It needs limits on steps and budget, because a loop that fails to converge keeps running until something stops it. It also needs traces detailed enough to reconstruct why each step was taken, a test set scored on outcomes that is rerun whenever the model or a tool changes, and a defined handoff to a person for cases it cannot conclude.

These costs are a reason to use agents where they replace real investigative effort and to turn them down where a flowchart would do. Our own position has a limit, in that the boundary keeps moving, and as models grow more reliable and tooling matures, more work will become safe to hand over. The questions above will stay the same, though the answers should be revisited as evidence comes in.

## What to do next

1. Choose one process that someone has proposed for an agent, and have the people who do the work walk through twenty recent cases.
2. Write down the steps actually taken in each case, and count how many cases followed the same path.
3. Note whether each step reads or writes, and whether each write can be reversed.
4. Draw the common path as a workflow and note which steps need a model to interpret their input.
5. Examine the cases that left the common path. If they share an investigative pattern, define it as a single agent brief covering the question, the read-only tools, the step limit and the output format.
6. Keep every write and every approval inside the workflow.
7. Agree how success will be measured before you build, and assemble the test set from the twenty cases plus the next hundred.

If step 2 shows that nearly every case follows the same path, then [business process automation](https://farside.works/services/process-automation/business-process-automation/) with a model step is the right tool, which is a good result. If step 5 reveals a real investigative pattern, you have a well-scoped first use for [agentic AI](https://farside.works/services/artificial-intelligence/agentic-ai/).
