Personalized homepage with section recommendation
With Section recommendations, you can create a custom page with recommended products divided into sections. These sections display items based on a chosen item attribute and additionally they are automatically adjusted to match the customers’ preference. This type of recommendation lets the customer have a product overview, with the items relevant for them, chosen by the AI-based models.
In this use case, you can find an instruction on creating a recommendation for a retail website that consists of 5 rows of categories with 4 items for each category type. The categories of the products are represented in the following way: “Clothing > t-shirts and tops > t-shirts > long sleeve”. However, we would like to present the section with a smaller granularity of categories, for example, “Clothing > t-shirts and tops”.
Prerequisites
- The items feed must be provided.
- You must configure the AI engine:
- Enable the Section page model.
- In the Attributes for distinct filters section, you must select the attributes which will be available for use in the Item attribute field when creating a section page recommendation. In the Item attribute field you will choose the item feature (for example, brand) based on which the items will be selected for a slot in the recommendation. If this step is skipped, the field will remain empty, making it impossible to complete the recommendation.
Optionally, you can provide metadata catalog.
Create a recommendation
- Go to Communication > Recommendations > Add recommendation.
- In the top left corner, enter the name of your recommendation.
- In the Type & Items feed section, click Define.
- From the Items feed dropdown menu, choose the provided feed.
- Choose the Section recommendation type.
- Under the section types, from the dropdown list, choose your Metadata catalog.
- Click Apply.
- In the Items section, click Define.
- Click Add slot.
- Set the Number of sections option to 5.
- Set the Number of items per section option to 4.
- From the Items attribute dropdown, choose the
category
attribute. - In the Category level input area that appears, define the category level as a numeric value, in our case 2.
Tip: If your products categories have a
X > Y > Z
structure, level 0 will beX > Y > Z
. Level 1 will beX > Y
and so on. Here, you are defining how granular the category recommendations will be. For example, if you sell shoes, you will have aOutdoor > Sport > Running
category and aOutdoor > Sport > Football
category. If level 0 is provided, both categories can be recommended. If level 1 is provided,Outdoor > Sport
category will be recommended to the customer. - Click Apply.
- In the top right corner, click Save.
What’s next
You can display the recommendation on your home page, use dynamic content.
- Go to Communication > Dynamic content > New dynamic content.
- In the body of the dynamic content, use the recommendation insert.
Click here to display the insert{% recommendations3 campaignId=aIEkwqXw0wLB %} {% for slot in slots_products3 %} {% for row in slot.rows %} <!-- Variable metadata which allows you to access the metadata catalog --> {{ row.metadata.itemId }} {{ row.metadata.imageLink }} <!-- Iterates through items in a given section --> {% for item in row.items %} {{ item.itemId }} {{ item.title }} {% endfor %} {% endfor %} {% endfor %} {% endrecommendations3 %}
Note: Read more about how to use recommendation in inserts here. - Add CSS and/or HTML to the dynamic content.
- Define the rest of the settings.