Question 1
An architecture team is deciding how to build two automations. The first is a month-end financial close: it always runs the same five steps in the same order — extract ledger entries, reconcile them, post adjustments, generate the report, archive it — and every run must be reproducible for auditors. The second is inbound bug triage: depending on what the report says, the system may need to search logs, query the deployment history, reproduce the issue, or ask the reporter a clarifying question, and which of those are needed cannot be known before the report is read. Which approach best fits these two tasks, and why? Which statement correctly applies the distinction between an **agent** and a **rule-based workflow**?
A. Build both as agents, because an agent is strictly more capable than a rule-based workflow and can always reproduce a fixed sequence when instructed to.
Treats an agent as a universal upgrade. Model-decided control flow buys flexibility at the cost of determinism, so for a task whose steps are fully known and must be auditable and reproducible, handing step selection to a model adds variability and expense with no benefit.
B. Build the month-end close as a rule-based workflow and the bug triage as an agent, because an agent earns its cost only when the sequence of steps must be decided at runtime rather than fixed at design time.Correct answer
Correct. An agent's defining property is that a model decides which tool to call next and when to stop, given a goal; a workflow encodes a path the developer already knows. The close has a known fixed path, so a workflow is the right fit; triage's path depends on what is discovered, so an agent is.
C. Build both as rule-based workflows, because a language model in the control path can never be relied on to select a correct next step.
Over-rejects agents entirely. The triage task's step sequence depends on information discovered at runtime, which is exactly the case a fixed if/then pipeline cannot express; an LLM choosing tools within a guarded, bounded loop is the standard answer to it.
D. Decide by expected volume and latency: use a rule-based workflow for whichever task runs more often, and an agent for the lower-volume task, since agents are slower per invocation.
Substitutes a throughput heuristic for the real criterion. Latency and cost are real operational concerns, but they do not determine which design is applicable — whether the control flow can be known in advance does.
Explanation
The line between an agent and a rule-based workflow is where control flow is decided: a workflow encodes a path the developer already knows, while an agent uses a model to choose the next tool call from a goal and to decide when the goal is met. A task with a fixed, fully known, audit-sensitive sequence therefore belongs in a workflow, and a task whose required steps only become apparent as information arrives belongs to an agent. Treating an agent as a strict upgrade ignores the determinism a workflow gives up; refusing agents outright leaves no way to express runtime-dependent branching; and choosing by invocation volume or latency answers an operational question rather than the design one (LangChain — Agents, https://python.langchain.com/docs/concepts/agents/).