How to test product recommendations

Our product recommendation engine works based on algorithms. Each algorithm represents a set of functions, methods and conditions to return data based on specific data input. Here you can learn more about the algorithms.

You can test the results of those algorithms for an user without creating a campaign and content from the Setup->Algorithms section.

Remember that the product recommendation setup inside a campaign allows you to set up to 3 algorithms and also a fallback, in order to return more results. Here you can only test the return results for one algorithm.

What you will need:

  • User ID or email address
  • Event data (required for some algorithms)
  • Algorithm params (required for some algorithms)

Algorithm params:

Please check params available for each algorithm.

Event Data

The event data must be in JSON format the same as you have it in the integration.

In the examples below you will see what is needed for the recommender engine. If you copy the event JSON from console or integration should work fine.

Examples:

# search event
{
    "query": "flower"
}
# viewitem or addtocart event
{
    "itemId": "item_id"
    ...
}
# confirmation event
{
    "items": [{"id": "item_id", "quantity": 1}]
    ...
}

Related Articles