Promote or demote products depending on margin
Recommendations suggest items based on a customer’s behavioral history - purchases, page visits, interactions with previous recommendations, etc.
However, it may be beneficial for your business to override the recommendations by increasing the frequency (promoting) of suggesting items with a higher profit margin and decreasing the frequency (demoting) of suggesting items with a lower margin.
This can be done by using recommendation boosting. Boosting rules are built using the same editor as the filters, but unlike filtering, boosting does not entirely exclude items that do not meet the conditions - it only tells the AI model to assign a different weight to the profit margin parameter when calculating the final recommendation score of an item.
Prerequisites
- Recommended: Become familiar with creating recommendations.
This article does not explain every step of creating a recommendation in detail. - The item feed includes a parameter that denotes the profit margin.
In this example, the parameter is calledmargin
and its values arehigh
andlow
.
Creating the recommendation
Choose source, type, and add slots
- Go to
Communication > Recommendations > Add recommendation.
- In the Type & Items feed section:
- Select an item catalog.
- Select a recommendation type.
Tip: Boosting can be used with all recommendation types.
- Click Apply.
- In the Items section, configure at least one slot and click Apply.
Build the boosting rules
In this part of the process, you add two co-existing rules:
- Promote items with the
margin
attribute equal tohigh
- Demote items with the
margin
attribute equal tolow
- In the Boosting section, click Define.
- Click Add rule.
- Click Define rule and select Visual Builder.
Result The Visual Builder window opens. - From the Select attribute drop-down list, select the margin attribute.
You can use the search field. - From the Operator drop-down list, select Equals.
- From the Select value drop-down list, select high.
Boosting filter that matches high-margin items - Click Apply.
- In the Promote/Demote selector, select Promote (default value).
- Use the slider to adjust how much you want the rule to affect the results.
- Add the rule for demoting low-margin items by repeating steps 2-9 with the following changes:
- Change the value of margin to low.
- Change the Promote/Demote selector to Demote.
- Save the Boosting section settings by clicking Apply.
Tip: After applying the settings, you can use the Preview tab (available in the upper left part of the recommendation creator screen) to see how your rule changed the recommendation result. If necessary, you can return to the settings and adjust the boosting strength to meet your expectations.
![Screenshot of the recommendation creator: two rules applied at once: one for promotion, the other for demotion](/use-cases/all-cases/_gfx/promote-and-demote.png)
Additional settings and saving
- Configure the Additional settings section and click Apply.
- Save the recommendation.
What’s next
You can use the ID of the recommendation and insert it in other types of communication, such as:
- dynamic content - this way you can show the recommendations on your website.
- email - this way you can send out recommended items through emails.
- mobile application - you can use documents to build your own mobile app and show the recommended items.
- mobile push - you can send recommendations through notifications in your mobile application.
- web push - this way you can send notifications to your customers through a web browser.
- SMS - this way you can reach your customers with recommendations on their mobile.