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

# 작업 및 규칙

> Use PlayStream Actions and Rules to react to real-time events with triggers, conditions, and actions like granting rewards or sending push notifications.

# 작업 및 규칙

PlayStream 규칙을 사용하여 PlayStream 이벤트에 실시간으로 반응할 수 있습니다. 규칙은 다음으로 구성됩니다.

* 트리거 하나
* 조건 목록(선택 사항)
* 해당 트리거가 활성화될 때 수행할 하나 이상의 작업

예를 들어 플레이어에게 보상을 보내고, 10,000 XP 이상일 때 알림을 보내고 싶다면 다음과 같이 할 수 있습니다.

* 사용자에 대한 [세그먼트](https://docs.xbox.com/ko/services/playfab/live-service-management/game-configuration/segmentation/segmentation-overview.md)를 “High XP Players”라는 이름으로 정의하고, 기준을 **XP >= 10,000**으로 설정합니다.
* 해당 플레이어가 High XP Players 세그먼트로 진입하는 PlayStream 이벤트에 의해 트리거되는 규칙을 만듭니다.
* 해당 규칙에 대해 두 가지 작업을 설정합니다.
  1. 세그먼트의 플레이어에게 가상 화폐를 지급합니다.
  2. 플레이어를 축하하고 받은 것을 알리는 푸시 알림을 보냅니다.

## 함께 보기

* [작업 및 규칙 빠른 시작](https://docs.xbox.com/ko/services/playfab/data-analytics/acting-data/action-rules-quickstart.md)


## Related topics

- [작업 및 규칙 빠른 시작](https://docs.xbox.com/ko/services/playfab/data-analytics/acting-data/action-rules-quickstart.md)
- [실시간 분석 핵심 개념](https://docs.xbox.com/ko/services/playfab/data-analytics/ingest-data/real-time-analytics-core-concepts.md)
- [서비스에서 생성된 이벤트 활성화 또는 비활성화](https://docs.xbox.com/ko/services/playfab/data-analytics/ingest-data/opt-in-events.md)
- [Partner Center에서 XBOX 통계 및 통계 규칙 구성](https://docs.xbox.com/ko/publishing/game-publishing/how-to/data-platform-2013/how-to-configure-stats.md)
- [Economy V2 세그먼트 액션](https://docs.xbox.com/ko/services/playfab/economy-monetization/economy-v2/player-segmented-monetization/segment-actions.md)
