RULES ( Collection of RULEs )

Defines a single rule within the RULES section. A rule consists of conditional logic expressed using WHEN clauses and resulting actions defined in THEN clauses. Rules may include metadata such as priority and category to influence evaluation order and grouping.

Properties of RULES

NameTypeDescription
TitleSTRING
EnabledBOOLEANControls whether the item participates in evaluation. Enabled by default;
PriorityDECIMALDefines the relative priority during evaluation. Higher priority may be evaluated earlier or override lower priority rules.
WeightDECIMALOptional weight used to influence priority or contribution during evaluation.
ItemsLIST`1

Properties of RULE

NameTypeDescription
TitleSTRINGThe unique name or title of the rule.
EnabledBOOLEANControls whether the rule participates in evaluation. Rules are enabled by default;
WeightDECIMALOptional rule weight used to influence priority or contribution during rule evaluation.
PriorityDECIMALDefines the relative priority of the rule during evaluation. Higher priority rules may be evaluated earlier or override lower priority rules.
ActionSTRINGThe decision outcome this rule contributes toward. The action represents a directional intent or classification target and is not executed directly. During evaluation, multiple rules may contribute to the same action with varying confidence.

Examples

	

MODULE

        GLOBALMODEL   'CustomerRiskModel - Global'       

            RULES
                RULE DefaultRisk
                    WHEN
                        RiskScore > 0
                    THEN
                        Action = Review


        MODEL   'CustomerRiskModel'

              RULES
                RULE  Risk
                    WHEN
                        RiskScore > 1000
                    THEN
                        Action = Call MANAGER

	
MODULE
    MODEL
        RULES
            RULE EscalateHighRiskCustomer
                Priority = 10
                Category = 'Risk'

                WHEN
                    SentimentScore < -8
                    AND IssueSeverityScore >= 3

                THEN
                    Action = Escalate

             DEFAULTACTION
                    StandardResponse