Bestsellers
Introduction
The "Bestsellers" scenario suggests products that have the highest number of purchases. These recommendations are based on the popularity and widespread demand for these items across the whole user base of your platform.
Scenario Setup
In the Recombee Admin UI, navigate to the Scenarios section and choose Create Scenario.
- Enter a Scenario ID. Select a distinctive label for your recommendation scenario, such as "bestsellers"
- Choose Recommendation type - Items to User

Logic
The Logic defines the behavior of the recommendation engine.
- Choose the ecommerce:bestseller logic type from the E-commerce models
This Logic utilizes a model specifically designed for recommending globally popular and highly purchased items, ensuring effective suggestions based on their widespread demand.

Filters
You always want to recommend only the products that are in stock. Therefore you need to apply a Filter rule to allow only such products.
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.
You can select a predefined rule from the Recombee Library to allow only the available products.
Depending on how you represent availability in the catalog, it can be one of the following rules:
- Not deleted items - when you have a deleted property (true/false)
- Available items - when you have an available property (true/false)
- Items in stock [Google Merchant] - when you have a string available property with "in stock" as its value

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 homepage boxes 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 items among the boxes.