What is Recommend?
Recommend is a JavaScript UI library, available on GitHub, for Algolia Recommend with components for displaying recommendations on your site. Recommendations encourage users to discover more of your catalog based on what they’re already interested in.
Recommend exposes an API client to fetch recommendations and a set of UI components for each Algolia Recommend model:
Recommendations are an ideal complement to search experiences. If the user lands on an item which isn’t exactly what they were searching for, they can effortlessly jump to similar items. Conversely, when they find what they want, they can discover items that would complement their current selection.
Recommend lets you display such patterns anywhere you want: on your product page, in the search page with InstantSearch, in your autocomplete experience with Autocomplete, on a separate site, etc. Each Recommend component perfectly integrates with existing Algolia UI libraries, but also works as a standalone.
If you’re using a framework (such as Angular, Vue, or Svelte) that doesn’t have an official UI components integration, you can build custom components with the @algolia/recommend API client.
Frequently Bought Together
Frequently Bought Together recommends items that users often buy together (based on conversion events). The component lets you pass a reference item, and displays a list of recommended items using the Frequently Bought Together model from Algolia Recommend.
Related Products and Related Content
These models recommend items that are related to each other (based on click and conversion events). The component lets you pass a reference item, and displays a list of recommended items using the Related Products or Related Content models from Algolia Recommend.
Trending Items
The Trending Items model looks for popular items in your product catalog. Trends can be global, for example, recommend the most popular items in your entire product catalog. Or it can also be within a specific facet or category, for example, recommend the most popular winter sweaters.
The component lets the option to fetch global trends or trends within a facet, and displays a list of trending items using the Trending Items model from Algolia Recommend.
Trending Facets
The Trending Facets model looks for popular facet values for a given facet. For example you can recommend the most popular categories for the facet “categories”. The component lets you pass the facet name you want trending on.