Does this task actually
need an agent?

Separate a fixed workflow from useful autonomy. Then ask what the extra flexibility needs to prove.

Before you start

Know what an API does. No AI framework experience needed.

You’ll leave with

A clearer way to choose between a workflow and an agent.

Who chooses the next step?Conceptual example
Workflow
Read requestSearch policyDraft reply

The application sets the sequence.

Agent
Read requestChoose next stepUse a tool
Review result; choose again

The model chooses a next step from permitted options.

Conceptual control flow. A workflow can also contain model calls.

A difference in control, not a measured performance comparison. Adapted from the distinction in Anthropic’s architecture article.
On this page

Start with the choice the software must make

A team wants an AI assistant to prepare a response to a support request. It must read the question, search an approved policy collection and send the draft to a person. Calling it an “agent” does not settle how it should work. The more useful question is whether the software needs to choose its own next step.

For a technology enthusiast or business reader, this distinction helps make a proposal concrete. For a developer, it identifies which parts need ordinary program logic and which parts might benefit from model judgment. Both readers can ask for the same evidence: show the task, the boundaries and the behavior when something goes wrong.

A practical vocabulary

Anthropic's architecture article distinguishes workflows with predefined code paths from agents that dynamically direct their processes and tool use. It also recommends starting with simpler solutions. This is a useful working vocabulary rather than a universal definition of every product called an agent.

Use three questions to examine a design. Is the sequence known? Does information need interpretation? Must the next step change in response to intermediate results? The answers matter more than the marketing label.

PatternFictional taskMain uncertainty
Business ruleMark a record overdue after a known deadlineWhether the underlying record and date are correct
AI-assisted workflowClassify a request, retrieve policy, prepare a draft for reviewWhether interpretation and the proposed draft are supported
Tool-using agentInvestigate an unfamiliar error by selecting from permitted diagnostic toolsWhether the changing sequence stays useful and within authority

These examples are editorial illustrations, not client implementations or performance results. A fixed workflow may contain several model calls. A system that calls one tool is not automatically autonomous in a meaningful sense.

Three examples worth separating

Consider a weekly report assembled from a stable set of database queries. The sources and sequence are already known. A model might help explain the finished numbers, but it need not decide which systems to access. A clear workflow keeps the retrieval and arithmetic inspectable.

Now consider a request whose wording varies: “Can I move this appointment?” A model could classify the intent and extract a proposed time. Program logic can then check the booking, permissions and availability. A person or explicit user confirmation can approve the change. Variable language alone does not require an open-ended planning loop.

Finally consider diagnosing a failed data pipeline with several possible causes. The next diagnostic step may depend on the previous result. A bounded agent could choose among read-only tools that inspect approved logs, schemas and job states. Even here, the useful scope may stop at a diagnosis and recommended action. Giving the same process production write access is a separate decision requiring separate evidence.

The business question: what flexibility earns its keep?

Ask a project proposer to name the uncertainty that requires planning. “AI can do it” is not an acceptance criterion. “The next diagnostic query depends on which dependency failed” is concrete enough to test.

Then ask what would happen with a smaller solution. Could an existing product, a query, a search interface or an AI-assisted form handle the task? Compare on the same representative cases. Complexity can be justified, but a convincing demonstration should show what it buys and what it costs to operate.

Avoid reducing the decision to the number of steps an agent can complete. A long chain that confidently uses the wrong record is less useful than a short workflow that asks for missing information. Some successful outcomes are stops: an access denial, a request for clarification or an escalation to a person.

The developer question: what happens after interruption?

If an execution pauses, times out or receives the same event twice, a design must say what state survives and which actions may repeat. Framework persistence can help implement part of that behavior. LangGraph's official persistence documentation distinguishes thread checkpoints from cross-thread stores and warns that in-memory persistence is lost on restart.

Saving state does not automatically make every external action safe to repeat. A checkpoint and a successfully sent email, for example, live in different systems. A retry design needs to reconcile those facts. That is an application responsibility to investigate, not a reason to assume that choosing a framework completes reliability work.

For an initial build, separate read tools from write tools. Validate tool arguments in code. Bound execution time and tool use. Define what evidence a person sees before approval, and whether approval remains valid if the underlying record changes. These are proposed design checks; this article does not report implementing them.

Decide what to evaluate before building

An agent proposal becomes easier to review when its evaluation cases describe behavior rather than enthusiasm. Include an ordinary successful task, missing information, a tool failure, a forbidden action, an interruption and a request outside scope. Write down the expected outcome for each before selecting a model.

The Anthropic agent-evaluation article is a useful primary-source starting point for thinking about tasks, trials and graders. For your own task, inspect traces as well as the final text. A plausible result can hide an inappropriate intermediate action.

A proposed comparison for this journal would run a fixed workflow and a bounded agent over the same synthetic support cases. It would report task outcomes, tool calls, time, API cost and failure categories, with repeated trials for model variability. That comparison has not run. No agent or framework is declared a winner here.

A decision you can explain to another person

Choose a workflow when the sequence can be specified and tested directly. Investigate agentic planning when choosing the next step is itself a valuable part of the task. In both cases, keep access rules, action limits and failure behavior explicit.

For a related concrete example, the retrieval-boundary lab tests which sources may enter context before involving a model. For connected tools, read where MCP ends and application responsibility begins.

Sources and corrections

Published 8 November 2026. The examples are fictional and illustrate design choices. Suggest a correction.

Suggest a correctionSource review · No agent comparison executed
Keep building your understanding

A tool connection is only the beginning.

Next, see where MCP ends and your application’s access decisions begin.

Read about tools and access