Recommendations of similar products with item context

Published October 02, 2023

Similar item recommendations are a valuable tool for online retailers, offering customers product suggestions closely aligned with their current interests or past purchases. These recommendations serve a dual purpose: helping customers uncover new items they may have otherwise missed, while also boosting seller revenue by highlighting products that align with customer preferences.

To take these recommendations to the next level, you can add extra context by tailoring them to individual customer interests and needs. One example of this is considering the products a customer has added to their favorites.

This use case explores the scenario of creating a dynamic content (DC) campaign featuring similar recommendations enriched with the context of customers’ favorite items. This approach enables you to provide a more personalized browsing experience for your customers, while also introducing them to a wider array of products similar to their favorites.

Recommendations of similar products with item context



In this use case, you will go through the following steps:

  1. Create an aggregate that returns products added to favorites.
  2. Prepare AI recommendations.
  3. Create dynamic content with similar item recommendations using the predefined dynamic content web layer template.

Create an aggregate

In this part of the process, create an aggregate that will return the products customers added to favorites.

  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last.
  4. Select the product.addToFavorite event.
  5. Select the sku parameter.
  6. Define the period from which the aggregate will return products from the event.
  7. Save the aggregate.
    Configuration of the aggregate
    Configuration of the aggregate

Prepare AI recommendations

In this part of the process, you will configure a similar items recommendation with context of items that customers added to their favorites. This recommendation will be later used in the dynamic content.

  1. Go to Communication icon Communication > Recommendations > Add recommendation.
  2. Enter the name of the recommendation (it is only visible on the list of recommendation).
  3. In the Type & source section, click Define.
  4. From the Catalog dropdown list, select an item feed.
  5. In the Type section, choose the Similar items recommendation type.
  6. Confirm the settings by clicking Apply.
  7. In the Items section, click Define.
    1. Click Add slot.
    2. Define the minimum and maximum number of items that will be recommended to the customer in each slot.
    3. Optionally, define Static filters and Elastic filters.
    4. Confirm by clicking Apply.
  8. Optionally, you can define the Boosting factors.
  9. In the Additional settings section click Define. 1.Enable the Item context from analytics (aggregate, expression) switch. 2. From the dropdown list select the created you created in this part of the process. 3. Click Apply.
  10. In the right upper corner, click Save.

Create dynamic content campaign

Create a dynamic content campaign with recommendations of similar products to those added to favorites using the predefined web layer dynamic content template. This dynamic content will be displayed as a pop-up on your site for the customers who have added products to their favorites.

  1. Go to Communication icon Communication > Dynamic content > Create new.
  2. Enter the name of the dynamic content.
  3. Choose the Web layer type.
  4. In the Audience section, click Define.
    1. In the New Audience section, click Define conditions.
    2. From Choose filter dropdown menu, choose product.addToFavorite event.
    3. Define the period from which the segmentation will return customers.
    4. Confirm the settings by clicking Apply.
  5. Confirm the settings by clicking Apply.

Define content

  1. In the Content section, click Define.
  2. In the Content tab, click Create Message.
  3. From the list of template folders, select a folder with the predefined Web layer templates.
    Result: You are redirected to the list of predefined templates.
    Web layer templates folder
    Web layer templates folder
  4. Select the Recommendations template. Result: You are redirected to the template builder.
    Note: You can edit the template in two ways, by editing the code of the template (add inserts, add variables) and/or by filling out the form in the Config tab. In this use case, we will use the capabilities of the predefined Config tab.

Edit the form in the Config tab

The form in the Config tab is already filled in with default values. You can keep them or change them to fit your business needs.

  1. From the Recommendation campaign dropdown list, select the ID of recommendation campaign you created in the previous step. You can find it by typing its name or ID in the search box.
  2. In the Header text field, define the header text to appear in the popup message.
  3. In the Currency field, specify the currency in which you want to display the prices of the recommended products.
  4. In the Bottom text field, define the copy you want to appear in this section.
  5. In the Font field, define the font of all text displayed in the dynamic content.
  6. Define the colors in the Bootom bar background and Bottom bar text color fields.
  7. Choose the most suitable carousel scrolling method for you by enabling one or all toggles at the same time:
    • Carousel autoplay: activation of this toggle allows automatic scrolling of items in the carousel;
    • Carousel loop: activation of this toggle allows users to navigate to the first article in the carousel by clicking the arrow after the last article displayed in the carousel;
    • Enabling these two options at the same time will combine these functionalities. In this case, the recommendation carousel will scroll automatically and return to the first item automatically after displaying the last one.
    • If you don’t activate any of the toggles, users will have to scroll through the carousel on their own, and when they get to the last item, it won’t automatically redirect them to the beginning of the carousel.
  8. In the following fields, define the item amount that you would like to display in small, medium, large and extra large screens.
  9. After you make changes to the template, you can check the preview.
    1. Click the Preview Contexts button on the upper left side.
    2. Enter the ID of a customer and define the product context.
    3. Click Apply.

      If you are using custom attributes in your product feed, you need to replace the names of the standard attributes used in the template code with the names of the attributes used in your feed. In our case, we changed the names of following attributes (according to the custom attribute names used in our product feed):

      • link -> productUrl
      • imageLing -> image
      • title -> name
      • item.price.value-> item.price
      • item.salePrice.value -> item.salePrice
  10. If the template is ready, in the upper right corner click Save this template > Save as.
  11. On the popup:
    1. In the Template name field, enter the name of the template.
    2. From the Template folder dropdown list, select the folder where the template will be saved.
    3. Confirm by clicking Apply.
  12. To continue the process of configuring the dynamic content campaign, click Next.
  13. To save your content changes, click Apply.

Define schedule and display settings

  1. In the Schedule section, click Define and set the time when the message will be active.
  2. In the Display Settings section, click Define.
  3. Specify circumstances for dynamic content to be displayed. Optionally, you can also define the Advanced options. In our case, we will define the frequency of dynamic content to be displayed to Once per day. You can also define the type of device you want to show your dynamic content.
  4. Click Apply.
  5. Optionally, you can define the UTM parameters and additional parameters for your dynamic content campaign.
    Dynamic content configuration
    Dynamic content configuration
  6. Click Activate.

Check the use case set up on the Synerise Demo workspace

You can check the configuration of each step from this use case in our Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.



Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker