Continue Watching
Introduction
The "Continue Watching" use case is designed to address a common user scenario – interruptions in their viewing experience. Users may encounter interruptions due to various factors such as time constraints or shifting priorities. This use case allows users to easily pick up where they left off in their content journey, making consuming content more smooth and enjoyable.
Scenario Setup
In the Recombee Admin UI, navigate to the Scenarios section and choose Create Scenario.
- Enter a Scenario ID, such as "continue-watching"
- Choose Recommendation type - Items to User (as we want to show the partially watched content of a particular user)

Logic
The Logic defines the behavior of the recommendation engine.
- Choose the video:continue-watching logic type from the Video models
By the watchingStartedPercentage and watchingCompletedPercentage parameters, you can specify what content shall be considered as partially watched.
Based on the assetType parameter you can also choose what type of content will be considered (e.g. movies, series, episodes, or movies and episodes, etc.) - the default is movies+episodes.

Filters
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 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, 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 to allow only the available assets according to your own logic.

Requesting Recommendations
There are three ways to get recommendations.
- No-Code Widget - create a No-Code Widget using the visual editor in the Admin UI.
- Widget SDKs - use the SDK for a Carousel, Grid or Feed to display the recommendations in the design of your choice. Use the Recommend Items to User endpoint when initializing the widget.
- API SDK - request the Recommend Items to User endpoint of the Recombee API using an SDK of your choice.
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 and put the recommendation requests inside it. Set the parameter distinctRecomms in order to deduplicate the assets among the rows.