> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use AI Targeting in a segment

> Use AI Targeting to create segments that target visitors based on their real-time predicted probability of converting for a specific goal.

> [!NOTE]
>
> AI Targeting requires the Contextual Bandit & AI Targeting Premium add-on, available in both Web Experimentation and Feature Experimentation. Contact your Customer Success Manager for details.

Kameleoon AI Targeting uses machine learning to calculate propensity scores in real time, so you can target visitors based on their likelihood to convert for a specific goal.

## Prerequisites

Before you can use the **Likelihood to convert** condition in a segment, you must:

1. Enable AI Targeting on at least one goal. See [Enable AI Targeting on a goal](https://docs.kameleoon.com/user-manual/ai-predictive-targeting/enable-ai-predictive-targeting-on-a-goal.md).
2. Have at least one [trigger](https://docs.kameleoon.com/user-manual/assets/triggers/create-a-trigger.md) configured. For guidance on picking a meaningful trigger, see [How to choose the right trigger](https://docs.kameleoon.com/user-manual/ai-predictive-targeting/enable-ai-predictive-targeting-on-a-goal.md#how-to-choose-the-right-trigger).
3. Wait for the AI model to complete its learning phase (7 days and 100,000 visits by default).

## Create or edit a segment with Likelihood to convert

1. Click **Settings** > **Segments**.

2. Click **New segment** to create a segment, or click **Edit** on an existing segment.

3. In the segment builder, expand the **Conversions** section.

4. Click **Likelihood to convert**.

![Condition selection](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/assets/segments/target-users-based-on-likelihood-to-convert/define-segment.png)

5. Select a likelihood range. You can choose one of the predefined buckets (**Very low**, **Low**, **Moderate**, **High**, or **Very high**), each representing roughly 20% of the eligible audience. Alternatively, select **Personalized** to define a custom range between **0** and **100**. A score of **0** indicates the lowest predicted conversion probability relative to other visitors, and a score of **100** indicates the highest.
6. Choose the goal on which you enabled AI Targeting.
7. Choose the trigger to associate with the prediction.
8. Click **Save** to confirm.

> [!NOTE]
>
> You can also apply the **Likelihood to convert** condition directly to an experiment through [quick targeting](https://docs.kameleoon.com/user-manual/experimentation/web-experimentation/configure-and-launch/define-your-experiments-targeting.md#target-specific-visitors), without creating a reusable segment.

## AI model status badges

Every segment that uses the **Likelihood to convert** condition displays a status badge, so you can monitor the AI model's progress at a glance.

| Badge | Color | Meaning |
| - | - | - |
| **AI Learning** | Blue | The model is collecting data. By default, it requires 7 days and 100,000 visits to complete training. During this phase, the AI condition is inactive, and the segment falls back to its other active conditions. |
| **AI Active** | Green | The model is operational and evaluates visitors in real time. |
| **AI Alert** | Orange | The learning phase is taking longer than expected, usually due to low traffic. |

### View learning progress

Hover over the **AI Learning** badge to see a tooltip with the exact training progress:

* **Time:** X of 7 days elapsed
* **Traffic:** X of 100,000 visits collected

![AI Learning](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/assets/segments/target-users-based-on-likelihood-to-convert/ai-learning-segments.png)

> [!WARNING]
>
> While the model is in the **AI Learning** state, the Likelihood to convert condition is inactive. The segment targets visitors using only its other active conditions.

## Monitor AI Targeting status from the Experiments dashboard

You can check an AI model's status without leaving the Experiments dashboard:

1. Hover over the information icon associated with an experiment.
2. In the pane that opens, hover over the **sparkles** icon next to the segment.
3. A tooltip displays the current AI status for that segment.

![AI Targeting from Experiments dashboard](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/assets/segments/target-users-based-on-likelihood-to-convert/ai-active-experiments.png)

## Use the segment in a campaign

After the AI model reaches **AI Active** status, add your segment to:

* A [web experiment](https://docs.kameleoon.com/user-manual/experimentation/web-experimentation/prompt-based-experiments/pbx-build/create-a-prompt-based-experiment.md)
* A [personalization](https://docs.kameleoon.com/user-manual/web-personalization/set-up-and-launch-a-personalization.md) campaign
* A [feature experiment](https://docs.kameleoon.com/user-manual/experimentation/feature-experimentation/create-and-manage-flags/create-a-feature-flag.md)
