> For the complete documentation index, see [llms.txt](https://play-ai.gitbook.io/play-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://play-ai.gitbook.io/play-ai/system-overview.md).

# System Overview

Play AI functions as a dynamic streaming system powered by AI, seamlessly integrating ViZDoom gameplay with chat interactions and an interactive 3D avatar system.

### Core Components

#### 1. Game Engine Integration (ViZDoom Layer)

* **Main Controller:** Synchronizes game state with system components.
* **Data Extraction Module:** Tracks player movement, enemy positions, and map state.
* **Game State Publisher:** Broadcasts game events in real-time.

#### 2. AI Agent System

* **Core Agent:** Reinforcement learning model making real-time tactical decisions.
* **Personality Engine:** Manages AI personality and interaction style.
* **Chat Processing Pipeline:** Handles viewer interactions and prioritizes messages.

#### 3. Avatar System

* **3D Model Controller:** Synchronizes lip movement, expressions, and gestures.
* **Animation Engine:** Ensures fluid and natural movements.
* **Render Pipeline:** Manages real-time visual output.
