Lesson 1427 of 1570
Agent vs workflow: when to use which
Not every AI task needs an autonomous agent — sometimes a fixed pipeline is smarter.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1The big idea
- 2workflow
- 3autonomy
Concept cluster
Terms to connect while reading
Section 1
The big idea
An agent decides its own next step. A workflow follows fixed steps you wrote. Workflows are cheaper, faster, and easier to debug.
Some examples
- If you do the same task the same way every time → workflow.
- If the task needs judgment about what to do next → agent.
- If you don't know which → start with a workflow and upgrade later.
Try it!
Take a task you do weekly (e.g., summarizing news). Decide: agent or workflow? Build the simpler one.
Understanding "Agent vs workflow: when to use which" in practice: AI agents don't just answer questions — they can do things, like looking things up, writing files, or talking to apps. Not every AI task needs an autonomous agent — sometimes a fixed pipeline is smarter — and knowing how to apply this gives you a concrete advantage.
- Design clear agent goals before adding tools
- Define permissions and scope before deploying any agent
- Build in human-approval checkpoints for high-stakes actions
- Understand when to use an agent vs. a simple chat prompt
- 1Design an agent spec: goal, tools, permissions, stop condition
- 2Run a simple web-search agent in a sandbox environment
- 3Instrument an existing workflow to identify where an agent could save time
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “Agent vs workflow: when to use which”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 40 min
AI Agent: Plan Prom Without the Stress, Part 2
An AI agent that handles outfit, group, dinner, and afterparty in one go.
Creators · 75 min
Capstone: Build and Ship a Real Agent
Everything comes together. Design, code, test, secure, and ship a production-quality agent with open-source code you can fork today.
Creators · 20 min
Skills as Procedural Memory
Show how skill files turn repeated work into reusable agent procedures students can inspect and improve.
