Recommendation Rule
The recommend keyword is used within a Constraint Modeling Language (CML) rule to display suggestions for related products in the Product Configurator. The rule defines the condition under which a specific product type or relation should be suggested to the user.
You can recommend a type, a relation, or both in the same rule. The recommendation rule can be added inside a standalone product, a product bundle, or a virtual container.
Unlike action rules that are interpreted directly by the Product Configurator API, when the condition is met, the engine forces a UI change (hiding or disabling a product option, attribute, or value). Recommendations are not automatically applied to the UI by the configuration engine alone. To suggest types or relations (products/bundles), typically for up-selling or cross-selling based on their current selections at runtime, use the Run Config Rules action within a Salesforce Flow. See Run Config Rules Action in the Revenue Cloud Developer Guide.
- Use an action rule when a selection makes another option invalid or irrelevant. For example, if a user selects a basic warranty, you should “hide” or “disable” the premium support options to prevent a conflicting or impossible setup.
- Use a recommendation rule when you want to nudge the user toward a beneficial add-on. For example, if a user buys a high-end generator, you “recommend” a maintenance service contract. This does not block the user if they choose not to add it.
Here are 3 examples demonstrating how to implement product recommendation rules.
This rule is placed within the GeneratorSet type. If a user selects an extremely high voltage, the configuration engine recommends a specialized engineer component required for installation or commissioning.
This rule recommends adding items to an existing relation (Accessories) if the user selects a high-end component (such as the most robust enclosure, Enclosure_SA3).
This rule is applied at the Quote or System level (using a virtual type) and recommends a system integration product if multiple generators are being configured, reflecting the requirement that large projects often need central control components.