# Actors For You

> Source: https://docs.recombee.com/recipes/video/fully-personalized-homepage/actors-for-you

> For the complete documentation index, see [llms.txt](/llms.txt).

**Table of contents**

* [Introduction](#introduction)
* [Segmentation Setup](#segmentation-setup)
* [Scenario Setup](#scenario-setup)
* [Logic](#logic)
* [Filters](#filters)
* [Requesting Recommendations](#requesting-recommendations)

# Actors For You

![](/img/recipes/video/actors-for-you.png) 

## Introduction

Leverage the influence of favorite actors on viewing choices. This scenario adds a personalized touch to your video recommendations by featuring actors your users love the most, as determined by their viewing history.

## Segmentation Setup

Most of the recommendation rows on the homepage feature videos, however, in this case, we want to recommend actors that the user shall like based on the user’s watching history.

In the Recombee Admin UI, navigate to the **[Segmentations](/segmentations)** section and choose **Create**.

1. Choose **Segmentation Type** \- _Property-based_
2. Pick **Property** from the list that contains the property that contains the list of actors per movie or episode

![Admin UI - Segmentation Setup](/img/recipes/video/actors-for-you-segmentation-setup.png)

After picking the property, a preview opens up and you can see the actors and the number of assets in which they star.

![Admin UI - Segmentation Setup - Preview](/img/recipes/video/actors-for-you-segmentation-setup-preview.png)

Then confirm the settings by hitting the **Create** button.

You have now created the Segmentation based on the actors, and you can proceed to recommend the actors (=Segments) to the user.

Similarly, you can create a Segmentation based e.g. on the director.

## Scenario Setup

In the Recombee Admin UI, navigate to the **[Scenarios](/scenarios)** section and choose **Create Scenario**.

1. Enter a **Scenario ID**, such as _"actors-for-you"_
2. Choose **Recommendation type** \- _[Item Segments to User](/api#recommend-item-segments-to-user)_
3. Continue and choose **Results Segmentation** \- _actors Segmentation_ created in the previous step

![Admin UI - Scenario Setup](/img/recipes/video/actors-for-you-create-scenario.png)

## Logic

The [Logic](/recommendation_logics) defines the behavior of the recommendation engine.

* Choose the **[recombee:default](/recommendation_logics#recombee-default)** logic type from the **Universal Models**

This particular Logic returns the Segments (=actors) in personalized order to recommend the user interesting actors according to the user’s previous interactions.

![Admin UI - Logic](/img/recipes/video/actors-for-you-logic.png)

## Filters

Available Assets (Global Settings)

You always want to recommend only movies, series, and episodes that are currently available to watch for your users. Therefore you need to apply a [**Filter**](/scenarios#filters) rule to allow only such assets.

As it would be tedious and prone to error to add this rule to all the Scenarios, this rule shall be added to the [**Global Settings**](/scenarios#scenarios-in-admin-ui-global-settings), so it is always applied everywhere.

**The particular filter depends on how you specify such assets in your catalog:**

* If you have a **boolean property** that marks the asset as available you can use the predefined _Available items \[boolean\]_ rule.
* If you have a **timestamp property** that specifies when the asset is published (becomes available) you can use the predefined _Published items rule_.
* Or if you have a **licensing window (start date, end date)** you can use the predefined _Items within their licensing window_ rule.
* In every other case, you can create a [**custom filter rule**](/reql) to allow only the available assets according to your own logic.

![Admin UI - Global Settings - Filter](/img/recipes/video/filter.png)

## Requesting Recommendations

You shall request the [Recommend Items Segments to User endpoint](/api#recommend-item-segments-to-user) of the Recombee API using an [SDK of your choice](/api_clients).

For more information navigate to the Integration tab of the Scenario in the Admin UI.

In order to request content for multiple rows with a single API request, use the [Batch endpoint](/api#batch) and put the recommendation requests inside it. Set the parameter `distinctRecomms` in order to [deduplicate the assets among the rows](/api#batch-example-using-distinctrecomms-parameter-to-deduplicate-results-in-multiple-boxes).