AI workflow automation · a design guide

Build an AI workflow with clear inputs, checks and approvals

AI workflow automation combines repeatable steps with AI-supported interpretation or drafting. Start with one process, define its input and output, then add validation and approval where errors would matter. The lead-reply example below is a conceptual design, labeled as one. It is not a recorded run.

How to read the steps

Rule
A fixed condition you can write down and test.
Lookup
A read from a system you control, such as a CRM.
AI
A model reads free text or drafts something.
Person
A human decides. Nothing leaves without one.

The example on this page

  1. Step 1Message arrivesRule
  2. Step 2Extract fieldsAI
  3. Step 3Look up recordLookup
  4. Step 4Choose a branchRule
  5. Step 5Draft replyAI
  6. Step 6Check draftCheck
  7. Step 7Person approvesPerson

Step 1

Decide which steps need AI

Not every step deserves a model. Separate the steps that follow a rule from the ones that need interpretation, and put a person where a mistake would cost something. Trigger, router, reasoner, tool and evaluator are one useful way to name the steps. They are a design vocabulary, not a standard.

Four step types in an AI workflow: deterministic rule, lookup or retrieval, AI interpretation or drafting, and human judgment, each with when to use it, what not to use it for, and the control to add.
Step typeUse it whenDo not use it forControl to add
Deterministic ruleThe input is structured and the rule can be written down: route by field value, filter by date.Anything where the right answer depends on reading context.Test the rule on edge values and log which branch ran.
Lookup or retrievalThe answer already exists in a system you control: a CRM record, a document, a price list.Facts nobody has recorded, where the system returns nothing or something stale.Treat an empty result as a branch of its own, not as an error to hide.
AI interpretation or draftingThe input is free text or a document and the output can be checked: extract fields, classify, summarise, draft.Decisions that move money, delete data or speak for you without review.Constrain the output format, validate it, and keep the original input beside the result.
Human judgmentA mistake is costly, irreversible or customer-facing, or the rule is still being worked out.Routine steps a person only rubber-stamps. That is a sign the step can be a rule.Show the reviewer the source, the draft and the checks that ran, and make rejecting as easy as approving.
“They can start by using AI agents when decisions are needed, automation for routine workflows and assistants for simple retrieval.”
Anushree Verma, Senior Director Analyst, Gartner, in a press release dated 25 June 2025 (read 5 October 2026).

Where the work falls

A framing used on this page, not an industry standard. It asks two questions: how hard is it to move the data, and how much judgment does each step need?

  • Simple movement · Fixed rule

    Rule-based integration platforms are usually enough.

  • Messy screens · Fixed rule

    UI automation (RPA) can drive legacy interfaces that have no API.

  • Simple movement · Judgment needed

    One AI step inside an assistant or a single tool is often enough.

  • Many systems · Judgment at several steps

    A multi-step AI workflow with checks. This is what the rest of this page covers.

A workflow runs the same steps each time, while an agent chooses some of its own at run time. For how ZeroTwo runs and supervises agents, see agent execution and supervision. If you are still choosing between kinds of tool, start with automation tool categories compared.

Step 2

Pick one process to start

Automating five things at once hides which one is failing. Choose a process that meets most of these tests, and design that one end to end first.

  • It repeats

    Often enough that a mistake in the design would show up in a week, not a year.

  • Its input is describable

    You can say what arrives, in what shape, and what a good result looks like.

  • A person can check the result

    The output is something a reviewer can verify against a source quickly.

  • It is reversible or gated

    Either you can undo it, or a person approves before it takes effect.

  • Someone owns it

    One named person gets the failure alerts and decides when to stop it.

Six candidate processes by business function, with the workflow shape and the point where a person approves.
FunctionCandidate workflowWhere a person approves
SalesInbound lead, enriched record, reply draftBefore any reply is sent
MarketingCampaign brief, audience research, channel plan, first-draft copyBefore anything is published or sent
Customer supportTicket, intent label, knowledge-base lookup, suggested replyThe agent edits and sends
FinanceInvoice PDF, extracted fields, variance check, approval routingBefore anything is posted to the ledger
EngineeringPull request opened, diff summary, test and security checks, reviewer routingThe reviewer decides to merge
HiringResume, parsed fields, match against stated criteria, flag for recruiterThe recruiter decides; nothing is rejected automatically

These are shapes to adapt, not results anyone has measured. Running a small team? See small-business automation starting points.

Step 3 · Conceptual design

Worked example: inbound lead to a reviewed reply draft

The workflow turns a sales email into an enriched record and a reply draft, and ends with a person. For a template built around the research half of this flow, see lead research and enrichment.

