Personalized Re-ordering of Sections (Advanced)
Introduction
Create a truly personalized homepage by selecting the top categories for each user and displaying a dedicated box for each, featuring the most appealing products from those categories tailored to their preferences.
In order to achieve this level of personalization, you need to take the two following steps:
- Get a list of categories for the user in personalized order
- For each row, request products from the particular category
Categories
In the first step, we will acquire the personalized order of categories for the particular user.
Segmentation Setup
Start by creating Segmentation of the products based on their category.
In the Recombee Admin UI, navigate to the Segmentations section and choose Create.
- Choose Segmentation Type - Property-based
- Pick Property from the list that determines the category
After picking the property, a preview opens up, and you can see what categories exist in your catalog and the number of items per category.
Then confirm the settings by hitting the Create button.
You have now created the Segmentation based on category, and you can proceed to recommend the categories (=Segments) to the user.
Scenario Setup
In the Recombee Admin UI, navigate to the Scenarios section and choose Create Scenario.
- Enter a Scenario ID, such as "homepage-categories"
- Choose Recommendation type - Item Segments to User
- Continue and choose Results Segmentation - categories Segmentation created in the previous step
Logic
The Logic defines the behavior of the recommendation engine.
- Choose the recombee:default logic type from the Universal Models
This particular Logic returns the Segments (=categories) in personalized order to give the user the top categories according to the user’s previous interactions.
Requesting Recommendations
You shall request the Recommend Items Segments to User endpoint of the Recombee API using an SDK of your choice.
You will get a list of recommended categories that define the order of the category rows and that you will use in the next step to recommend products from these categories.
Products From the Categories
Now we will fill the individual rows with products from the particular categories.
There will be a Recommend Items to Item Segment request for each created row. Each request takes a genre (i.e., ID of the Segment) as a parameter.
Scenario Setup
In the Recombee Admin UI, navigate to the Scenarios section and choose Create Scenario.
- Enter a Scenario ID, such as "homepage-products-per-category"
- Choose Recommendation type - Items to Item Segment
- Continue and choose Context Segmentation - categories Segmentation, the same one as in the previous Scenario
Logic
The Logic defines the behavior of the recommendation engine.
- Choose the recombee:personal-from-segment Logic from the Universal models to recommend assets based on the user’s watching history.
This Logic will return the top products for the user from the given category.
Filters
Requesting Recommendations
You can send all the Recommend Items to Item Segment requests (one for each row) inside a single Batch request using an SDK of your choice.
Each request will include the ID of a category (obtained in the previous step) as a parameter.
Once you receive the products for all the rows, you can show the user the top products from the user’s most favorite categories.