Skip to main content
Prerequisites — before implementing AI Search, complete the Cookie consent and Installation steps on the JS Library page. Kleep must not load until the visitor has consented via your CMP, and the library must be loaded site-wide.
Kleep AI Search integrates a search component into your storefront, powered by Kleep’s AI algorithms. Product Feeds must be created and deployed before you start this integration — please confirm this with your Kleep representative before implementing.

What AI Search delivers

Kleep AI Search welcome page showing most-searched queries and trending searches

A welcome page with first insights on your catalogue — most-searched queries and trends

Kleep AI Search auto-suggestions dropdown appearing as the shopper types

Auto-suggestions appear as the shopper types. The complete list of suggestions is managed in the Kleep Search AI Dashboard — you can add, update, or remove them there.

Kleep AI Search product-list page with add-to-cart and wishlist actions

A product-list page with add-to-cart and wishlist actions

The product-list page supports two shopper actions through callbacks you implement:
Add a size to the cart if it’s in stock. When the shopper taps Add to cart on a size, your addToCart callback runs with the variant reference.
  • Input — reference of the variant (size) to add to the cart
  • Action — add the reference to the cart like a regular add-to-cart
  • Outputtrue on success, false otherwise
Checking if the variant is in stock is handled by Kleep — you don’t need to verify availability yourself.
Add / remove a product from the wishlist. When the shopper taps the heart icon, your toggleWishlist callback runs with the product reference.
  • Input — reference of the product being toggled
  • Action — if the reference is in the wishlist, remove it; if not, add it
  • Outputtrue if the reference is now in the wishlist, false otherwise
Step 1: Create the container Add the div where the search component should be attached:
Step 2: Initialize with your credentials Call kleep.search.init with your account credentials:
anonKey and retailerId are provided by your Kleep representative during onboarding.
Step 3: Render the search box Call kleep.search.renderBox with the container ID and your callback implementations:

Parameters & Callbacks

Full example with callbacks

Check your dedicated ID Recap Table (provided by your Kleep representative) for the exact reference format to pass to these callbacks.
If you’re using AI Search on a Prestashop store, your Kleep webservice key needs a few extra GET permissions on top of the ones listed in the Prestashop integration guide:

Cookies & data privacy

Kleep is fully gated by visitor consent: the script only loads after consent is collected through your CMP, and you must condition its loading accordingly. For the complete list of trackers, the data processed, the purposes and legal bases, hosting, subprocessors and security, see Cookies, CMP & Data Privacy.