
In order to diversify or monetize positions in the recommendation frame, you can use the recommendation slots. By combining using slots and recommendation filters, you can create branding campaigns. Such campaigns can be later displayed on the product page.

In this example, we will set a campaign that will return items similar to the one that is the context.  
However, when the context item's brand is “BrandA”, the first two items in the recommendation frame will be from the “BrandB” brand. This can be done to better position items from a brand that you have a partnership with, as the first two positions in a recommendation frame have the highest click-through rate. To make this possible, we will utilize slots.  
The first slot will contain two items and no filter will be applied, unless the context item’s brand is “BrandA”, then they will be filtered to items that are from the “BrandB” brand.  
The second slot, consisting of four items, won't have filters and will display similar items to the context one.

<figure>
<img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/use-cases/all-cases/_gfx/recommended_to_similar.png" alt="Brand switching campaign" class="full" >
<figcaption>Brand switching campaign</figcaption>
</figure>


## Prerequisites 
---
The [similar recommendation model](/docs/ai-hub/recommendations-v2) must be enabled and ready. 

## Create recommendations
---
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 the campaign name.
3. In the **Type & Items feed** section:
    1. Click **Define**.
    2. From the dropdown list, select the catalog that contains items for the recommendation. 
    3. As the type, select **Similar items**.
    4. Click **Apply**.
4. In the **Items** section, click **Add slot**. You can name the slot for later reference. 
5. 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 **Static filter** and choose **IQL Query**.
7. Create a filter that applies the following logic:
    - If the context brand is "BrandA", filter the results to the "BrandB" brand.
    - If the context brand is NOT "BrandA", no filter should be applied.  
It should resemble the following filter: `IF(context.brand == "BrandA", brand == "BrandB", ALL)`
8. Add another **slot**.
9. Set minimum and maximum number of items to `4`.
10. Enable the **Keep slots in order** toggle.
11. Click **Apply**.
12. In **Boosting**, you can enable [boosting](/docs/ai-hub/recommendations-v2/creating-recommendation-campaign#define-the-boosting-factors).
13. In **Additional settings**, you can exclude already bought products and set a metric to sort by.
14. Save the campaign by clicking **Save**.

## Read more
---
- [Filters](/docs/ai-hub/recommendations-v2/recommendation-filters)
- [Recommendation campaigns](/docs/ai-hub/recommendations-v2)
 
