View
- Published 22 November 2026
- Last reviewed 22 November 2026
- 5 min read
Automation or AI: when a rule beats a model
Use a rule when you can write it in two sentences and it covers most cases. Use an AI model where the input is too varied to read by rule, then let a rule decide.

Before you add AI to a step, write the rule for it. If the rule fits in two sentences and the exceptions fit on one hand, you have your answer, and it will behave the same way on every run.
Why should a rule be your first choice?
Because a rule can be read, tested and fixed, and a model can only be measured. When a rule is wrong it is wrong in the same way every time, you find the case, change the rule, and it stays fixed. When a model is wrong, the same input may give a different answer tomorrow.
That is not a criticism of models. It is how they work, and three sources say so.
- OpenAI’s API documentation says its Chat Completions are non-deterministic by default, which means model outputs may differ from request to request. A fixed seed gives only mostly deterministic outputs, and OpenAI says changes on its side can affect determinism. Check the documentation for whichever tool you use.
- The ICO says the statistical accuracy of an AI system is how often its answers match correctly labelled test data, that a system need not be 100% accurate to comply with the data protection accuracy principle, and that outputs are best recorded as statistically informed guesses rather than facts. A rule has no such rate to explain to an auditor or a customer.
- Anthropic’s engineering guidance recommends finding the simplest solution possible, and only increasing complexity when needed. OpenAI’s guide for building agents advises checking that a use case needs one, because otherwise a deterministic solution may suffice.
Do tools built to avoid mistakes still make them?
Yes. A Stanford study of AI legal research tools sold on the promise of avoiding errors by searching real sources found they still erred, though less often than a general-purpose chatbot. The figures are in the hallucinations piece, and the preprint is the primary source.
That is one sector with one kind of question, so it is not a rate for your invoices. It shows that a vendor’s design claim and a measured error rate are different things. For how to design around that, see AI hallucinations at work.
How do you test whether a rule is enough?
Work through four questions in order. Each ends in a choice, not a score.
Rule or model: four questions in order
1.Is the input structured: fields, codes, fixed formats?
- Yes
- Write a rule.
- No
- Go to question 2.
2.Can a few patterns (keywords, templates, sender lists) read the messy input well enough for most cases?
- Yes
- Use a rule with patterns, and send the rest to a person.
- No
- Go to question 3.
3.Is a wrong reading cheap to catch and fix?
- Yes
- A model reads, a rule decides what happens next.
- No
- A model drafts and a person checks, or keep it with a person.
4.Do you have 20 to 30 past cases with known answers?
- Yes
- Run the test on those before you commit to either.
- No
- Collect them first. Without them you cannot compare a rule with a model.
Many operations steps stop at the first or second question, so a model is often not needed.
Here is how the questions sort some ordinary steps. The thresholds and tasks are illustrative.
| Step | Use | Why |
|---|---|---|
| Send any order over a set value to a director | Rule | A threshold with one right answer |
| Apply the right VAT rate to a product code | Rule | A lookup table, updated when rates change |
| Check that an invoice total equals its lines | Rule | Arithmetic has one correct result |
| Read an invoice PDF from a supplier you have not seen before | Model reads, rule checks | Layouts vary, but totals and codes can be validated by rule. See AI document processing |
| Sort inbound email into complaint, quote or general | Model sorts, rule routes | Wording varies. Keywords may handle the obvious cases first |
| Draft a reply to an enquiry | Model drafts, person sends | Output is quick to check, a mistake reaches a customer |
| Decide whether a complaint earns a goodwill payment | Person | Judgement and money together |
The pattern in the middle rows, a model to read and a rule to decide, is the most common one we would expect in an operations path.
What does the model-reads, rule-decides pattern look like?
The model turns messy input into fields. A rule checks those fields and decides the next step. A person sees only what the rule cannot settle.
- Read. The model extracts supplier, amount and date from an email or PDF into a record.
- Validate. Rules check the record: is the supplier known, do the lines add up, is the amount inside the approval limit?
- Decide. A rule routes it: pay queue, query queue, director approval.
- Exceptions. Anything the rules reject goes to a named person with the original beside the extraction.
The design keeps the unpredictable part small and puts it where a wrong answer is caught before it matters. Where each step belongs is covered in where AI belongs in a business process.
Are rules too brittle for real work?
Sometimes, yes. Real work has exceptions, and a rule set that keeps growing becomes something nobody dares touch. That is the strongest case against our position, and the suppliers agree it is where models help.
OpenAI’s guide names three signs that a workflow has resisted traditional automation: complex decisions with nuanced judgement, rulesets that have become unwieldy, and heavy reliance on unstructured data. If your step shows one of these, test a model.
What should you do before choosing?
- 1
Write the rule in two sentences
If you cannot, note why: is it messy input, or a judgement call?
- 2
Run it on 20 to 30 past cases
Count how many it gets right and how many it cannot decide.
- 3
Look at what the rule cannot decide
If the leftovers are messy input, test a model on those. If they are judgement calls, give them to a person.
- 4
Set the pass mark before you test
Agree what counts as good enough with whoever owns the step. Baseline and acceptance tests shows how.
Questions people ask
When you can state the rule in a couple of sentences and it covers most cases. Thresholds, lookups, routing by a field and arithmetic checks all fit. A rule gives the same answer for the same input every time, you can test it against a pass mark, and when it is wrong you fix the rule once. Use a model only for the part a rule cannot read.
No. Rules-based automation follows instructions you wrote, so its behaviour is predictable. AI automation uses a model whose output can differ between runs and has an error rate you have to measure. Many good systems combine them: the model reads messy input into fields, and rules check the fields and decide the next step.
Trust it to the degree you have measured on your own cases, and design for the rest. Run 20 to 30 past cases first and count the wrong answers nobody would notice. For decisions that affect money or a person, keep a rule or a named human as the decider, and let the model prepare. This is not legal advice on automated decision-making.
That is a real sign a model may help. Check whether the growth comes from messy input, such as free-text emails, or from judgement calls. Try a model on the cases the rules cannot settle, keep the rules for the rest, and measure the result against your past cases. If the exceptions are judgement, a person is still the better answer.
Further reading
- OpenAI API documentation: Advanced usage (reproducible outputs)
Chat Completions are non-deterministic by default; a seed gives mostly deterministic outputs; OpenAI-side changes can affect determinism. Current page, not archived. Free.
- ICO: What do we need to know about accuracy and statistical accuracy?
Statistical accuracy against the accuracy principle. The guidance is under review because of the Data (Use and Access) Act. Free.
- Anthropic: Building effective agents (19 December 2024)
A supplier’s advice to find the simplest solution and add complexity only when needed. Free.
- OpenAI: A practical guide to building agents
A supplier guide. Three signs a workflow suits an agent, and the note that a deterministic solution may suffice. Free.
- Magesh et al.: Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools (Journal of Empirical Legal Studies, 2025)
Tools from LexisNexis and Thomson Reuters hallucinated between 17% and 33% of the time in the authors’ tests. Legal research only. Free.
AIforCompanies · https://aiforcompanies.co.uk/insights/automation-or-ai-when-a-rule-beats-a-model
Have a problem this does not solve?
Book a discovery call. Tell us what is slowing the business down, and we will say what we would build and whether it is worth doing.