ai architecture
Agents or workflows? Use the right kind of intelligence.
When is a deterministic workflow the right starting point?
A deterministic workflow is appropriate when the next step follows agreed rules. Required-field validation, routing by a known department and permitted status changes do not become more reliable because a model chooses them. Write the conditions down and test them. When the process is predictable, a clear sequence usually makes ownership, debugging and acceptance easier than a system that decides its own path through the work.
Look for uncertainty in the source information rather than assuming the whole process needs autonomy. A document may need interpretation while the approval sequence remains fixed. Separate those concerns. The workflow can collect an input, request a proposal, validate the result and send exceptions to a person. This combination keeps the predictable parts predictable and makes the uncertain part visible instead of spreading it across every step.
What does an ai agent add beyond a workflow?
An agent combines interpretation with access to tools and some discretion about how to complete a bounded task. It may retrieve approved information, compare context or propose a next action when inputs vary. That flexibility can be useful, but it creates additional design questions. Which tools may it use? What information may it read? Which changes may it propose, and which changes may it actually carry out?
Do not confuse a conversational interface with an operating permission. A helpful answer in a chat window does not establish that the system should change an order or contact a customer. Define a task with a clear end condition and restrict the available actions. A constrained agent supporting a reviewer is a different arrangement from an autonomous agent managing a business process. Buyers should understand which arrangement is being proposed.
How do we decide where interpretation belongs?
Map the workflow and identify steps where people must understand variable information. Examples include classifying incoming documents, extracting possible fields or summarising a set of approved notes. These tasks may suit ai-assisted interpretation because the input is not always uniform. The downstream process still needs a definition of an acceptable result. A fluent summary can be incomplete, and a plausible extracted field can be wrong.
Retain source material with the proposed output. Give reviewers enough context to assess it, and distinguish a missing answer from a confirmed value. Decide what happens when inputs are contradictory or outside scope. Escalation should be a normal path, not an embarrassment to conceal. If a step can be described completely by rules, use those rules. Interpretation is valuable when it addresses variation, not when it merely makes a predictable task look intelligent.
What permissions should a bounded agent receive?
Start with the least access needed for the task. Separate reading approved information from writing records, sending communications or triggering external actions. The agent should not inherit broad authority simply because a connected account has it. Business permissions must be checked outside the model. A proposed action is information to evaluate, not evidence that the requester or the agent is authorised to perform it.
List permitted tools, records and operations in the scope. Require approval for irreversible, financial or engineering actions where consequences demand it. Record the proposal, the approval and the final outcome as distinct events. Consider what happens if the same request is received twice or a tool responds late. Access limits should remain effective when the model misunderstands an instruction. They are part of engineering control, not just wording in a prompt.
How do we test behaviour before increasing autonomy?
Build an evaluation set from representative, approved examples. Include incomplete documents, unusual formats, contradictory instructions and requests the system should refuse or escalate. Define expected behaviour for each case. Evaluate whether the system uses approved information, respects permissions and exposes uncertainty. A demonstration on a few easy inputs cannot answer these questions. Acceptance should cover the task boundary as well as the quality of the proposed response.
Observe a controlled first release with a human checking consequential work. Record corrections and exceptions so the team can identify patterns rather than rely on anecdotes. Changes to models, prompts, knowledge sources or tools may change behaviour, so repeat relevant evaluations after changes. Expanding autonomy is a separate decision supported by evidence. It should not occur automatically because the interface has been in use for a period of time.
What happens when a workflow or agent fails?
A workflow needs visible state, a responsible owner and safe recovery. If a connected application is unavailable, preserve the request and expose the exception. Do not mark a task complete merely because a tool call was attempted. Distinguish a failed action from an unknown outcome: the destination may have accepted a change before the response was lost. Recovery must avoid creating duplicate or conflicting records.
Agent-assisted work adds interpretation failures to ordinary integration failures. A person may need to correct a classification, provide missing context or reject an unsafe proposal. Keep the original input and decision history available. Define when the workflow stops, when it retries and when a human must take over. A system that reveals its limits can be operated; a system that hides uncertainty behind reassuring language is harder to trust.
How should a buyer compare proposed approaches?
Ask a partner to identify which steps are deterministic, which use interpretation and which grant tool-based discretion. Then ask why each choice is necessary. The explanation should connect to a real task, not a preference for agents as a product category. Review permission boundaries, evaluation examples and exception ownership together. These details reveal more about operational suitability than the number of agents or the sophistication of a demonstration.
The most appropriate design may combine all three mechanisms. A fixed workflow gathers context, ai proposes a structured interpretation and a reviewer authorises the next action. A bounded agent may help where coordination genuinely varies. Keep the first scope narrow enough to test with actual users and approved inputs. Discuss documentation, monitoring and support before launch. The objective is useful, accountable work, not the maximum possible level of autonomy.
Frequently asked questions
Does every automation need an agent?
No. Predictable validation, routing and status updates usually belong in deterministic workflows. Add interpretation only where it addresses a real requirement.
Can an agent update business systems directly?
Only within explicitly scoped permissions and approved actions. Consequential changes need review boundaries, traceable records and recoverable failure handling.
How should we evaluate an agent?
Use representative inputs, expected behaviour and failure cases. Check both the proposed answer and the action it takes; observe a controlled release before expanding permissions.
