Create and Apply Rules
Rules enable you to manipulate the list of recommended product IDs before passing the list to the storefront at run time.
Note: You are not required to define rules, and it's common for configured recommenders to
not use any rules. If you choose to not use rules, all of the product IDs in the list
are sent to the storefront in the exact order in which the strategy (or strategies)
returned them.
You can create and apply up to 30 rules for any given recommender. Each rule specifies an action, a field, and one or more field values (or attributes).
When Commerce Cloud Einstein applies a rule, it checks each product in the list of IDs returned by the strategy (or strategies), and compares the product's field value to the values specified in the rule. If the product's field value matches the specified field value in the ruleβor matches one of the specified values in the rule if there are more than oneβthe action is applied.