<- all tokdocs

Barry Zhang's Checklist: When to Build an AI Agent vs a Workflow

By , founder of Mavric and Apso

View on TikTok ->

Barry Zhang of Anthropic argues that you should not build an AI agent for every task. If you can map the whole decision tree easily, you should build it as an explicit workflow, because that costs less and gives you more control. A TikTok re-post from @agentic.workers quotes this accurately, but the slide behind him lists four questions, and the clip covers only the first.

Where the advice comes from

The clip is an excerpt from Zhang's talk "How We Build Effective Agents" at AI Engineer Summit 2025. The ai.engineer talk page credits him as the speaker, from Anthropic, and summarizes the talk as arguing that agents suit complex, ambiguous, valuable tasks, while predefined workflows give better cost control for clear decision trees.

During the talk he refers to Anthropic's blog post "Building effective agents" ("If you haven't read the blog post"). That post was published on December 19, 2024.

Agent vs workflow: what's the difference?

Anthropic's post defines the two terms:

  • Workflows are systems where LLMs and tools follow "predefined code paths."
  • Agents are systems where the LLM directs its own process and tool use.

The post says agentic systems often trade latency and cost for better task performance. That tradeoff is the reason Zhang gives for not defaulting to agents.

When should you build a workflow instead of an agent?

In the clip, Zhang says "The first thing to consider is the complexity of your task." He continues: "Agents really thrive in ambiguous problem spaces." Then: "if you can map out the entire decision tree pretty easily, just build that explicitly and then optimize every node of that decision tree."

His reason: "It's a lot more cost-effective and it's gonna give you a lot more control."

The TikTok description summarizes this as "Barry Zhang's practical test: if the decision tree is clear, build it explicitly." That is a faithful summary of what he says in the clip.

The full "Should I build an agent" checklist

The slide on screen, titled Checklist: "Should I build an agent," has four rows:

  1. "Is the task complex enough?" No leads to workflows. Yes leads to agents.
  2. "Is the task valuable enough?" Under $0.1 leads to workflows. Over $1 leads to agents.
  3. "Are all parts of the task doable?" No means reduce scope. Yes leads to agents.
  4. "What is the cost of error/error discovery?" High means read-only or human-in-the-loop. Low leads to agents.

Zhang says "Here's our checklist," and the clip then covers only the first row before it ends. Someone watching only this excerpt could conclude that a clear decision tree is the only reason to choose a workflow. On the slide, task value, feasibility and the cost of errors are separate gates. Each one can push you toward a workflow, a smaller scope or a human check, even when the task is complex.

The dollar figures on the slide appear only as text. The clip does not explain them, and I could not read a full transcript of the talk, so it is unclear whether they are per-task budgets.

When was the talk?

The description calls it "his April 2025 talk." April 2025 is when the video went public. Podwise lists the YouTube upload, "How We Build Effective Agents: Barry Zhang, Anthropic," on the AI Engineer channel with a publish date of April 4, 2025.

The live event was earlier. The ai.engineer page names it AI Engineer Summit 2025, and the official summit page gives the theme "Agents at Work." The organizer's Tito registration page describes the 2025 summit as "Agents at Work" at TimesCenter in New York, with the engineering sessions on Feb 21. The talk itself has no individual date on those pages, so February 2025 is the best-supported reading for when it was given on stage.

Who posted the clip

@agentic.workers is a secondary account that re-posts conference excerpts with its own captions and badge. The description has no link and the clip has no product or call to action. The speaker's name is never said aloud in the clip. The attribution to Zhang comes from the description and matches the ai.engineer talk page.

Bottom line

Zhang's advice in the clip is accurate and matches Anthropic's own writing: if a task's decision tree is easy to map, build an explicit workflow for cost and control. His slide adds three more questions about task value, feasibility and the cost of errors, which the clip skips. The talk was given at AI Engineer Summit 2025 in February and posted to YouTube on April 4, 2025.

Sources

Published November 5, 2026. Based on a TikTok by @agentic.workers. Full video notes (markdown)