Workflowscore
Workflows vs agents
Workflow: code decides the path, LLMs fill in steps. Agent: the model decides the path.
What it is and why it exists
A workflow is a predefined sequence or graph of steps, some of which call an LLM. An agent dynamically chooses its own steps and tools. Workflows are cheaper, faster, testable and predictable; agents handle open-ended problems where the path can’t be known in advance. Most production systems are mostly workflow with an agentic step where needed.
Quick prototype
Make everything an agent because it demos well.
In production, at scale
Start with the simplest thing (one well-prompted call), move to a workflow pattern when steps are known, and use an agent only for the parts that genuinely need open-ended decisions — with budgets and evals.
Vendors and tools
| Anthropic “Building effective agents” | The canonical write-up of the patterns |
|---|---|
| LangGraph / Temporal / Step Functions | Workflow and graph engines |
On AWS: Step Functions for deterministic workflows with Bedrock steps; Bedrock Flows for prompt-chain workflows; Bedrock Agents / AgentCore for agents.
How it fails
- An agent re-deriving a fixed five-step process on every request
- A rigid workflow for tasks whose steps vary wildly
What the interviewer asks next
How do you decide?
Can you write the steps down before seeing the input? Then it’s a workflow. Does the next step depend on what the previous one found, in ways you can’t enumerate? Then an agent.