Guide
Smart Recommendations
Configurations
2min
if you haven't gone through the prerequisites and the v2 structure, please have a look at overview docid\ czeodl0skcuv 18ipuplr merchants can create and manage multiple klevu recommendation banners via our kmc (klevu merchant centre) the configuration via kmc includes the page type, the banner type and even the template to render the banner our recommended approach to display these banners created via the kmc is to use our html div integration https //support klevu com/knowledgebase/integration steps for recommendations/ approach, which includes handling of api calls and banner rendering out of the box you can also retrieve the kmc banner configuration via an api call and process it however you like this api call uses a simple get request with no payload, and since it is intended for use on the frontend there is no authentication required understanding the response parameters description metadata title the title of the recommendation banner, eg "our newest arrivals!" metadata recskey the unique identifier of the banner this will match the value of recs id in the request, eg 3a5580bf c5b2 407e acac 4a58ae730b64 metadata pagetype the page type this banner should be displayed on this will be one of home homepage category collection or category listing page product product detail page checkout the cart or checkout metadata logic the type of recommendation banner which was configured in the kmc this will be one of trending trending personalized newest arrivals recently viewed hand picked other also viewed similar bought together metadata maxproducts the maximum number of products to show within this banner metadata productthreshold the minimum number of results before this banner will be displayed metadata enabled whether or not this particular banner is enabled search basepath the search url to be used to send the recommendation request to, eg eucs19v2 ksearchnet com/cs/v2/search search payload this correlates to the recordqueries section of the api call to be fired for this recommendation templates base the html to be used for rendering the recommendation banner, in klevu javascript library markup styles base the css that is used for rendering the recommendation banner, in klevu's template js library markup scripts recsobject the javascript that is executed after the rendering of the html recommendation banner, in klevu's template js library markup note regarding the response templates base , styles base , and scripts recsobject returned in the configuration api response should not be used w hen using the api directly since they require the klevu's template js library