Ask a vendor whether you need AI or a rules engine and you will get an answer shaped by what they sell. The honest answer is that the question is wrong. A well-built process almost always uses both, and the skill is not picking a side, it is drawing the boundary between them and designing the handover deliberately. Get that boundary right and the model does the fuzzy work while the rules keep everything auditable. Get it wrong and you either drown deterministic logic in a probabilistic black box, or you throw a rules engine at a problem it can never fully specify. This is a framework for deciding which component owns which decision, and how they hand off to each other and to a human.
Drawing the boundary
Start with a single test. Can you write the logic down as rules that a colleague could read, argue with, and sign off? If yes, use a rules engine. If the input is unstructured, or the pattern is statistical and only visible across thousands of examples, use a model. Everything else is a mix, and the mix is the normal case.
Rules engines are right when:
- The logic is knowable and can be stated explicitly ("if invoice value over 50k, route to finance director").
- The decision must be auditable and explained line by line to a regulator or an auditor.
- The cost of being wrong is high and consistency matters more than nuance.
- The policy changes by human decision, not by learning from data.
Models are right when:
- The input is unstructured: free text, scanned documents, images, voice.
- The pattern is statistical and no one can write the rule that captures it.
- You have enough labelled examples to train and, crucially, to keep measuring against.
- An approximate answer with a confidence score is more useful than no answer.
The boundary is the deliverable
The interesting design work is not inside the rules engine or inside the model. It is at the seam where one hands to the other. A model reads a document and produces structured fields; a rules engine then applies deterministic policy to those fields. Name that seam, version it, and log what crosses it. That single interface is what makes the whole thing testable.
This layering is exactly what the analysts mean by hyperautomation: orchestrating rules, models, and human steps into one process rather than betting everything on a single technology. See the Gartner hyperautomation glossary for the category framing. My point is narrower and more practical: the orchestration only works if you decide, per decision, whether it is deterministic or probabilistic.
A useful way to pressure-test the boundary is to ask what happens when the input changes. If a new supplier, a new document layout, or a new phrasing arrives, does your logic need a code change or does it just need more examples? Deterministic logic changes by editing a rule that a person reviews and approves. Probabilistic logic changes by feeding the model more labelled data and retraining. If you find yourself wanting to "add a rule" every time a new variation of unstructured input shows up, you have put a rules engine where a model belongs, and you will spend the next year patching regular expressions that never quite cover the next edge case. The reverse mistake is quieter but worse: pushing a genuine policy decision into a model because it felt easier than writing the rule, and then being unable to explain, later, why the system did what it did.
Deterministic or probabilistic: five common processes
Here are five processes I see constantly. Notice that none of them is purely one or the other. Each splits into a probabilistic part that reads or predicts, and a deterministic part that decides and records.
| Process | Probabilistic part (model) | Deterministic part (rules) |
|---|---|---|
| Invoice extraction | Read supplier name, line items, totals and dates from a scanned or PDF invoice. | Match to purchase order, apply tax and tolerance rules, route by value band, post to ledger. |
| Work-request classification | Read the free-text request and predict the category, trade and likely asset. | Assign to the queue that category maps to; enforce SLA clock and escalation path. |
| Priority prediction | Estimate urgency from history, asset criticality signals and request wording. | Cap or override priority by contractual SLA and safety rules that cannot be learned away. |
| Contract-clause review | Find clauses, flag unusual language, suggest the closest standard equivalent. | Apply the approvals matrix; block sign-off until named clauses clear a human reviewer. |
| Spare-part matching | Match a fuzzy description ("blue seal, 2 inch") to catalogue candidates with scores. | Confirm against the bill of materials, stock and approved-vendor rules before reservation. |
The pattern repeats: the model turns mess into structured candidates with a confidence score, and the rules engine turns those candidates into an accountable action. Try to make the model do the accounting and you lose your audit trail. Try to make the rules engine read the scanned invoice and you will be writing regular expressions until you retire. Platforms like Microsoft AI Builder package the model side of that first column (document extraction, prediction, classification) so it drops into a workflow, but the second column is still yours to design.
The confidence-threshold pattern
A model does not just return an answer, it returns an answer with a confidence score. That score is the most useful thing in the whole design, because it lets you route work by how sure the model is instead of trusting or distrusting it wholesale. This is the pattern I reach for every time.
| Confidence band | Routing | Human effort |
|---|---|---|
| High | Straight through. The model output becomes the action with no human touch. | None (sampled for audit only). |
| Medium | To a reviewer, with the model's suggestion pre-filled and one click to confirm or correct. | Seconds, not minutes. |
| Low | Into the normal manual queue as if the model had never run. | Full manual handling. |
Three things make this work. First, the reviewer path is not "start from scratch", it is "check the pre-filled suggestion", which is where most of the time saving actually comes from. Second, low-confidence items fall back to the existing process gracefully, so a bad day for the model is a slow day, not a wrong day. Third, and this is the part teams skip: you instrument all three bands. Log the confidence score, the model's suggestion, the human's final decision and whether they agreed. Only with that data can you move the thresholds on evidence rather than on nerves.
The thresholds are not fixed constants, they are dials you tune. If reviewers agree with the model on 99% of medium-band items, your medium band is too cautious and you can push more into straight-through. If straight-through items are showing up in error reports, your high band is too loose and you tighten it. Without the instrumentation you are guessing, and guessing about a threshold that controls how much money moves untouched is not a position you want to defend.
One detail decides whether this pattern helps or hurts: the two thresholds start conservative and move outward only on evidence. On day one I set the high band deliberately tight so almost everything lands in review, and I widen it as the logs prove the model earns the trust. It is far cheaper to start slow and speed up than to start fast, cause a run of bad auto-decisions, and then have to defend both the errors and the design. The confidence score also needs a sanity check of its own, because a badly calibrated model can be confidently wrong. That is what the agreement data in the medium band is really for: it tells you whether a "high confidence" from this model actually means high accuracy, or whether the number is decorative.
If you are earlier in the journey and still deciding what to automate at all, I have written separately on where to start automating in an asset-heavy operation and on using process mining before you automate anything. Both matter here, because a confidence-threshold design is only as good as the process it sits inside.
The straight-through rate is the honest number
Every demo of intelligent automation looks flawless, because a demo runs on the examples the model was already good at. The number that separates a demo from a deployment is the straight-through-processing rate: the percentage of real, in-production volume that clears high confidence and needs no human at all. If a vendor or an internal team cannot tell you that number, measured on live traffic over weeks, they are showing you a demo.
A caution on the STP figure
An unmeasured straight-through rate is the tell of a demo. Worse is a straight-through rate hit by quietly lowering the confidence bar so more items auto-clear. That inflates the headline number and pushes the errors downstream where they cost more to unwind. Measure straight-through and accuracy together, always, or you are optimising the wrong thing.
There is a second point people want to soften and shouldn't. Where money moves or safety is involved, human-in-the-loop is not a transitional phase you graduate out of once the model matures. It is a permanent design requirement. The point of the model there is not to remove the human, it is to make the human faster and better informed by handling volume and pre-filling suggestions. A payment run, a safety-related work order, a contract signature: these keep a human decision in the loop by design, not because the technology is immature. I make that distinction explicit in whether your automation is fixing or hiding the process, because automation that removes the human to hit a metric is usually hiding a problem, not solving one.
Governance: the boring part that keeps it alive
A rules engine mostly does what it did yesterday. A model quietly drifts as the world changes underneath it, and that is the failure mode nobody sees coming because nothing throws an error. Before I put a model into a process that matters, I want answers to this checklist.
Model drift
- Who monitors accuracy and agreement rate over time, and how often?
- What alert fires when accuracy or straight-through rate slips past a set point?
- Who owns retraining, and what is the approval path before a new model version goes live?
Audit logging
- Is every automated decision logged with input, model version, confidence, output and any human override?
- Can you reconstruct, months later, exactly why a given item was auto-cleared or routed to a human?
- Are the deterministic rules versioned so you know which policy applied on a given date?
Fallback when the model is unavailable
- If the model service is down or slow, does everything route to the manual queue automatically?
- Does the process keep running degraded, or does it stop dead? It should degrade, never stop.
- Is there a clean switch to disable the model and run rules-plus-manual only, in case a bad version ships?
None of this is glamorous, and none of it demos well. It is also the difference between an automation you can defend in an audit two years from now and one that becomes a liability the first time someone asks why a decision was made.
Independence note
I do not resell rules engines, model platforms or automation suites, and I take no vendor commissions. The products named here are examples of a pattern, not recommendations to buy. My interest is in getting the boundary and the governance right, whatever tools you already own.
Conclusion
Rules versus AI is a false choice. Rules engines own the logic you can write down and must be able to audit; models own the unstructured input and the statistical patterns no one can specify by hand; almost every real process needs both, joined at a handover point you design on purpose. Route by confidence, keep a human in the loop wherever money or safety is at stake, measure the straight-through rate honestly, and govern for drift, audit and fallback. Do that and intelligent process automation stops being a slide and starts being something you can stand behind.
Written by Muhammad Abbas
CMMS / CAFM Manager & Enterprise Integration Specialist · 22+ years across ERP, EAM, CAFM and enterprise integration.
Work with me