AI agent vs workflow

AI Agents vs Workflows

Choose a deterministic workflow or an agent based on uncertainty, not fashion.

DIFFICULTY
Beginner
EST. TIME
35 min
UPDATED
2026-08-19
On this page
  1. 01Definition
  2. 02Why it matters
  3. 03Step by step
  4. 04Build it
  5. 05Failure modes
  6. 06Production notes
  7. 07Sources

Learning objectives

  • Define workflow and agent in operational terms
  • Match autonomy to task uncertainty and action risk
  • Choose the simplest architecture that can meet the outcome

Prerequisites

Basic understanding of API-based software

Answer first

Canonical definition

A workflow follows a predefined control path, while an AI agent uses a model to choose the next action from an allowed set based on observations, state, and a termination condition.

Operating context

Why it matters

Most business automation does not need open-ended planning. Deterministic orchestration is easier to test, operate, and audit.

Agents earn their complexity when the path varies, inputs are unstructured, and a useful decision cannot be enumerated in advance.

Method

Step by step

  1. 01

    Map the path

    List known steps, branches, tools, exceptions, and the information needed at each decision.

  2. 02

    Locate uncertainty

    Identify which decisions require interpretation rather than a stable rule or lookup.

  3. 03

    Score action risk

    Separate read-only analysis, reversible writes, external communication, and high-impact irreversible actions.

  4. 04

    Choose the minimum autonomy

    Use a workflow by default, add a model-assisted decision where needed, and introduce an agent loop only when repeated adaptive action is necessary.

Hands-on lab

Run an architecture decision review

Compare a rules workflow, model-assisted workflow, and agent for the same business task.

Deliverable

A decision record covering uncertainty, tools, state, failure impact, evaluation method, and operating cost.

What breaks

Common failure modes

  • F1Using an agent for a stable sequence of API calls
  • F2Hiding business rules inside a long system prompt
  • F3Granting broad tool access before proving the task boundary

Beyond the demo

Production notes

  • Every agent needs a maximum step count, time or cost budget, and explicit termination states.
  • Keep deterministic validation and policy checks outside the model whenever possible.

Further reading

Sources

  1. [1]Anthropic: Building effective agents

Related Tenten resources

From capstone to production

A working demo is the beginning of the engineering problem.

Tenten helps teams scope one agentic workflow, integrate real data and permissions, define evals and handoffs, and own the path through launch and on-call.