> ## 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.

# 流失预测快速入门

> 为高风险玩家创建 PlayFab 流失预测细分，并附加缓解操作（例如发放虚拟货币），以自动减少玩家流失。

# 玩家流失预测快速入门

## 先决条件

1. 登录 [PlayFab 门户](https://developer.playfab.com)。
2. 导航到你的游戏。

## 创建流失预测细分并应用缓解策略

**注意** - 只有在为游戏启用该功能 48 小时后才能创建流失预测细分。

1. 在 **Players** 页面上，选择顶部的 **Segments** 选项卡。

2. 选择 **New Segment**。

3. 输入一个描述性名称作为 **Segment name**。例如，"MyChurnPredictionSegment"。

4. 在 **Players** 下，选择 **Churn Prediction**，然后选择 **High Risk** 作为流失类别。

   ![创建细分屏幕截图](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** 中，选择 **Add 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. 对于 **Type**，选择 **Grant Virtual Currency**。\

   对于 **Virtual currency code**，选择 **GC (Game Coins)**。\

   对于 **Amount**，输入 **50** 作为你要发放给玩家的数量。\


   ![发放虚拟货币](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. 导航回 **Segments** 页面，查看新创建的流失细分以及该细分中的玩家数。

你已成功为高流失风险玩家创建了玩家细分，并应用了缓解策略来降低流失率并留住玩家。


## Related topics

- [流失预测概述](/zh-CN/services/playfab/data-analytics/learn-data/churn-prediction/overview.md)
- [PlayFab 数据与分析文档](/zh-CN/services/playfab/data-analytics/index.md)
- [流失预测定价](/zh-CN/services/playfab/data-analytics/learn-data/churn-prediction/pricing.md)
- [player_churn_prediction_changed](/zh-CN/services/playfab/api-references/events/TargetedConfiguration/player-churn-prediction-changed.md)
- [PlayStream 事件模型参考](/zh-CN/services/playfab/api-references/events/index.md)
