# 6.2.1 Data Flow Between Blockchain and AI Layer

* **Data Extraction**\
  The AI service extracts data directly from the blockchain through off-chain communication channels. This data includes player behavior, transaction history, market data, and game-specific metrics. These data points are crucial for AI to conduct comprehensive analysis.\

* **Oracles for Data Retrieval**\
  Decentralized oracles are used to securely extract relevant data from the blockchain. Oracles act as intermediaries, ensuring the integrity of data as it flows from the on-chain environment to the off-chain AI system.\

* **AI Processing and Analysis**\
  Once the data is collected, AI models process the data off-chain, providing insights that can influence the in-game economy, detect fraud, or generate events based on player engagement.
