
Color is one of those features that significantly affects the purchase decisions in the fashion industry, but should not limit the choice. 

You can recommend items which are similar to the currently viewed by a customer,  but you can add a little twist to that by elastically filtering the items in the recommendation based on the favorite color of your customer. For further details read the instruction in this use case.

## Prerequisites
---
- Enable the [similar recommendation model](/docs/settings/configuration/ai-engine-configuration/engine-configuration-for-recommendations). 
- Supplement customer profiles with the favorite color 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 **Similar**.
    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 `2`. 
    
   <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 **Elastic 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**.
7. From the dropdown list, choose the item color attribute.
8. Click **Operator**.
9. From the dropdown menu, 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 favorite color.  
    <figure><img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/favorite-customer-color-filters.png" class="full" alt="The final configuration of the filters"><figcaption>The final configuration of the filters </figcaption></figure>
11. At the bottom of the elastic filter pop-up, click **Apply**.
12. In the **Items** section, click **Apply**. 
1.  In **Boosting**, you can enable [boosting](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign#define-the-boosting-factors).
13. In **Additional settings**, optionally you can exclude already bought products and set a metric to sort by. 
14. 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).

## 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)