When would you build a fixed LLM workflow (chain, router) rather than an autonomous agent loop? Give one example of each for a product you could build here.
Theme reported publicly: OpenAI
Answer
Model answer, written in a candidate's voice
In short
- Use fixed workflows when the task is well-understood and the path is known: predictable, cheaper, testable.
- Use agents when the path cannot be predicted and the model must choose steps, accepting latency, cost and compounding errors.
- Start with the simplest pattern and add autonomy only when metrics show it helps.
- Name patterns: prompt chaining, routing, parallelisation, orchestrator-workers, evaluator-optimiser.
- Add guardrails: step limits, budgets, human checkpoints.
- Example fixed workflow: support triage/refund assistant; example agent: vague incident/research investigator.
In full
I would build a fixed workflow whenever the task is well-understood and the steps are already known, because prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimiser give predictable code paths that are cheaper, easier to test and easier to debug than an open loop. For example, in a support product I would route incoming tickets by intent, chain extraction -> policy check -> draft reply, run independent checks in parallel, and use an evaluator-optimiser pass on the draft before it reaches a human. I would use an autonomous agent when the path cannot be predicted, such as an internal incident or research assistant that must decide which docs, tickets and logs to inspect and when to stop, accepting higher latency, cost and compounding errors. The rule I would follow is to start with the simplest thing and add autonomy only when evaluation shows it measurably helps, not because it sounds more impressive. Either way I would put guardrails around it: step limits, token/time/cost budgets, and human checkpoints before irreversible actions.
What a strong answer covers
- Workflows follow predefined code paths — predictable, cheaper, testable — for well-understood tasks
- Agents let the model choose steps — for open-ended tasks where steps cannot be predicted — at the price of latency, cost and compounding errors
- Start with the simplest thing; add autonomy only when it measurably helps
- Names patterns: prompt chaining, routing, parallelisation, orchestrator–workers, evaluator–optimiser
- Guardrails: step limits, budgets, human checkpoints
Common mistakes
- Reaching for a multi-agent framework for a deterministic task
- no stopping criteria