Based on What You Viewed

Learn how to recommend products or content based on a user’s recent browsing and viewing behavior.

Overview

Based on What You Viewed recommendation surfaces personalized content by combining each user's viewing history with catalog data using a hybrid recommendation algorithm. Unlike aggregate strategies such as Popular or Trending, which return the same items for all users, Based on What You Viewed recommendations are unique to each user, surfacing titles most relevant to what they have previously watched.

Because recommendations are computed per user, this strategy requires individual interaction data to generate results. Users with insufficient viewing history within the configured time window receive the configured fallback strategy instead.

Use Cases

Based on What You Viewed recommendation works best when personalized, and behavior-driven recommendations are needed, as follows:

  • Personalized homepage sections: Surfaces titles relevant to each user's recent viewing activity. For example, a "Based on What You Viewed" section on a streaming platform's homepage recommends titles similar to what a user recently watched.

  • Re-engagement campaigns: Brings lapsed users back with content relevant to their viewing history. For example, a push notification featuring titles aligned with what a user last watched before becoming inactive.

  • Post-viewing follow-up: Drives continued engagement after a session ends. For example, an email recommending titles similar to the last show a user watched.

  • Personalized promotional campaigns: Tailors catalog discovery to individual preferences. For example, a weekly digest email surfacing new releases relevant to a user's viewing behavior.

Strategy

Based on What You Viewed recommendation is computed per user using a hybrid algorithm that combines each user's individual viewing history with catalog data.

During setup, you select the interaction event that captures user behavior and configure the time window over which viewing activity is evaluated. The system uses this data to identify which titles each user has engaged with and surfaces catalog items most relevant to their individual behavior.

At serving time, recommendations are personalized to each user. Users with no viewing history within the configured time window receive the configured fallback strategy instead.

Common interaction events include:

IndustryEvent
OTTOTTvideoview
ECommerceProduct Viewed, Added to Cart

Required Inputs

The following inputs are required:

InputDescription
Interaction eventThe user action used to build each user's viewing profile for recommendations.
MappingConnects the event property containing the item identifier to the identity column of your catalog.
Time windowPeriod over which viewing activity is evaluated. If not set, all available historical data for the selected event is used.
Consideration CriteriaNarrows which interactions count toward each user's viewing profile. For example, filter by device type or subscription plan.

Create Based on What You Viewed Strategy

Prerequisites

Before you begin, check if the following are in place:

  • A catalog is uploaded and active. • At least one interaction event is being tracked, such as OTTvideoview.
  • The tracked event references the same item ID as the catalog identity column. If they do not match, interactions cannot be attributed to catalog items.
  • Users have sufficient viewing history to generate personalized results. Configure a fallback strategy for users with limited data.

Set Up Based on What You Viewed Recommendation

This section walks you through the steps to create a Based on What You Viewed strategy. Let us take an example: an OTT platform wants to recommend titles based on what each user has recently watched over the last 30 days.

  1. Select Strategy Type
  2. Select Catalog
  3. Define Consideration Criteria
  4. Map Catalog Column to Event Property
  5. Enter Basic Details

Select Strategy Type

Select Hybrid Recommendation Strategy from the list of strategy types.

Select Strategy Type

Select Catalog

Select the catalog to use. The catalog must be active and contain the items you want to recommend. For example, select theOTTCatalogdevTV catalog containing your streaming library.

Select Catalog

Define Consideration Criteria

Pick the single event that captures viewing behavior. This determines which interactions are used to build each user's recommendation profile.

EventWhat it measures
OTTvideoviewTitles each user has watched
Any custom eventWhatever behavioral signal matters most to your use case

For example, select OTTvideoview as the interaction event and set the lookback period to Last 30 days. This tells the system to evaluate each user's viewing activity from the past 30 days when generating personalized recommendations.

You can click Add Rule to apply property filters that narrow which interactions count.

Define Consideration Criteria

Map Catalog Column to Event Property

