# 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](/product-discovery/tracking-and-sending-events/setup-guide/xo-recommendations-activities.md)
* Functional implementation of product ingestions through [Items API](/product-discovery/sending-and-managing-product-data/what-is-the-items-api.md)
* 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, hashed 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://crownpeak.gitbook.io/product-discovery/ai-scores-for-fhr/setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
