# Architecture

Aurex follows a **3-layer architecture** that clearly separates:

1. **Agent Orchestration Layer** – *the brain*
2. **Data Intelligence Layer** – *the senses*
3. **Bot Construction Layer** – *the hands & interface*

This separation ensures **reliability, scalability, and extensibility**, while making it easy for users and developers to reason about the system.

### **High-Level Diagram**

```mermaid
flowchart TD
    U[User / App] --> BCL[Bot Construction Layer]
    BCL --> AOL[Agent Orchestration Layer]
    AOL --> DIL[Data Intelligence Layer]
    DIL --> Sources[Exchanges / Chains / APIs / Social / News]

    DIL --> AOL
    AOL --> BCL
```

**Flow:**

1. User designs / configures bots in the **Bot Construction Layer**.
2. The **Agent Orchestration Layer** interprets bot logic, runs workflows, and reasons about context.
3. The **Data Intelligence Layer** connects to external sources, normalizes data, and generates signals.
4. Results flow back upward → Agent → Bot → User.