Map the event property containing the item identifier to the identity column of your catalog. This tells the system which catalog item each viewing interaction belongs to. For example, map the catalog identity column to the Content ID event property of the OTTvideoview event.

Map Catalog Column to Event Property

Enter Basic Details

After setting up the Catalog & Criteria tab, click Next to enter the following basic details:

Enter Basic Details

FieldDetails
NameName the strategy using a clear, descriptive name that reflects the use case. For example, Based on What You Viewed.
DescriptionAn optional description for your strategy.

After adding these details, click Save. Once the strategy is saved and the viewing events are evaluated, the strategy becomes Active and can be used for campaign personalization.

In this case, the strategy surfaces titles based on each user's viewing activity from the past 30 days. Because recommendations are personalized per user, each user receives a unique set based on their viewing history, making them suitable for a homepage discovery section or a re-engagement push notification.

Personalize Campaign Using Recommendation

Once the strategy is active, you can use it to personalize recommendations in your campaigns. To configure recommendations within a campaign, click Personalize to open the Set up Personalization panel, then select the Recommendations tab.

Configure the following:

Personalize Campaign Using Recommendation

Strategy

Based on What You Viewed, recommendations are computed per user using a hybrid algorithm that combines each user's individual viewing history with catalog-level product similarity.

During setup, you select the interaction event that captures viewing behavior and configure the time window for evaluating activity. The system applies time-decay weighting to each viewing interaction; titles recently watched influence recommendations more than older titles. Product embeddings are then used to identify catalog items most similar to each user's recently viewed titles.

At serving time, recommendations are personalized to each user. The system retrieves the user's recent viewing history, weights each viewed title by recency, and surfaces catalog items most similar to those titles based on product embeddings. Users with no viewing history within the configured time window receive the configured fallback strategy instead.

Inclusion Criteria

Define rules to restrict which catalog items are eligible for recommendation. You can add Catalog-Based Rules to filter by catalog attributes or Event-Based Rules to filter by user behavior. For example, adding a catalog-based rule, Producer = Netflix, ensures that only Netflix-produced titles are recommended.

Exclusion Criteria

Define rules to explicitly remove certain catalog items from recommendations. For example, adding an event-based rule to exclude titles a user has already watched ensures previously viewed content does not reappear in recommendations.

Final Outcome

Specify how many items to recommend and which catalog attributes to return for each item. For example, set Items to Recommend to 3 and select Name, ImageUrl, language, content_url, and producer as the Item Attributes to Recommend, so the campaign can render each title with its name, thumbnail, language, content link, and producer. Once configured, click Apply to save the personalization setup for the campaign.

FAQs

What makes Based on What You Viewed different from Popular or Trending?

Popular and Trending surfaces the same items for all users based on aggregate behavior. Based on What You Viewed generates a unique set of recommendations for each user based on their individual viewing history. Use Popular or Trending for catalog-wide discovery; use Based on What You Viewed when recommendations should reflect what each specific user has watched.

Is the Based on What You Viewed recommendation personalized?

Yes. Recommendations are computed per user using a hybrid algorithm that combines each user's individual viewing history with catalog data. Each user receives a distinct set of recommendations tailored to their behavior.

How are items selected for Based on What You Viewed recommendations?

The strategy evaluates each user's viewing history within the configured time window and applies time-decay weighting, with recently watched titles count more than older ones. For each viewed title, the system identifies catalog items with the highest product similarity using vector embeddings. Scores are aggregated across all recently viewed titles, and the top-ranked results are returned.

What happens if a user has no viewing history?

The strategy falls back to a separately configured fallback strategy. Fallback items are deduplicated against the results before being returned. If no fallback is configured, the remaining recommendation slots will be empty.

When should I use Based on What You Viewed recommendations?

Use this strategy when you want to deliver personalized recommendations based on individual viewing behavior, for example, in homepage discovery sections, re-engagement campaigns, or post-viewing follow-up messages, so each user receives content relevant to their viewing history.



Did this page help you?
CleverTap Ask AI Widget (CSP-Safe)