This documentation is generated by Sensefuel.
AI Search & Product Discovery platform that makes ecommerce search personal.
NextProductToBuy
, PersonalInterest
, or Selection
algorithms) require it and will send back as a response an empty list of products if not provided.window.sensefuel_a038457e
.
window.sensefuel_a038457e
interface to become available.
Discovery
or Recommend
APIs.
path
, SameSite
, Expires
, Domain
, and other cookie options to comply with your cookie management policy (MDN Documentation).api.sensefuel.live/recommend
. Two fields are required regardless of the mode :
Parameter | Required | Content |
---|---|---|
X-API-KEY | Yes | Your dedicated API key. |
Content-Type | Yes | Only 'application/json' is supported. |
Parameter | Required | Content |
---|---|---|
siteUUID | Yes | Your dedicated site UUID. |
Parameter | Required | Content |
---|---|---|
slotId | Yes (in static mode) | ID of the slot corresponding to the zone where the recommended products are displayed. |
algorithm | Yes (in dynamic mode) | Chosen algorithm. One of : • CROSS_SELLING • CROSS_VISIT • NEXT_PRODUCT • SEMANTIC_SIMILARITY • SELECTION • PERSONAL_INTEREST |
productURL | Yes (on a product page) | URL of current visited product. |
userId | No | Identifier of current user, allowing to personalize results. |
storeId | No | Applies query to a specific seller/dealer/store. |
constraints | No | In dynamic mode, allows to fine-tune the recommendation results. |
fields | No | The products fields to return. |
selection | No | The ID of the products selection within which to look for the recommended products. |
size | No | In dynamic mode, the number of recommended products to return. Default: 10. |
segments | No | List of user segmentation criteria used to pick the right slot config. |
Status code | Description |
---|---|
200 | Products to be recommended were retrieved and returned |
204 | No recommendation configuration can be applied for this request |
400 | Invalid request (e.g.: in dynamic mode, provided algorithm is unknown) |
401 | Access denied (missing or invalid API key) |
403 | The requested algorithm is not activated for the client |
404 | In static mode, slot not found |
500 | Technical error |
{
"products": [
{
"item_group_id": "string",
"id": "string",
"title": "string",
"price": "number",
"brand": "string",
"description": "string",
"availability": "string",
"sf:variants": [
{
"link": "string",
"id": "string",
"image_link": "string",
"availability": "string",
"color": "string"
}
]
}
],
"layout": {
"titleAlignment": "string",
"titleColor": "string",
"backgroundColor": "string",
"backgroundTitle": "string",
"templateType": "string"
},
"details": {
"configId": "string",
"slotId": "string",
"source": "string"
}
}
catalog
or offers
), the identifier of the slot and the config used.{
"products": [
{
"item_group_id": "PRODUCT_ID",
"title": "PRODUCT_TITLE",
"id": "CHOSEN_ARTICLE_ID",
"price": 143,
"brand": "PRODUCT_BRAND",
"currency": "NOC",
"is_new": true,
"is_promo": false,
"description": "PRODUCT_DESCR",
"normal_price": 143,
"link": "https://ARTICLE_URL",
"image_link": "https://IMAGE_LINK.jpg",
"availability": "in stock",
"size": "CHOSEN_ARTICLE_SIZE",
"color": "CHOSEN_ARTICLE_COLOR",
"sf:variants": [
{
"link": "https://ARTICLE_URL",
"id": "ARTICLE_ID",
"image_link": "https://ARTICLE_URL.jpg",
"availability": "in stock",
"size": "ARTICLE_SIZE",
"color": "ARTICLE_COLOR"
},
{
"link": "https://ARTICLE_URL",
"id": "ARTICLE_ID",
"image_link": "https://ARTICLE_URL.jpg",
"availability": "in stock",
"size": "ARTICLE_SIZE",
"color": "ARTICLE_COLOR"
}
]
},
{
"item_group_id": "SECOND_PRODUCT_ID",
"title": "SECOND_PRODUCT_TITLE",
"id": "CHOSEN_ARTICLE_ID",
"price": 120,
"brand": "SECOND_PRODUCT_BRAND",
"currency": "NOC",
"is_new": false,
"is_promo": false,
"description": "SECOND_PRODUCT_DESCR",
"normal_price": 120,
"link": "https://SECOND_PRODUCT_LINK",
"image_link": "https://SECOND_PRODUCT_IMAGE_LINK.jpg",
"availability": "in stock",
"size": "SECOND_PRODUCT_SIZE",
"color": "SECOND_PRODUCT_COLOR"
}
]
}
{
"products": [
{
"item_group_id": "PRODUCT_ID",
"title": "PRODUCT_TITLE",
"id": "ARTICLE_ID",
"price": 120,
"brand": "PRODUCT_BRAND",
"currency": "NOC",
"is_new": false,
"is_promo": false,
"description": "PRODUCT_DESCR",
"normal_price": 120,
"link": "https://PRODUCT_LINK",
"image_link": "https://PRODUCT_IMAGE_LINK.jpg",
"availability": "in stock",
"size": "PRODUCT_SIZE",
"color": "PRODUCT_COLOR"
}
],
"layout": {
"titleAlignment": "SLOT_CONFIG_TITLE_ALIGNMENT",
"titleColor": "SLOT_CONFIG_TITLE_COLOR",
"backgroundColor": "SLOT_CONFIG_BACKGROUND_COLOR",
"backgroundTitle": "SLOT_CONFIG_BACKGROUND_TITLE",
"templateType": "SLOT_CONFIG_TEMPLATE_TYPE"
},
"details": {
"configId": "SLOT_CONFIG_ID",
"slotId": "SLOT_IDENTIFIER",
"source": "offers" // offers OR catalog
}
}
SemanticSimilarity
algorithm, the search2vec
feature was not activated for the last indexation.NextProductToBuy
algorithm. You need to make sure that some articles are added to the user cart.PersonalInterest
algorithm.