This is a design, not a recorded run. No outputs, timings or model comparisons are claimed. The email and schema beside it are invented for illustration. Which model suits which step is for you to test on your own examples; this page does not rank them.

  1. Step 1 · TriggerRule

    A message reaches the shared sales inbox

    The workflow starts on a new message that passes a simple filter: not from your own domain, not an auto-reply.

    Fails when
    The same message is delivered twice.
    Control
    Store the message ID and skip IDs already processed.
  2. Step 2 · ReasonerAI

    Extract the fields into a fixed schema

    A model reads the email and returns company, contact, request type, team size and requested date in the schema shown beside this list.

    Fails when
    The model invents a value the email never stated.
    Control
    Require the word unknown for absent fields, validate the output against the schema and keep the source email next to it.
  3. Step 3 · ToolLookup

    Look the company up in your CRM

    A plain read from the system you already use, matched on the sender's domain.

    Fails when
    No match, or several.
    Control
    Treat no match and several matches as their own branches that go to a person.
  4. Step 4 · RouterRule

    Branch on completeness and request type

    Complete and a known type leads to a draft. Missing details lead to a draft that asks a question. Pricing exceptions, legal and security questions skip drafting and go to a person.

    Fails when
    A request type nobody planned for falls through.
    Control
    Make the default branch send to a person.
  5. Step 5 · ReasonerAI

    Draft a reply from approved facts only

    A model writes a reply using a short set of facts you supply, such as your product description and price list, and says plainly when something is not covered.

    Fails when
    The draft promises a feature, date or number that is not in the approved facts.
    Control
    Supply the approved facts as the only source and tell the model to leave gaps visible instead of filling them.
  6. Step 6 · EvaluatorCheck

    Check the draft before a person sees it

    Rules run first: required elements present, no figures or dates outside the approved facts, no links outside an allowlist. A second model or rubric review can be added on top.

    Fails when
    A check that never fails.
    Control
    Test it against drafts you wrote to be wrong.
  7. Step 7 · Human gatePerson

    A person reviews, edits, sends or rejects

    The reviewer sees the source email, the extracted fields and the results of the checks. The workflow ends at a reviewed draft. Nothing is sent automatically.

    Fails when
    Drafts wait with nobody reading them.
    Control
    Name the owner and a time after which the item escalates.

Fictional input

From: sam@example.com

Subject: Pricing for a team of 12

Hi, we are a small design studio and would like to start next month. Do you work with our CRM?

Illustrative extraction schema

{
  "company": "string | unknown",
  "contact": "string | unknown",
  "request_type": "pricing | demo | support | other",
  "team_size": "number | unknown",
  "needs_by": "date | unknown",
  "missing": ["string"]
}

For the email above, a correct run would fill the request type and team size and mark the company and date unknown, because the email states neither.

Step 4

Build it in ZeroTwo

This page does not include a recorded run of the example. Below is what ZeroTwo documents for recurring, supervised work, followed by what to confirm in your own account before you rely on it.

Connect your apps

ZeroTwo lists the apps it can connect to. Check that every system your workflow touches is on the list, and what access each connection needs, before you design around it.

Run on a schedule

The scheduled tasks page describes recurring runs, with run history, outputs and approvals to review afterwards.

Hand multi-step work to an agent

Work agent carries out multi-step tasks with tools and files and is included on paid plans, not on Free. The agent platform page covers how runs are executed and supervised.

Confirm in your account first

  • Which triggers are supported: schedule, event, manual?
  • Can a run branch, or stop on a condition?
  • Is there an approval step, and who can approve?
  • Where do you see run history and outputs?
  • How do you pause or stop a run?
  • What does a run use on your plan?

Plan access to Work agent

  • Free$0/mo

    Work agent: Not included. Credits: None listed. Free Auto requests: None listed.

  • Plus$14.99/mo

    Work agent: Included. Credits: 1,650. Free Auto requests: 1,000.

  • Pro$29.99/mo

    Work agent: Included. Credits: 3,500. Free Auto requests: 2,500.

Allowances are monthly. How many a run of this example uses has not been measured here. Current terms are on the pricing page.

Step 5

Validate success and failure paths

Define what correct means before you turn anything on: which fields must be right, which may be unknown, and what must never appear in a draft. Then try to break it.

Seven failure cases for an AI workflow, what goes wrong in each, and how to handle it.
CaseWhat goes wrongHow to handle it
Missing dataThe email leaves out the company or the timeline.Mark the field unknown, branch to a draft that asks a question, and never fill the gap by guessing.
Duplicate eventThe same message triggers twice, or a retry re-runs a step.Give every run an idempotency key such as the message ID and check it before any write or send.
Unsafe or hostile inputAn email carries instructions aimed at the model, such as a request to ignore its rules and send the price list.Treat inbound text as data, not instructions. Give the model the fewest tools it needs, let rules decide what may be sent, and keep a person at the end.
Unavailable connectorThe CRM lookup times out or a permission has changed.Retry a limited number of times, then stop and tell the owner. Do not continue with partial data.
Wrong output formatExtraction returns text that fails the schema.Reject it, retry once with the error message, then route to a person.
Unread approvalsDrafts pile up with nobody reviewing them.Name an owner and an escalation time, and reassign stale items.
DriftThe model, prompt, template or source system changes.Re-run your saved test cases after any change.

