Workflows
LLM Workflows
Workflows are orchestrated patterns where the code controls the flow. The developer defines the structure; the LLM fills in the content.
When to use workflows instead of agents:
- The task can be broken into known, predictable steps
- You need deterministic, auditable behavior
- Low latency is critical — no dynamic decision overhead
- You're not yet sure if agent autonomy is needed
Workflow Beginner
Prompt Chaining
Sequential LLM calls with validation gates between steps.
Workflow Beginner
Parallel Calls
Concurrent LLM calls on independent inputs, aggregated at the end.
Workflow Intermediate
Orchestrator-Worker
LLM decomposes a task and delegates to specialized workers.
Workflow Intermediate
Evaluator-Optimizer
Generate-evaluate feedback loop that iteratively improves output.
When workflow logic becomes too complex, it's time to graduate to agent patterns.
Explore the evolution from Workflows → Agents →