A rule that calculates a late-payment fee gives the same answer on its millionth run as on its first. A language model asked to do the same job usually will too, but not with the same guarantee, and you pay for every run. That difference should drive more automation decisions than it does. Where inputs are structured and the logic can be written down, deterministic software is usually the better tool; AI earns its place where input is messy or judgement is fuzzy, and the strongest designs combine the two.
Short answer: use traditional automation when the same input should always produce the same output and someone can write the rules down. Use AI when the input is unstructured, such as free text, documents or images, or when the decision needs judgement that does not reduce to rules. When a process has both, split it.
Four kinds of deterministic automation
"Deterministic" means the same input always gives the same result. In practice that covers:
- Rules and workflows: if this, then that. Approval chains, routing, reminders, status changes.
- Integrations: software that moves data between systems so nobody retypes it.
- Scripts: short programs that run on a schedule, such as a nightly report or a file cleanup.
- Robotic process automation (RPA): software that operates another application's screens the way a person would, useful when an older system offers no other way in.
None of this is fashionable. All of it is mature, testable and familiar to most engineering teams.
The model builders say start simple
The people who build AI systems are cautious about overusing them. Anthropic's Building effective agents recommends "finding the simplest solution possible, and only increasing complexity when needed." It adds that complexity should be added "only when it demonstrably improves outcomes", and notes that "agentic systems often trade latency and cost for better task performance."
The same article separates two designs. Workflows are "systems where LLMs and tools are orchestrated through predefined code paths", while agents are "systems where LLMs dynamically direct their own processes and tool usage." (An LLM is a large language model, the technology behind modern AI assistants.) It says the autonomy of agents "means higher costs, and the potential for compounding errors." When a model provider tells you to start simple, it is worth taking at face value.
Trade-offs, and the conditions that flip them
Neither approach wins on every axis. Each comparison below holds under stated conditions, and each has a case where it reverses.
Cost: build and maintain versus pay per run
Deterministic automation usually has a lower cost per run once volume is high. A rule or a script consumes a trivial amount of compute each time, so running it a million times costs little more than running it ten times. Its cost sits up front and over time instead: someone has to specify the rules, build them, test them and change them when the business changes. For a process with many exceptions, writing and maintaining those rules can be the most expensive option.
AI per-run cost is real and variable. Providers price by volume of text processed, and the rate depends on several things you control. Anthropic's pricing documentation, as read on 3 December 2026, prices each model differently, charges input and output tokens separately, bills reads from its prompt cache at a fraction of the normal input rate (0.1 times on most models), and offers a 50 percent discount for work submitted through its asynchronous Batch API. So the same task can cost very different amounts depending on the model chosen, how much text goes in, and whether repeated context is cached.
The condition that flips it: at low volume, or where the input varies so much that rules would take months to write, a model can be the cheaper option overall even though each run costs more.
Failure modes: neither side fails loudly by default
It is tempting to say rules fail visibly and models fail quietly. That is not reliable enough to design around. Deterministic systems fail silently too. A rule that was wrong from the start is applied faithfully to every case. An upstream system renames a field or changes what a code means, and the integration keeps running on the wrong data. A threshold set three years ago no longer matches the business, and nothing raises an error.
AI failures have a different character: the output is fluent and plausible, so a wrong answer can look exactly like a right one. A model can handle a hundred cases well and then misread the next one with the same confidence. That is acceptable for a draft a person will review, and not acceptable for calculating an invoice.
Our view: assume both will fail without telling you, and design the detection. For rules, that means input validation, reconciliation against a second source and alerts on volumes that look wrong. For models, it means structured outputs that code can validate, an evaluation set re-run on every change, and human review where a wrong answer is costly.
Auditability
With rules you can show an auditor the exact logic applied to a case, provided the rules are versioned. With a model you can show the input, the output and perhaps an explanation, but not a guaranteed reason. For regulated or contractual decisions, that difference alone can settle the question.
Maintenance
Rules need an owner and updates whenever policy, prices or upstream systems change. Models need monitoring, re-testing when the provider updates or retires a model, and attention to the risks in the OWASP Top 10 for LLM Applications, such as prompt injection and sensitive information disclosure. Those last risks are specific to language models; a rule engine has its own security concerns, but not those.
A decision table
| Question | If yes | Lean toward |
|---|---|---|
| Are the inputs structured (fields, codes, numbers)? | Rules can read them | Traditional |
| Can an expert write the decision logic down in a page or two? | It is already a rule | Traditional |
| Must the result be identical and explainable every time? | Needs determinism | Traditional |
| Do the rules have so many exceptions that nobody can list them? | Rules will be costly to build and keep | AI, with review |
| Is the input free text, a document, audio or an image? | Needs interpretation | AI |
| Is a wrong answer costly or hard to reverse? | Needs control | Traditional, or AI plus human approval |
Mostly "Traditional" means start with rules. A split usually means the process has two parts, and each should get its own tool.
The rule we would apply: models interpret, code acts
Let AI read and classify the messy part. Let deterministic logic take that structured result and do the work, with a person approving anything consequential. The model never holds direct power to change records or move money.
This keeps the unpredictable part small, testable and replaceable, and keeps the consequential part auditable. It matches Anthropic's description of workflows, where models run inside "predefined code paths". The trade-off is that you build and run two kinds of component. For most business processes that is a fair price for knowing which part can surprise you.
Four hypothetical examples
These are illustrations, not case studies.
Invoice approvals. Invoices arrive as PDFs from many suppliers, and approvals depend on amount and department. Reading the PDFs is messy, so a model extracts supplier, amount and date into fields that code validates. The approval rules (under a threshold, auto-approve; above it, route to a manager) are known, so a workflow applies them. A person checks extractions that fail validation. Using AI for the approval itself would add risk with no benefit.
Customer email routing. A shared inbox serves sales, billing and support. The language is free text, so a model classifies each message and flags urgency. Routing to a queue and sending an acknowledgement are fixed rules. When the classification is uncertain, the message goes to a person.
Nightly stock report. A report combines figures from two systems. The data is structured and the logic is arithmetic, so a script is the right tool. The silent-failure risk here is on the rules side: if one system changes a unit or a product code, the script will keep producing a tidy, wrong report. A reconciliation check against a known total catches that.
An old system with no integration. A legacy application offers only a screen. RPA can enter data on a schedule. If the screens change often, RPA breaks often, and the lasting fix is a proper integration.
Risk discipline applies to both
The NIST AI Risk Management Framework is voluntary guidance for managing AI risk. Its habits are worth applying to either choice: know what the system is for, measure how it behaves, and name someone responsible for it. Keep a human approval step on any action that is costly to reverse, and record what the system did.
The takeaway
Map the process before you pick a technology. Write down the steps, the inputs and the rules. Automate the rule-driven steps with ordinary software and give them validation, because rules go wrong quietly too. Add AI only where the input is messy or the judgement is fuzzy, and keep the actions that matter under deterministic control and human approval. Then compare cost honestly: per-run price at your real volume for the model, and build plus maintenance effort for the rules.
If you are a smaller team deciding where any of this should begin, our guide to where small businesses should start with AI applies the same test to a first project, and our six-stage delivery approach shows where this kind of split gets decided.



