Blog · 2026-06-17

How to automate a business process with AI agents

Six steps in order, then one process taken end to end on a system we run and measured ourselves.

Get my free blueprint

how to automate a business process with AI agents

Automating a business process with AI agents takes six steps: map every step and handoff, separate the judgement steps from the deterministic ones, give the agent typed tool access to each system it touches, put an approval gate in front of anything irreversible, add an independent verification step, and alert when work completes but is never delivered.

The sixth step is the one teams skip. Across our own fleet, eight scheduled jobs have reached a state where the work finished correctly and then had nowhere to go.

Most teams automate tasks. The value sits one level up, in the sequences that span several systems and currently depend on a person to carry work from one step to the next. A task is “send the follow-up email”. A process is “qualify the lead, enrich it, assign it, book the meeting, send the prep, log it”. The steps below are the order we use, and the last section walks one real process through all six.

Step 1: Which process should you automate first?

Pick the process that runs most often, follows a recognisable pattern, and already has a digital footprint in systems with APIs. Frequency is what makes the build worth doing; pattern is what makes it possible; API access is what makes it buildable at all. A process that runs twice a year, or lives entirely in phone calls and paper, fails at least one of the three and should be left alone.

One more filter: prefer a process where you can tell, from the outside, whether a run was correct. If nobody can look at the output and say yes or no, you cannot verify the agent and you will end up supervising it forever.

Step 2: How do you map a process an agent can run?

Write down every step, every decision, every system touched, and every point where work waits for a person. Most teams have never actually done this — the process exists in the heads of the people running it. The map is the specification; if two people on the team describe the process differently, that disagreement is a bug you have to resolve before any code is written.

Mark each step with what triggers it, what it needs as input, what it produces, and how long it currently waits. The waiting is the part an agent removes first.

Step 3: Which steps should the agent decide, and which stay deterministic?

Go through the map and split it. Steps with one input, one transformation and one output should be code or an existing automation tool — they will be cheaper and more reliable than a model. Steps that require reading something unstructured and choosing what happens next are the agent's job. A process where every step is deterministic does not need an agent at all, and saying so is part of the work.

This split is also what keeps the system debuggable later. When a run goes wrong, you want to know immediately whether a judgement was wrong or a script was.

Step 4: How does the agent reach each system?

Every system in the map needs a typed contract: what the agent can call, which arguments are valid, what comes back, and what the tool refuses to do. Write the contracts before the prompts. This is whatModel Context Protocol standardises, and it is also where access scoping belongs — read-only where the process only reads, write access only on the steps that genuinely write.

Step 5: Where does a human still approve?

Put a gate in front of anything irreversible or externally visible. In our own systems the gate is an agent whose only job is to approve or reject before work reaches the build stage; nothing proceeds without passing it. The gate is not a review of the finished output — it is a check on the input before effort is spent, which is what keeps it fast enough that people actually use it.

Step 6: How do you verify the process actually ran?

Two separate checks, and most teams only build the first. The first is verification: an independent step that reads the acceptance criteria itself and can block a result. It cannot be the same agent that produced the work, because a producer already believes its output is correct. The second is a delivery check: did the finished work reach its destination? A job that completes successfully and delivers nowhere looks healthy in every model-level metric and is worth nothing to the business.

A worked example: our own publishing process, end to end

This is the process running on our own host, in the order the six steps above describe. It publishes this blog.

  1. Trigger. A scheduled job fires twice a week — Tuesdays and Fridays at 09:00 — and can only select a topic from a pre-approved set of niches, after checking the topic is not a duplicate of something already published.
  2. Approval gate. The operator agent is the hard gate between idea and build. Nothing reaches the drafting stage without passing it.
  3. Draft. The content-studio agent turns the approved topic into a publishable draft. It has logged 457 sessions, more than any other agent in the fleet.
  4. Verify. A separate QA agent checks the draft against the manifest. It does not know what the drafting agent intended, which is the entire point — it reads the criteria itself. A daily sweep catches anything sitting unverified.
  5. Ship. The publisher agent posts only QA-verified work. It refuses to publish anything unverified and refuses to silently skip a platform that failed, so a delivery failure surfaces as a failure rather than as silence.
  6. Watch. A continuous watcher moves verified work forward, a daily publisher health check confirms the chain is alive, and a second client track runs the same pipeline on Mondays and Thursdays.

The architecture and the constraints are written up in full in thecontent publishing pipeline case study. The same shape — gate, do, verify, deliver — is what thelead qualification agent build uses, with scoring in place of drafting.

When not to automate a business process with AI agents

If the first two apply, a hosted tool may be the whole answer — theno-code AI agent platforms comparison covers where those stop being enough. If you are trying to size the work,how long it takes to build a production AI agentbreaks the timeline down by stage.

The worked example, measured

The worked example, measured — observed on Our own production host — a 19-agent Hermes fleet on one Fedora 42 VPS (4 vCPU / 15 GiB), surveyed read-only over SSH, 27 July 2026
Agents in the publishing chainapproval gate, drafting, verification, publishing4
Sessions logged by the drafting agentover 68 days, 20 May – 27 July 2026457
Scheduled publish cadencesplus a second client track on different days2 / week
Scheduled jobs across the fleet34 ok, 6 in error, 7 not yet run at survey time47
Service restartsfive gateway services, longest active since 13 July 20260

Source: Our own production host — a 19-agent Hermes fleet on one Fedora 42 VPS (4 vCPU / 15 GiB), surveyed read-only over SSH. Observed .Capability figures from a system we run ourselves. This host carries no cost ledger and no client-side outcome measurement, so nothing here is a savings figure.

Process automation questions

What is the difference between automating a task and automating a process?

A task is one step with one owner: send the follow-up email. A process is the chain of steps, handoffs and decisions between a trigger and a finished outcome, and the handoffs are usually where the time goes. Automating a task removes minutes from one person. Automating a process removes the waiting between people.

Where does rule-based workflow automation stop being enough?

At the first step that needs a judgement on unstructured input. Zapier, Make and n8n are the better tool for deterministic chains — a form submission creating a record — and they are cheaper and more reliable at it. An agent earns its place when a step requires reading something unstructured and deciding what happens next, and most real processes are a mix of both.

What happens when one step of an automated process fails?

The design question is whether the process stops loudly or continues quietly. Every step needs a defined failure behaviour: retry, escalate with the record attached, or halt the chain. The failure mode to plan for is the silent one — a step that reports success while producing nothing anyone receives, which no model-level metric will show you.

Which parts of a business process should stay human?

Anything irreversible, anything with a relationship attached, and anything where being wrong is expensive and hard to detect. Approving a topic, signing a contract, sending a message to a key account, and deciding whether an exception is acceptable are approval gates, not automation targets. The agent prepares the decision; a person makes it.

Amit Kumar

Founder of I Am Agent Man. Builds and runs production AI agents on Hermes, OpenClaw, and MCP — self-hosted, model-agnostic, with persistent memory and hard cost ceilings.

Get your agent blueprint — free.

Tell us what eats your week. We’ll come back with a concrete plan for the first agent to build and what it’ll automate — before you spend anything.

Goes straight to hello@iamagentman.com — we read every message ourselves. Prefer to answer three questions instead?Build your blueprint.

Talk to the studio

One message · reply within one business day