Workflow vs agent
A workflow follows application-defined steps; an agent lets a model choose some next actions based on observations. Both need limits and reliable application controls.
Before you start: Review Evidence-grounded abstention first. Python-like examples use variables, lists and functions.
Follow the mechanism
Task shape
Identify predictable and variable work.
Start with an everyday explanation
A recipe follows a fixed plan. A cook adapting to missing ingredients chooses a new step, but still follows food-safety rules and a budget.
See a concrete example
Invoice validation with a fixed schema may fit a workflow. Research with unknown evidence gaps may need bounded model-selected lookups.
A claim to question
An agent is not automatically more capable or useful than a workflow.
Try before revealing the answer
Choose an architecture for a known three-step form submission and for an open-ended document investigation.
Show the worked answer
Use explicit validation and submission steps for the form. For investigation, allow bounded read-only search choices, track evidence and require approval for external actions.
Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.
Engineering details and trade-offs
Prefer a deterministic workflow for predictable tasks. Add model-directed control when varying paths create measured value.
Compare completion quality, latency, cost and recoverability. Agent flexibility increases the need for stopping rules, tool validation and traceable state.
Reason through the example
Invoice validation with a fixed schema may fit a workflow. Research with unknown evidence gaps may need bounded model-selected lookups.
Implement and test
Choose an architecture for a known three-step form submission and for an open-ended document investigation.
Inspect the reasoning and expected result
Use explicit validation and submission steps for the form. For investigation, allow bounded read-only search choices, track evidence and require approval for external actions.
What to measure
State the expected result before changing a control. Record your inputs, compare the observed result and explain one limit of this model. In a real implementation, test the failure case as well as the normal path.
Answer before reading the reference
When would you avoid an agent?
A defensible answer
When the task is predictable and deterministic code meets the requirements more cheaply and reliably. Start with the simplest measured baseline and add autonomy only for demonstrated gaps.
Prepare the follow-up
How would you compare an agent against a workflow on the same dataset?
Show follow-up reasoning
Use the same task set, data access, tool contracts and success criteria. Compare end-to-end completion, harmful actions, recovery, cost and latency under realistic limits. Include repeated runs where sampling matters and retain a held-out set for the final decision.
Use the engineering explanation and worked task above to support your response. Identify which assumptions you would need to verify in production.
Choose a practice depth
- New to GenAI
- Define workflow vs agent with the everyday example and name its key limitation.
- Applied experience
- Explain the example, implementation choice and a measured failure case. Use the exercise as a small design review.
- Senior or systems depth
- Answer the follow-up, compare alternatives and justify an evaluation or rollout plan with operational constraints.
Self-review your answer
0/4 checks selected. This is self-assessment, not an interview score.
Your explanation and revision notes
Loading local notes…