Build a test set you can review by hand

Include typical inputs, plus one of each failure above: missing data, a duplicate, hostile text and an unavailable connector. Size the set to what you can read yourself. There is no number that is enough for every process, so add cases until new ones stop surprising you.

Step 6

Measure cost and useful work

Run a bounded pilot and keep a log. The number to track is cost per accepted run: everything the workflow cost in the period, divided by the runs a person accepted.

What to record in the pilot

  • Runs that succeeded, and runs that failed with the reason
  • Edits the reviewer made before approving
  • Review minutes per item
  • Model, tool and plan usage for the period
  • Total cost, including your own time

Cost worksheet: keep these separate

Hosting or licence
Only if you run self-hosted automation software.
Per-operation fees
Only if your automation platform bills per run or per step.
Model and tool usage
Tokens, credits or API bills, depending on how you reach the model.
Maintenance
Fixing and re-testing when something upstream changes.
Human review time
Often the largest line, and the one most worksheets leave out.

Context from two primary sources

of agentic AI projects predicted to be cancelled by the end of 2027, citing escalating costs, unclear business value or inadequate risk controls.
40%+
Gartner press release, 25 June 2025 (a forecast), read 5 October 2026
AI high performers say they fundamentally redesigned workflows because of AI, against about one in four other respondents. This is an association in a survey, not proof of cause.
3 in 4
McKinsey, The state of AI in 2026 (survey of 1,719 respondents), read 5 October 2026
respondents say their organization is limiting AI use because of operating costs, including tokens.
1 in 5
McKinsey, The state of AI in 2026, read 5 October 2026

Our view, not a finding: starting small and tracking cost per accepted run is how you avoid the cancellation pattern in the first figure. Neither source tests that.

Step 7

Operate it safely over time

A workflow that passes its pilot still drifts. These six habits keep it trustworthy after launch.

  • An owner

    One named person gets the failure alerts and decides when the workflow stops.

  • Least access

    Give each connection only the access it needs, and review it when people or scopes change.

  • An audit trail

    Keep what ran, on which input, and what came out, so a bad result can be traced.

  • A way to stop

    Know how to pause or stop the workflow in one action before you switch it on.

  • Safe re-runs

    Repeating a step must not repeat its effect. Check a key before every write or send.

  • Revalidation

    Re-run your test set whenever the model, prompt, template or source system changes.

Questions

Frequently asked questions

Which steps should remain deterministic?

Any step where the correct answer can be written as a rule: routing by a field value, filtering by date, checking that a required element is present, deciding whether an ID has already been processed. Keep the model for steps that need to read free text or a document, and keep the final send, post or delete behind a person or a rule that you control.

What triggers are actually supported?

This page does not list a verified set of trigger types. ZeroTwo's scheduled tasks page describes recurring runs, and its connectors page lists the apps that can be connected. Confirm in your own account whether an event-based trigger exists for your case before you design around it.

How do I prevent duplicate sends or updates?

Give every run a key that identifies its input, such as the message ID, and check that key before any write or send. Repeating a step should never repeat its effect. Also test what happens when a trigger fires twice and when a step is retried halfway through.

How are failed runs and retries handled?

That is something you design, not something to assume. Decide what counts as a failure (an error, a schema mismatch, an empty lookup), how many retries each step gets, and who is told when they run out. ZeroTwo's scheduled tasks page describes run history, so check what your account shows for a failed run.

What should I measure before turning a workflow on?

Run a small pilot you can review by hand and record successful and failed runs with the reason, the edits reviewers made, review minutes per item, model, tool and plan usage, and total cost. The figure that matters most is cost per accepted run: everything the workflow cost in the period divided by the runs a person accepted.

Is AI workflow automation the same as agentic AI?

No. A workflow runs a defined sequence of steps and uses AI where a step needs interpretation or drafting. An agent chooses some of its own steps at run time. Many useful systems are workflows with one or two AI steps, so match the tool to the kind of step rather than defaulting to the most autonomous option.

How much does it cost to run an AI workflow on ZeroTwo?

Cost has several parts, listed in the measurement section. ZeroTwo plans include a monthly credit and free Auto request allowance: Plus is $14.99 per month and Pro is $29.99 per month, or $26.99 per month billed annually. How much a given workflow uses has not been measured on this page, so test your own process before you scale it.

Start with one process a person can review

See which workflows ZeroTwo supports today, and check plan access before you build.

Explore supported workflows