---
description: >-
  Discover the requirements for implementing AI Scores, including activity
  tracking, product feeds, and sales history data for effective personalization.
---

# Setting up AI Scores

## Considerations

When looking to implement AI Scores, consider the following:

* What sections of the site do you want AI Scores to power?​
* Where do you plan to use AI Scoring? Website, app or both​?
* Implementing AI Scores will affect page caching. If this is a concern:​
  * Do all pages need to have AI Scores?​
  * Do all users need to have AI Scores?

## Requirements <a href="#requirements" id="requirements"></a>

To use AI Scores you will need the following:

* Functional implementation of front-end tracker
  * Activity tracking for [XO Recommendation activities](../tracking-and-sending-events/setup-guide/xo-recommendations-activities)
* Functional implementation of product ingestions through [Items API](../sending-and-managing-product-data/what-is-the-items-api)
* Sales history data (if tracking has been in place for less than 6 months)

Once your implementation has been successful (and, if necessary, you have supplied the required data), the Crownpeak Professional Services team will take care of the necessary configurations to run AI Scores.

### Sales history

Provide your sales history to your technical consultant. We recommend supplying at least 6 months of history. We will import your data in CSV-format. If possible send a CSV-file, preferably comma delimited. The file must contain the following fields:

<table><thead><tr><th width="166">Field</th><th width="493">Description</th><th>Format</th></tr></thead><tbody><tr><td>ItemId</td><td>ID of the product</td><td>String</td></tr><tr><td>OrderId</td><td>ID of the order</td><td>String</td></tr><tr><td>ProfileId</td><td>ID of the customer (sessionId, email, etc)</td><td>String</td></tr><tr><td>Date</td><td>Date of the order in ISO format</td><td>ISO Date String</td></tr><tr><td>Price</td><td>Price of the order in cents/pence. (£9.99 should be sent as 999)</td><td>Integer</td></tr><tr><td>Quantity</td><td>The number of products purchased</td><td>Integer</td></tr></tbody></table>

{% hint style="warning" %}
Ensure that the currency is the same for all sales entries.
{% endhint %}
