---
schema_version: "1"
id: 0ac89107d9e25ad1c3cf46ba454454bdbb5c080ca908d58c5df3490fead8d8b0
title: Configure and Test Recommenders
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/einstein/guides/einstein-recommendations/configure-and-test-recommenders.md
canonical_url: https://developer.salesforce.com/docs/commerce/einstein-api/guide/configure-and-test-recommenders.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2378447467e92a329b67ce39229eb15a3e2ce116d05c4a4b7a09e386c3397d0a
products:
  - B2C Commerce Einstein API
  - Salesforce APIs
---
# Configure and Test Recommenders

When using the Einstein Product Recommendations API, configure the recommenders you want to use first, and then test the output of those recommenders.

Configuring recommenders for the API is the same as creating them for your storefront. For more information on where to place recommenders and how to select strategies, see [Recommenders](https://help.salesforce.com/s/articleView?id=cc.b2c_recommenders.htm&type=5) and [Strategies](https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_strategies.htm&type=5) in the Salesforce B2C Commerce Infocenter.

For a step-by-step tutorial on how to set up and configure recommenders, you can view the visit [Configuring a Recommender for Product Recommendations](https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_config_product_recommendation.htm&type=5) in the Salesforce B2C Commerce Infocenter.

## Usage Examples

These high-level examples can help you start creating and placing recommenders that you can use to test the Einstein Recommendations API.

- **Homepage** - Consider recommending best sellers or the most popular products from the whole catalog. To do that, select a _Products in All Categories_ recommender, and select "Recent top sellers" or "Recent most viewed" as the primary strategy.
- **Product Detail Page** - To recommend products based on the product currently being viewed, consider a _Product to Product_ recommender. To show products that a shopper may also like, select "Customers who viewed also viewed" as the primary strategy for this recommender. To show products that others also bought, select "Customers who bought also bought" as the primary strategy for this recommender. To recommend complementary items for apparel sets, consider _Complete the Set_ recommender.
- **Category Grid Page** - To recommend products based on the category currently being viewed, consider the _Products in a Category_ recommender. To show featured products in this category, select "Recent top sellers" or "Recent most viewed" as the primary strategy.
- **Cart** - To capture upsell opportunities on an empty cart, consider the _Recently Viewed_ or _Products in All Categories_ recommenders, which require no anchor. Because these recommenders don't use the cart's contents, their recommendations are the same regardless of what's in the cart. When the cart contains products, configure the cart page to take in those products as anchors and use the _Product to Product_ or _Complete the Set_ recommender for personalized upsell.
- **404 or No Search Result Page** - Consider showing shoppers featured products by using the _Products in All Categories_ recommender. Or remind shoppers of recently visited products by using the _Recently Viewed_ recommender.

## Test Getting Recommendations

To test getting recommendations, get a list of available recommenders for your site first, and then test the recommendation results generated by the recommender you choose.

1. To get a list of available recommenders, use the [`getRecommenders` endpoint](https://developer.salesforce.com/docs/commerce/einstein-api/references/einstein-recommendations?meta=getRecommenders).
2. Make sure that you have one or more of the available recommenders set up in [Einstein Configurator](https://configurator.cquotient.com).
3. From the list of recommenders, choose one and test the generated product recommendations provided using the [`getRecommendations` endpoint](https://developer.salesforce.com/docs/commerce/einstein-api/references/einstein-recommendations?meta=getRecommendations).
