Not every problem needs an AI agent. Sometimes a traditional workflow — deterministic, predictable, cheaper — is the better choice. The decision framework in this lesson helps you choose the right architecture.
The Decision Framework
Answer four questions to find the right solution:
Question 1: How variable is the input?
Low (forms, structured data): → Workflow
Medium (semi-structured, some variants): → Workflow with LLM steps
High (free text, unpredictable formats): → Agent
Question 2: How complex is the decision logic?
If-then rules sufficient: → Workflow
Multiple factors to weigh, but predictable: → Workflow with LLM classification
Context-dependent, discretion needed: → Agent
Question 3: How many tools/systems are involved?
1–2 systems, fixed sequence: → Workflow
3–5 systems, partly variable sequence: → Hybrid
5+ systems, dynamic selection: → Agent
Question 4: How critical is determinism?
Exact same result every time required: → Workflow
Similar result acceptable: → Agent with guardrails