Key takeaways
- Every decision in a rule-based system traces back to a rule a person wrote.
- Rules engines in business software handle routing, approvals, pricing and compliance checks.
- Rules are predictable, auditable and explainable, but brittle and prone to sprawl.
- Rules work well as fixed limits around a model, holding whatever the model suggests.
How if-then rules work
If-then rules work by matching conditions against the facts a system holds and carrying out the action of every rule whose conditions are met. A rules engine keeps the current facts, checks them against its rules, fires those that match and repeats until nothing new happens.
When two rules match at once and disagree, the engine needs a way to choose, such as priority, the more specific rule first or the most recent fact. Those choices are part of the design, and they are where unexpected behaviour usually hides.
Rule-based system examples in sales and marketing
Rule-based system examples are everywhere in sales and marketing software, usually configured by operations teams rather than engineers. Typical business rules engine jobs:
- Route new leads by country, company size or product interest.
- Require a manager's sign-off for any discount above the agreed ceiling.
- Never email a contact who has opted out, whatever campaign they sit in.
- Block a deal from moving stage until required fields are filled in.
- Assign accounts to territories by region and named-account lists.
Rule-based vs machine learning
Rule-based AI follows logic people wrote; machine learning follows patterns a model found in examples. Rules give the same answer every time and can say exactly why, but only for cases someone foresaw. Learned models handle messy, unforeseen input, such as the tone of a reply, but their answers vary and are harder to explain.
The choice is rarely one or the other. Use rules where the answer must be the same every time and can be stated plainly; use a model where judgement is needed and good examples exist.
Strengths and limits of rule-based AI
The strengths of rule-based AI are predictability, auditability and easy explanation; its limits are brittleness, rule sprawl and blindness to anything nobody wrote down. A rule fires or it does not, so behaviour can be tested and an auditor can read the logic.
The same precision is the weakness. A routing rule written for 'Germany' misses 'Deutschland' in a free-text field. Exceptions get added one at a time until nobody can say which rules fire or why, and the system cannot weigh uncertain evidence the way a model can.
How rules and learned models work together
Rules and learned models work together best when the model proposes and the rules set hard limits around it. A model might draft an email or suggest a discount; rules then check that the contact has not opted out and that the discount stays under the ceiling, whatever the model suggested.
This is the everyday form of the research idea of combining neural and symbolic methods: flexible judgement from a model, fixed commitments from rules, and a person approving the actions that carry real risk.
Where Pebbles Ai fits
- CapabilityAI workspaceThe execution mode decides what happens to actions that reach the outside world, such as email sends, posts, CRM writes, MCP calls and calendar changes: in Manual they wait for approval, and in Plan they are queued, not run.
- CapabilityAI workspaceIn Auto those actions run without asking, except template send and calendar delete, which always ask. The web app starts in Manual.
Common questions
What is the difference between a rule-based system and an expert system?
An expert system is a rule-based system built to capture one specialist's know-how, usually with a knowledge base, an inference engine and explanations of its reasoning. Rule-based system is the broader term.
When should a sales team use rules instead of AI?
Opt-outs, approval limits and routing are rule jobs: there is one right answer and a person can write it down. Drafting, reading replies and spotting intent need a model, ideally with rules checking its output.
What is rule sprawl?
Rule sprawl is what happens when rules are added for each exception until nobody knows which rules fire or why. Regular reviews, named owners and retiring dead rules keep it in check.
About this page. Written by the Pebbles Ai team for people who run sales, marketing and growth. Last updated .