Field note
Agentic AI vs. workflow automation: choose by failure mode.
A failure-mode framework for choosing deterministic rules, RPA, constrained LLM steps, or bounded agent-directed execution.
Rushabh Sudame
Founder & CEO
- Published
- Reviewed
- Reading time
- 6 min read
Choose the architecture from the failure you can tolerate
Automation discussions often collapse several different systems into one argument. Deterministic rules, robotic process automation, language-model steps, and agent-directed loops can all be useful. They fail differently, require different controls, and should not be ranked on a single ladder from old to new.
The practical decision is to use the least autonomous architecture that can handle the uncertainty in the work. NIST's AI Risk Management Framework reinforces a lifecycle approach: map the context and consequences, measure behavior, govern ownership, and manage risk continuously.Source 4 That framing is more useful than choosing a technology by trend.
Four automation modes
Deterministic rules
Code controls sequence, branching, validation, retries, and error handling. The same valid input follows the same defined path. Rules are well suited to stable policy, exact calculations, schema transformations, and system-to-system orchestration.
Their characteristic failures are visible: a rule becomes stale, a schema changes, an unhandled branch appears, or an integration returns an error. Tests, versioning, validation, idempotency, and exception queues are the primary controls.
Robotic process automation
RPA executes repetitive steps through a user interface when a practical API is unavailable. Microsoft describes desktop flows as a way to automate tasks across desktop and web applications using UI elements, images, and coordinates.Source 1 This remains appropriate for stable, rule-based interactions with legacy software.
The main weakness is interface fragility. A selector, screen layout, session state, credential, or operating-system behavior can change while the business rule remains valid. Microsoft recommends APIs or connectors where possible, along with retries, fallback plans, failure notifications, and more than one owner.Source 2 RPA is not obsolete; it is simply optimized for a particular kind of stable interaction.
A language model inside a deterministic workflow
An LLM can classify, extract, summarize, or draft while code retains control of the surrounding sequence. This pattern is useful when the path is known but one step requires semantic judgment. The output should be constrained by a schema, checked against acceptance criteria, and escalated when confidence or validation is insufficient.
The characteristic failure is a plausible but incorrect result inside an otherwise correct process. The appropriate response is not to surrender more control. It is to improve test cases, source grounding, output validation, and exception handling.
An agent-directed loop
An agent loop lets a model choose tools, sequence, and stopping conditions from intermediate results. Microsoft's agentic application patterns distinguish this from deterministic orchestration and recommend deterministic control when steps are known, explicit safeguards are required, or the flow must remain directly reviewable.Source 3
Agent-directed execution is justified when the useful path genuinely cannot be predicted in advance—for example, bounded research that must follow evidence across several approved sources. Its characteristic failures include goal drift, the wrong tool selection, unsafe stopping decisions, loops, cost amplification, and privilege misuse. OWASP describes excessive agency as a combination of too much functionality, permission, or autonomy and recommends narrow tools, downstream authorization, and approval for high-impact actions.Source 5
Decision matrix
| Approach | Input variability | Reversibility | Tool permission | Exception pattern | Audit requirement |
|---|---|---|---|---|---|
| Deterministic rules | Low; inputs fit known schemas | Usually high when writes are idempotent | Exact API actions | Known branches | Inputs, rules, outputs, errors |
| RPA | Low; interface is stable | Depends on the target system | UI actions under a service or user account | Selector and session failures | Screens, selectors, actions, retries |
| LLM step in a workflow | Medium; semantic interpretation is needed | Keep writes outside the model step | Read or draft first | Low-confidence and invalid outputs | Sources, prompt/model version, validation |
| Agent-directed loop | High; path depends on findings | Prefer reversible work until approval | Narrow allowlist with budgets | Novel paths, loops, tool failures | Full trace, tool calls, policy and terminal state |
The matrix is not a maturity model. A deterministic rule can be the most sophisticated and responsible choice for a consequential process. An agent loop can be an unnecessary liability for a task that is already well specified.
Diagnose the failure mode
The interface changed
This is an RPA problem. Prefer a supported connector or API when available. If screen automation is unavoidable, monitor selector failures, preserve diagnostic evidence, retry only safe actions, and maintain a queue for human completion.
The input is ambiguous
Add a bounded semantic step. Ask the model for a typed output, validate required fields, ground the decision in approved sources, and route uncertain cases to a person. Keep deterministic control of state changes.
The route depends on intermediate evidence
This is the legitimate territory for an agent loop. Constrain the available tools, maximum steps, time, spend, and destinations. Define what a satisfactory stopping condition looks like before the run begins.
The system took the wrong action correctly
This is an authorization and policy failure, not merely an answer-quality failure. A perfectly formed tool call can still be forbidden for that user, tenant, resource, or moment. Authorization belongs in the execution layer and destination system, outside the model.
Nobody can reconstruct the run
Traditional automation logs actions and errors. Agentic work also needs evidence about sources, model and configuration versions, routing decisions, tool proposals, policy checks, approvals, and the terminal outcome. Without this receipt, a team can observe that something changed but cannot reliably explain why.
The hybrid architecture usually wins
Many enterprise processes are best represented as a controlled composition:
- a deterministic trigger validates the event;
- an LLM interprets ambiguous input;
- a bounded agent loop explores only where the path cannot be known;
- deterministic policy checks proposed actions;
- a human reviews the consequential boundary; and
- a deterministic commit or separate continuation performs the approved write and records the receipt.
The separation matters. In the current Zilionix workflow implementation, an approval node is terminal. It records the review decision and ends that execution; a later write requires a separately initiated continuation. This makes the handoff explicit rather than implying that a paused process silently continues.
Applying the modes in Zilionix
Zilionix exposes 42 workflow node types across seven categories for deterministic sequencing, branching, transformation, integration, and human review. Its repository also includes Advanced/ReAct, workflow, and supervisor agents. That means a team can choose fixed workflow control, bounded ReAct-style work, or supervisor-led delegation according to task shape rather than forcing every process into one execution model.
These are code-verified platform capabilities, not proof that a workflow is safe by default. Tool selection, permissions, validation, budgets, approval placement, and operational ownership still have to be configured for the use case. Platform explains the building blocks, Developers covers publishing and integration, and Use cases shows governed workflow shapes.
A selection worksheet
Before choosing an architecture, ask:
- Are the steps and branches already known?
- Is there a supported API, or only a user interface?
- Which input requires semantic judgment?
- Can each action be reversed or safely retried?
- Which systems and records can change?
- How often do exceptions occur, and who owns them?
- What evidence must a reviewer see?
- Can the final state be tested automatically?
- What stops the run when cost, time, or step limits are reached?
If the path is known, keep it deterministic. If only one step is ambiguous, add a constrained model step. If the path truly depends on new evidence, use a bounded agent loop. If the next action is consequential, stop for review.
Source caveat
Microsoft documentation describes Microsoft automation products and architectural patterns; it does not establish comparative performance for Zilionix. NIST provides voluntary risk-management guidance. OWASP supplies a security threat taxonomy rather than certification or assurance. Zilionix statements in this article are limited to repository-verified execution patterns and do not imply operational results, customer outcomes, or a complete control environment.
Evidence
Sources
External references are identified in reading order. Dates show when each source was last checked for this article.
- Source 1
Microsoft Learn
Introduction to desktop flows - Source 2
Microsoft Learn
Reducing risk when planning a Power Automate project - Source 3
Microsoft Learn
Agentic application patterns - Source 4
- Source 5
Product reading