The Recommendations API allows you to promote and recommend items to your customers. You can get item recommendations from catalogs on your site using algorithms provided by apps.
Note: Currently, the Recommendations API is for use with Wix Stores only.
With the Recommendations API, you can:
Algorithms are programs that identify and return a set of item recommendations based on a catalog. There are different types of algorithms, identified by their algorithmType
that calculate different kinds of recommendations. For example, Algorithms with the RELATED_ITEMS
algorithmType
also take a list of items as input and use those to calculate recommendations.
For example, Wix Stores provides the following algorithms:
Name | Description | Algorithm Type |
---|---|---|
“From the same categories” | Returns items that share the most categories with items in the list provided. | RELATED_ITEMS |
“Frequently bought together” | Returns items that are frequently bought together with the first item in the list provided. | RELATED_ITEMS |
“Frequently viewed together” | Returns items that are frequently viewed together with the first item in the list provided. | RELATED_ITEMS |
“Best sellers” | Returns the items from the catalog with the highest number of sales. | GLOBAL |
Tip: If you want to display item recommendations on your site, you can use the Wix Stores “Slider Product Gallery” and “Related Products” elements. These elements use Recommendations API functionality without the need for manual coding. In these elements' settings, you can choose which algorithm to use from among those available on your site.
On your Product, Cart, and Thankyou pages you can use RELATED_ITEMS
type algorithms to get recommendations related to the product/s shown on the page.
On other pages, you can get recommendations from GLOBAL
type algorithms.
listAvailableAlgorithms()
. Currently, the only app providing algorithms and their supported catalogs is Wix Stores.We To use the Recommendations API,
import { recommendations }
from wix-ecom-backend
:
Send emails to customers recommending related products.
Functions in the Recommendations API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.