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

# Churn Prediction Quickstart

> Create a PlayFab Churn Prediction segment for high-risk players and attach mitigation actions like granting virtual currency to reduce attrition automatically.

# Player Churn Prediction quickstart

## Prerequisites

1. Sign in to [PlayFab portal](https://developer.playfab.com).
2. Navigate to your title.

## Create a Churn Prediction segment and apply mitigation strategy

**Note** - Churn Prediction segments can only be created 48 hours after the feature has been enabled for the title.

1. On the **Players** page, select the **Segments** tab at the top.

2. Select **New Segment.**

3. Enter a descriptive name as the **Segment name.** For example, "MyChurnPredictionSegment".

4. Under **Players**, select **Churn Prediction** and then select **High Risk** as the churn category.

   ![Create a Segment Screenshot](https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/learn-data/churn-prediction/CreateChurnSegment.png?fit=max\&auto=format\&n=MjJ0-cTsb1bpaMcX\&q=85\&s=baa87072d6ca7edbaebca30911db35e9)

5. **Actions**, select **Add Action.**

   ![Create an Action](https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/learn-data/churn-prediction/ActionsPane.png?fit=max\&auto=format\&n=MjJ0-cTsb1bpaMcX\&q=85\&s=0a62c98f5a20bbd31d25492388a013e4)

6. For **Type,** select **Grant Virtual Currency.** \

   For **Virtual currency code,** select **GC (Game Coins).** \

   For **Amount,** enter **50** as the amount you would like to grant to the player. \


   ![Grant Virtual Currency](https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/learn-data/churn-prediction/GrantCoins.png?fit=max\&auto=format\&n=MjJ0-cTsb1bpaMcX\&q=85\&s=f2e175c6b3f6eccd48fece347e5d43f7)

7. Navigate back to **Segments** page to see your newly created churn segment and the count of players within that segment.

You've successfully created a player segment for high-risk churn players and applied a mitigation strategy to reduce churn rate and retain your players.


## Related topics

- [Churn Prediction Overview](https://devdocs.xbox.com/services/playfab/data-analytics/learn-data/churn-prediction/overview.md)
- [PlayFab data and analytics documentation](https://devdocs.xbox.com/services/playfab/data-analytics/index.md)
- [Churn Prediction Pricing](https://devdocs.xbox.com/services/playfab/data-analytics/learn-data/churn-prediction/pricing.md)
- [player_churn_prediction_changed](https://devdocs.xbox.com/services/playfab/api-references/events/TargetedConfiguration/player-churn-prediction-changed.md)
- [ChurnRiskLevel](https://devdocs.xbox.com/services/playfab/api-references/events/data-types/churnrisklevel.md)
