AI agents, plainly

Agent, automation or script: which one the job needs

Most back-office jobs need a model in only a step or two. Find those steps first, and build the rest as plain code.

By the duyan team · Updated · 4 min read

AI agents, plainly

In short

  • Build most steps as plain code, which is cheap and does the same thing each time.
  • Use a model where a step must read text written for people, such as emails and scans.
  • Use an agent only where the steps themselves change from case to case.
  • A step that runs a few times a month may be best left to a person.

Our view: one or two steps, rarely the whole job

Most jobs sold as agent work have one or two steps that need a model. The rest is moving data, checking it against rules and sending it on.

We build those parts as plain code. We add a model only where a step must read or write language.

We use an agent only where nobody can list the steps in advance. In back-office work, that is uncommon.

Four terms, and what each one means

A script is code that follows fixed steps. It might copy rows between systems, or check an invoice total against its lines.

An automation joins scripts to triggers, such as "when an email arrives" or "every night at 2". It might run in a no⁠-⁠code tool or in your own code.

A model step is one call to a language model inside that automation. It reads a messy input, such as a scanned form, and returns tidy fields.

An agent is a model that chooses its own next steps and acts through tools. It decides what to look up, what to try next and when it's done.

Four terms, and what each one means
Script or automationOne model stepAgent
FollowsRules you wroteYour rules, with a model reading one partA path the model picks
Good atMoving and checking dataEmails, PDFs and scansCases whose steps differ each time
Cost per runClose to nothingA model fee per callModel fees for many calls
How it failsStops with an errorA wrong answer that looks rightWrong turns that build on each other

Three questions for each step

Write the job down step by step, as the person doing it now would. Then ask three questions about each step.

Could you write the rule on one page? If yes, it's a script. "If the total is over $5,000, send it to the finance lead" needs no model.

Does the step have to read text written for people? Emails, scanned forms, contracts and free⁠-⁠text notes are hard for rules. That is where one model step earns its fee.

Does the path itself change from case to case? Some cases need three lookups, and others need ten in a different order. Only then does the job need an agent.

A worked example

Take a customer who emails to change their delivery address. The trigger, the lookup in your customer system and the update are all plain code.

Two steps need a model. One reads the email and pulls out the customer and the new address. The other drafts a reply, which a person approves before it goes.

Nothing here needs an agent. The steps are the same each time, so a fixed workflow does the job and is easier to test.

Why the split matters

Code costs almost nothing per run and answers in a blink. A model call has a fee for each piece of text in and out, and takes seconds.

When plain code fails, it stops with an error. A model step can return an answer that looks right and is wrong.

So every model step needs checks and a test set, meaning past cases with known answers. Fewer model steps leave less to test and less to go wrong.

Agents add one more risk. Each step can build on a wrong turn, and the same input can take a different path next time.

When we'd choose differently

Some jobs are mostly reading and judgement, such as research across many sources. Finding why an order failed across five systems is another.

There the steps change too much to write down, so an agent can earn its cost. OpenAI's guide makes a similar case for complex decisions, rules that are hard to maintain and messy text.

Rules can also cost more than a model. If your team rewrites them weekly for new formats, a model step may be cheaper.

A step can also be too rare to automate. If it happens five times a month, a person with a good checklist may be the cheapest answer.

For simple personal tasks, a no⁠-⁠code tool with a built⁠-⁠in AI step is often enough. Sorting your own inbox needs no build at all.

What to do this week

  • Write the job as a list of steps, with the person who does it now.
  • Mark each step as rule, reading or judgement.
  • Count how often each step happens and what a mistake there would cost.
  • Automate the rule steps first. They often save the most time for the least risk.
  • Add a model only to the reading steps, and test them on past cases.
  • Keep any step that sends, pays or deletes waiting for a person.

If a builder proposes an agent for the whole job, ask which steps need one. A clear answer names one or two.

Have a back⁠-⁠office job in mind?

We build software that does the retyping, with a model only in the steps that need one. A 2⁠-⁠week pilot is $2,400, and builds start at $15,000, fixed.

Sources

  1. Anthropic, "Building effective agents" (19 December 2024), anthropic.com (accessed 5 November 2026)
  2. OpenAI, "A practical guide to building agents", cdn.openai.com (accessed 5 November 2026)
  3. OpenAI, "Evaluation best practices", developers.openai.com (accessed 5 November 2026)

Tell us the job

Bring a job to build or a role to fill. We reply within one working day, with questions or a next step.