Skip to content
Goal: Proficient✓ Sources verified 2026-11-24ReActPrompt ChainingRouting

Agents and Workflows: Tell Them Apart Before You Build ​

The most common interview follow-up: "Why does your use case need an agent? Wouldn't a fixed flow work?"

Core concepts ​

The distinction drawn in Anthropic's Building effective agents:

WorkflowAgent
Control flowLLMs and tools orchestrated through paths predefined in codeThe model decides what to do next and which tool to call
StrengthsPredictable, testable, controllable costFlexible; handles open-ended tasks without fixed steps
WeaknessesFails on anything unanticipatedHigher cost and latency, errors compound, hard to debug
Good forBusiness processes with clear steps (most B2B scenarios)Tasks whose steps can't be enumerated in advance (debugging, browser automation)

The article's core advice: start with the simplest solution and add complexity only when it is truly needed. Many use cases don't need an agent at all.

How it works: five common workflow patterns + agents ​

PatternHowExample
Prompt chainingEach step's output is the next step's input, with programmatic checks in betweenExtract → validate → generate report
RoutingClassify first, then hand off to a specialized prompt / modelRoute by document type into contract / invoice / customs-declaration flows
ParallelizationSplit into independent subtasks run in parallel, or vote across multiple runsCheck several review rules in parallel
Orchestrator-workersA central LLM dynamically breaks down the task, delegates and aggregatesResearch tasks where it's unclear which sources are needed
Evaluator-optimizerOne generates, one reviews, iterating in a loopTranslation, polishing copy
AgentThe model uses tools autonomously in a loop until done or a stop condition is hitBrowser automation, code fixing

ReAct ​

ReAct (Yao et al., 2022) alternates "reasoning" and "acting": think → call a tool → observe the result → think again. Today's native tool calling loop is essentially an engineered implementation of ReAct.

In practice: choosing an approach for a requirement ​

Can the steps of the requirement be listed in advance?
 ├─ Yes → Workflow (chaining / routing / parallel); any step can use an LLM
 │        └─ One step needs flexible exploration inside it? → embed a constrained small agent in just that step (limited tools + max steps)
 └─ No  → Agent
          └─ Must have: max steps, a tool allowlist, human confirmation for dangerous actions, a full trajectory log

Common pitfalls ​

  1. Using an agent "because it looks advanced": using an agent where a fixed flow would do makes things slower, more expensive and less stable.
  2. Starting with a heavy framework: first write the loop clearly against the API, then decide whether to bring in a framework once you understand it. A framework's abstraction layers can hide the real prompts and responses and make debugging harder (a warning also given in the Anthropic article).
  3. Agents with no stop condition and no trajectory logging: when something goes wrong you can't reproduce it.

Common interview questions ​

  1. What's the difference between a workflow and an agent? Why did your project choose what it did?
  2. Name a few workflow patterns with examples.
  3. What's the difference between orchestrator-workers and parallelization? (Whether the subtasks are determined in advance)
  4. What is ReAct? How does it relate to today's tool calling?
  5. How do you control an agent's cost and reliability?

How it relates to my projects ​

Sources ​

Vin Amory · AI development × content creation · Technical notes cite official docs in each page’s sources section