Agent or workflow? How we decide on every build

Most problems need a workflow with one smart step, not an agent. Here is the test we run before we write a single prompt.

Pedro Alves

Co-founder, Head of Engineering

·

·

4 min read

On this page

Almost every scoping call now starts the same way. Someone has seen a demo of an agent booking meetings, answering email and updating the CRM on its own, and they want one. Sometimes that is the right answer. More often, what they need is a workflow with one or two AI steps in it, and the difference matters for cost, reliability and who can maintain it after we leave.

Here is the test we run on every build, usually in the first week of an audit.

The difference, in one sentence

A workflow follows a path we drew in advance. A model might classify, extract or draft at certain points, but the order of steps is fixed and every run looks the same.

An agent decides its own path. It gets a goal and a set of tools, and it chooses which tools to call, in which order, and when it is done.

Both use the same models. What changes is who holds the plan: us, at build time, or the model, at run time.

Four questions we ask

1. Can you draw the process on one page?

If the client’s team can describe the work as a sequence of steps, even with a few branches, it is a workflow. Lead routing, invoice entry, onboarding and weekly reporting almost always pass this test. The steps might need judgement (“is this lead a fit?”), but the judgement happens at a known point.

If the honest answer is “it depends on what we find”, that is a hint towards an agent. Researching an account before a call, or resolving a support issue that could need any of six systems, are good examples.

2. How many tools does the step need?

A step that reads an email and returns a label needs no tools. A step that reads an email, looks up the order, checks the returns policy, drafts a reply and decides whether to refund needs four. Once the number of possible tool calls passes three or four, and their order varies, an agent starts to earn its keep.

3. What does a wrong answer cost?

Workflows fail loudly. If a step breaks, the run stops, we get an alert and nothing reaches a customer. Agents fail quietly: they can take a plausible but wrong path and finish confidently.

So the higher the cost of a wrong action, the more we lean towards a workflow, or an agent that drafts and waits for a person to approve. Anything that moves money or speaks to a customer gets a human step by default.

4. Who will maintain it?

This is the question people skip. A workflow in n8n or Make can be read by anyone on the client’s operations team. They can see each step, rerun a failed execution and change a field mapping without calling us.

An agent’s behaviour lives in a prompt, a tool list and the model’s judgement. Changing it safely needs evaluation sets and someone who knows how to read a trace. Some clients have that person. Many don’t, and we would rather hand over something they can own.

What we usually build

Across our last 40 builds, 31 were workflows with one or more AI steps, six were workflows that handed one hard step to a small agent, and three were agents from end to end.

The hybrid pattern is our favourite. The workflow does the predictable parts: trigger, fetch, write to the CRM, notify. At the one step that genuinely varies, it calls an agent with a narrow goal and only the two or three tools it needs, then takes back a structured answer and carries on. The client gets the flexibility where it matters and a readable, debuggable workflow everywhere else.

A quick example

A SaaS client wanted an “SDR agent” to handle inbound demo requests. When we mapped the process, it had five steps: enrich the company, score the fit, route to the right rep, create the deal and send a confirmation. Only the scoring needed judgement.

We built a workflow with one AI step that scores the lead against their ideal customer profile and explains why. It runs in about two seconds, costs a fraction of a cent per lead and has not needed a fix in four months. An agent would have worked too. It would have been slower, more expensive and much harder for their RevOps lead to change.

The short version

Start with a workflow. Add AI at the steps that need judgement. Reach for an agent only when the path itself has to be decided at run time, and give it the fewest tools that will do. If you can’t explain why it needs to be an agent, it probably doesn’t.

agents

workflows

architecture

Share

Copy link

Portrait of Nisha Kapoor

Pedro Alves

Co-founder, Head of Engineering

Decides whether a build needs an agent or a workflow, and usually picks the workflow.

Keep reading

Keep reading

All posts

Buy template

Create a free website with Framer, the website builder loved by startups, designers and agencies.