
The purpose of the recommendation is to present the customer with the products best suited to their behavioral profile built during each visit in your online shop. One of the ways to do it is to recommend items in the customer's size.

By analyzing previous transactions, you can save an additional attribute in the customer's profile that stores information about the size of the products that they purchased. Later, you can use this attribute to build a filter in recommendations.

This use case shows how to create a recommendation that serves 4 personalized items in a customer's size.

## Prerequisites
---

- Enable the [personalized recommendation model](/docs/settings/configuration/ai-engine-configuration/engine-configuration-for-recommendations). 
- Supplement the customer profiles with the size attribute. 

## Create a recommendation
---
1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/ai-hub-icon.svg" alt="AI Hub icon" class="icon" > **AI Hub > (AI Recommendations) Models > Add recommendation**.
2. Enter a meaningful name of the recommendation.
3. In the **Type & Items feed** section, click **Define**.
    1. From the **Items feed** dropdown list, select the catalog that contains items for the recommendation. 
    2. As the type, select **Personalized**.
    3. Click **Apply**.
4. In the **Items** section, click **Define**.
5. Click **Add slot**. You can name the slot for later reference. 
5. In the **Number of items** subsection, set the minimum and maximum number of items to `4`.       
   <div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   Setting the minimum and maximum number of items to the same number ensures that exactly this many items will appear in the slot.

   </div></div></div>
 
6. Click **Static filter**.  
    
   <div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

   Learn about the difference among [elastic, static filters](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign#select-conditions-of-displaying-items), and [distinct filters](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign#distinct-filter).

   </div></div></div>

7. From the dropdown list, choose **Visual Builder**.  
7. Click **Select attribute**.
8. From the dropdown list, choose the item size attribute.
8. Click **Operator**.
9. From the dropdown list, choose **Equals**.
9. Click the <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/filter-text.png" alt="Text value icon" class="icon"> icon and keep clicking until you get the <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/customer-context-select-value.png" alt="Select value icon" class="icon"> option.
10. Click **Select value**.
11. From the dropdown list, choose the attribute that contains the customer's size. 
11. On the bottom of the elastic filter pop-up, click **Apply**.
12. In the **Items** section, click **Apply**.  
13. In **Boosting**, you can enable [boosting](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign#define-the-boosting-factors).
14. In **Additional settings**, optionally you can exclude already bought products and set a metric to sort by.
15. Save the recommendation by clicking **Save**.

## What's next
---

You can display the recommendation to customers in a number of ways, for example by using the [recommendation insert](/developers/inserts/recommendations-v2) in [dynamic content](/docs/campaign/dynamiccontent/creating-dynamic-content).

## Check the use case set up on the Synerise Demo workspace
---
You can check the [recommendation settings](https://app.synerise.com/ai-v2/recommendations/0RaMcz0bJTtr) in Synerise Demo workspace.

If you’re our partner or client, you already have automatic access to the **Synerise Demo workspace (1590)**, where you can explore all the configured elements of this use case and copy them to your workspace.  

If you’re not a partner or client yet, we encourage you to fill out the contact [form](https://demo.synerise.com/request) to schedule a meeting with our representatives. They’ll be happy to show you how our demo works and discuss how you can apply this use case in your business.

## Read more
---
- [Creating recommendations](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign)
- [Filters in recommendations](/docs/ai-hub/recommendations-v2/recommendation-filters)
- [Requirements for item feed](/docs/ai-hub/recommendations-v2/item-feed-requirements)