Rule-based system
A rule-based system is a computational system whose behavior or outputs are determined by applying explicitly specified rules to inputs, facts, or conditions.
Introduction to Generative AI, Second Edition
A rules-based AI system produces outputs by applying explicitly authored rules or response mappings rather than generating them probabilistically from learned model parameters.
- How it is used
- Contrasts authored chatbot responses with generative responses, particularly in mental health support.
- How deep it goes
- Explains response selection and trade-offs at a high level without implementation details.
- Examples
- Uses ELIZA’s generic replies and Woebot’s clinician-reviewed messages as chatbot examples.
- What you can do after
- Evaluate the trade-off between oversight of prepared responses and conversational flexibility.
Read how Introduction to Generative AI, Second Edition explains rule-based system →
Financial AI in Practice
A rules-based system is a computational system whose behavior is determined by explicitly specified if-then rules.
- How it is used
- Provides explicit decision rules for fraud detection and customer-retention automation.
- How deep it goes
- Explains rule-engine execution and historical precision testing, with a combined-rule example and a comparison to agentic automation.
- Examples
- Uses card-attempt blocking, transaction-risk review, and a retention email triggered by losses and login counts.
- What you can do after
- Apply it via pandas to test fraud rules against labeled historical transactions and calculate precision.
Read how Financial AI in Practice explains rule-based system →
The Art of AI Product Development
A rule-based approach to artificial intelligence derives behavior or conclusions from explicitly specified rules rather than patterns learned from data.
- How it is used
- Use manually coded rules to start solving relatively simple analytical problems and prototype before training a machine-learning model.
- How deep it goes
- Explains symbolic rules, prototype benefits, and coverage limits without detailing rule implementation.
- Examples
- Illustrates banking compliance checks against explicitly defined legal and regulatory requirements.
- What you can do after
- Apply manually coded rules to prototype a simple analytical solution, test its direction, and collect user-aligned training data.
Read how The Art of AI Product Development explains rule-based system →
Effective Data Analysis
A rules-based model produces outputs by applying explicitly specified logical rules, conditions, or keyword matches to input data.
- How it is used
- Automates support-ticket categorization so teams can prioritize work and assign tickets.
- How deep it goes
- Defines rule-based models and situates a ticket-categorization prototype, without detailing how its rules are implemented.
- Examples
- Uses support tickets labeled by priority and type as an automation example.
- What you can do after
- Evaluate how rules can streamline ticket triage while still creating unintended effects for people.
Read how Effective Data Analysis explains rule-based system →
Inside AI
Symbolic AI is an artificial-intelligence approach that represents knowledge explicitly with symbols, rules, and logic.
- How it is used
- Apply explicit rules and logic to reason through constraints and provide explainable decisions in combined fraud-prevention systems.
- How deep it goes
- Explains rule-based reasoning through a constrained puzzle and describes its role in a combined fraud-prevention system.
- Examples
- Uses the farmer-wolf-goat-cabbage puzzle and a fraud-prevention system combining multiple AI techniques.
- What you can do after
- Understand how explicit rules can guide constrained reasoning and make decisions transparent in a combined AI system.
Deep Learning with R, Third Edition
Symbolic AI is an artificial-intelligence approach that represents knowledge explicitly and manipulates it with hand-crafted symbolic rules.
- How it is used
- Represents knowledge explicitly and manipulates it with hand-crafted rules, without requiring learning from data.
- How deep it goes
- Defines the approach and illustrates hard-coded chess rules, without detailing rule construction or system internals.
- Examples
- Uses early chess programs and expert systems as examples of rule-based approaches.
- What you can do after
- Evaluate explicit rules as suitable for well-defined logical problems but difficult to formulate for complex, fuzzy tasks.
Read how Deep Learning with R, Third Edition explains rule-based system →
Deep Learning with Python, Third Edition
An AI approach that represents knowledge and reasoning using explicit symbols and rules rather than learned representations.
- How it is used
- Represents knowledge with explicit rules to automate intellectual tasks without requiring learning.
- How deep it goes
- Defines explicit rules and contrasts suitable logical tasks with fuzzy ones, but stops short of implementation details.
- Examples
- Uses early chess programs and expert systems as examples of hand-coded approaches.
- What you can do after
- Evaluate rule-based AI as suitable for well-defined logical tasks but difficult to apply to fuzzy problems.
Read how Deep Learning with Python, Third Edition explains rule-based system →
Natural Language Processing in Action, Second Edition
A rule-based method derives outputs by applying explicitly specified human-authored rules.
- How it is used
- Measures sentiment or extracts information from unstructured text by applying explicitly specified rules.
- How deep it goes
- Defines keyword scoring and score summation, while leaving dictionary construction and extraction details largely unspecified.
- Examples
- Uses a hand-built sentiment dictionary and regular expressions as examples of rule-based methods.
- What you can do after
- Build it from scratch by mapping tokens to sentiment scores and summing matches in a document.
Read how Natural Language Processing in Action, Second Edition explains rule-based system →
Build a Reasoning Model (From Scratch)
Reasoning based on explicit symbolic rules rather than statistical associations learned from data.
- How it is used
- Contrasts explicit symbolic inference with the learned reasoning behavior produced by large language models.
- How deep it goes
- Defines the distinction and compares mechanisms, but stops short of specifying a rule-engine implementation or inference algorithm.
- Examples
- Uses an LLM response to a contradictory premise as an example of apparent reasoning without explicit rules.
- What you can do after
- Evaluate whether a reasoning behavior reflects explicit logical inference or statistical pattern matching.
Read how Build a Reasoning Model (From Scratch) explains rule-based system →
Machines that Think
Symbolic AI is an artificial-intelligence approach that represents knowledge explicitly and reasons through formal symbols and rules.
- How it is used
- Frames intelligence as computational manipulation of explicit symbols and rules, while highlighting limits in practical reasoning.
- How deep it goes
- Defines encoded representations and computational rule processes, but gives no implementation detail.
- What you can do after
- Evaluate rule-based systems by recognizing their difficulty with ambiguity, contradiction, and incomplete information.
Also covered in
- Fight Fraud with Machine LearningIn early access (MEAP)
- Understanding AIIn early access (MEAP)
- Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI
- Machine Learning System Design
- Digital Twins in Action
- Data Without Labels
- Build an AI Agent (From Scratch)
- Causal AI
- Investing for Programmers
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- machine learningMachine learning is a field of computational methods in which systems learn patterns or relationships from data to make predictions, decisions, or other outputs.
- natural language processingNatural language processing is the field of computing concerned with computational methods for analyzing, interpreting, transforming, and generating human language in text or speech.
- AI agentAn AI agent is a computational system that uses artificial intelligence to interpret information and select or perform actions toward goals while interacting with an environment.
Related concepts
- ELIZAincludes · ELIZA is an early conversational computer program that generated responses by matching patterns in user input and applying predefined rules.
- filteringuses · Filtering is the selection or exclusion of data or items according to specified criteria.
- pattern matchinguses · Pattern matching is the process of comparing values or input with specified patterns to identify matches, classify data, or select corresponding behavior.
- statisticscontrasts with · Statistics comprises quantitative summaries of data and the mathematical methods used to collect, analyze, interpret, and draw conclusions from observations.
- promptproduces · A prompt is text or other input supplied to an AI model to provide instructions, context, or other information that guides its response or generated output.
- business ruleuses · A business rule is a domain-specific constraint, policy, or decision criterion that governs valid data, behavior, decisions, or processes.
Questions about rule-based system
What is rule-based system?
A rule-based system is a computational system whose behavior or outputs are determined by applying explicitly specified rules to inputs, facts, or conditions.
Which Manning books explain rule-based system?
Introduction to Generative AI, Second Edition, Financial AI in Practice, The Art of AI Product Development, Effective Data Analysis, Inside AI, Deep Learning with R, Third Edition, Deep Learning with Python, Third Edition, Natural Language Processing in Action, Second Edition and 2 more.
What should I know before learning rule-based system?
Manning books that teach rule-based system usually introduce language model, machine learning, natural language processing and AI agent first.
What is the difference between rule-based system and statistics?
A rule-based system is a computational system whose behavior or outputs are determined by applying explicitly specified rules to inputs, facts, or conditions. Statistics comprises quantitative summaries of data and the mathematical methods used to collect, analyze, interpret, and draw conclusions from observations.
What kinds of rule-based system are there?
Kinds of rule-based system include ELIZA.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.









