Lesson 2 of 3 Selecting AI Solution Types

Rule-Based Automation or AI

Many automation opportunities do not need AI. This lesson explains the strengths of rule-based automation and AI, the criteria for choosing between them, and how they are combined.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare the behaviour, strengths and limits of rule-based automation and AI.
  • Choose between rules, AI or a hybrid design for a given process.
  • Apply decision criteria to choose between rules and AI.
  • Recognise the signs that a rule set has reached its limits.
  • Explain why prompt instructions cannot enforce hard limits.

How rule-based automation works

Rule-based automation follows explicit logic that people define: if the invoice amount is under 1,000 and the purchase order matches, approve it; otherwise route it to a manager. Workflow tools, robotic process automation and business rules engines all work this way. The same input always produces the same output, so the behaviour is deterministic, transparent and easy to audit.

Its limitation is that every situation must be anticipated. Rules struggle with free-text inputs, images, wide variation and patterns too complex to write down. Large rule sets also become fragile and expensive to maintain.

How AI solutions differ

AI learns patterns from data and copes with variation: it can read an email written in any style, recognise a damaged parcel in a photograph or estimate risk from hundreds of signals. In exchange, it is probabilistic: outputs can be wrong, they can vary, and the reasoning can be hard to explain. AI needs data, evaluation, monitoring and handling of errors. The following comparison summarises the choice.

Rule-based automation
BehaviourDeterministic: same input, same output
Best inputsStructured, predictable, well-defined
ExplainabilityFully transparent and auditable
ChangeEdit the rules
Cost profileLow to run once rules are written
Choose when Logic is stable, exact and must be followed precisely.
AI solution
BehaviourProbabilistic: best estimate, can be wrong
Best inputsVariable, unstructured or high-dimensional
ExplainabilityVaries; can be hard to explain
ChangeRetrain or adapt with new data
Cost profileData, evaluation, monitoring and usage costs
Choose when Inputs vary widely or the pattern is too complex to write as rules.

Decision criteria in practice

The choice between rules and AI can be made systematically. The following questions, taken in order, lead to a defensible decision.

  1. Can the logic be written down completely?

    If experts can state every rule and exception, rules are usually sufficient. If they rely on judgement or "knowing it when they see it", AI may be needed.

  2. How variable are the inputs?

    Fixed forms and coded fields favour rules; free text, images and many interacting signals favour AI.

  3. Must the outcome be exact?

    Calculations defined by law, contract or policy must be exact and belong in rules. Estimates and prioritisation can tolerate probabilistic outputs.

  4. Must each decision be explained?

    Where regulation or customers require a clear reason for every decision, rules or an explainable model are preferred.

  5. Is there data to learn from?

    AI needs representative historical examples. Without them, start with rules and collect data.

  6. How often does the logic change?

    Rules that change frequently because the environment changes, such as fraud tactics, become costly to maintain by hand.

Sort into groups

Rules, AI or both?

Exam skills 1.2.1 · 2.1.4

Choose rule-based automation, AI or a hybrid design for each process.

Log in to try this activity Interactive activities are free with an account.

When rule sets reach their limits

Rule-based systems often start small and grow. Over years, a fraud or claims system can accumulate thousands of rules, some of which conflict, and few people understand how they interact. Warning signs that a rule set has reached its limits include a growing number of exceptions, high rates of manual override by staff, many false alerts, and rules that consistently lag behind changes in customer or fraudster behaviour. These are signals to consider AI for the parts that require pattern recognition.

The opposite also happens. When analysis shows that a model's decisions can be summarised by a handful of stable conditions, replacing the model with rules reduces cost and improves transparency.

Select all that apply

Has the rule set reached its limits?

Exam skills 1.2.1

Choose the warning signs that suggest a rule set should be complemented with AI.

Log in to try this activity Interactive activities are free with an account.

Instructions to a generative model are not rules

A common mistake is to treat instructions in a prompt as if they were deterministic rules. Telling a generative assistant "never offer a refund above 100" makes such offers less likely, but it does not guarantee that they will never occur, because the model's behaviour remains probabilistic and can be influenced by unusual inputs. Where a limit must always hold, it should be enforced outside the model: by rules that check the proposed action, by permissions that make the action impossible, or by guardrails that block the output. The module on human oversight and AI safeguards covers these controls.

Combining rules and AI

The strongest designs often use both. AI handles the parts that need interpretation, and rules enforce policy. In an expense process, a model can read receipts and classify the expense type, while rules apply the approval limits and tax treatment. In a customer service assistant, a generative model drafts responses, while rules prevent it from offering refunds above a set amount. This keeps the flexibility of AI inside deterministic boundaries.

Worked example

Three processes, three answers

An operations director wants to "use AI" for three processes: calculating statutory holiday pay from timesheets, triaging free-text maintenance requests from tenants by urgency and trade, and flagging unusual supplier invoices for review. Which approach fits each?

Holiday pay follows legally defined formulas and must be exact, so it needs rule-based automation. Triaging free-text requests requires understanding varied language, which suits AI (NLP or generative AI), with low-confidence cases sent to a coordinator. Flagging unusual invoices suits AI anomaly detection, combined with rules for known checks such as duplicate invoice numbers. Using AI for the holiday pay calculation would add cost and risk without benefit.

Worked example

A rule set that has outgrown itself

An insurer's fraud detection system has grown to 3,000 rules over 12 years. About 70% of the claims it flags turn out to be legitimate, investigators spend most of their time clearing false alerts, and new fraud patterns take months to be reflected in new rules. Some rules implement regulatory checks that must always be applied. What should the insurer do?

The symptoms, a high false alert rate and slow adaptation, show that the rule set has reached its limits for pattern recognition. A hybrid design fits: keep the regulatory rules, which must be exact and auditable, and add a predictive model trained on confirmed fraud outcomes to score and prioritise claims, so that investigators see the riskiest cases first. Redundant rules can then be retired gradually, with the model monitored for drift and retrained as fraud tactics change.

Check yourself

Why is rule-based automation easier to audit than an AI model?

Show answer

It is deterministic and its logic is explicit: the same input always produces the same output, and the rule that produced a result can be read directly.

Exam Tips

Remember for the exam

  • Exact, stable and auditable logic belongs in rules, not AI.
  • Free text, images and complex patterns favour AI.
  • Hybrid designs let AI interpret while rules enforce policy limits.
  • Growing exceptions, frequent overrides and lagging rules signal that a rule set has reached its limits.
  • Prompt instructions are not guarantees; enforce hard limits outside the model.