← Back to Architecture

AI Architecture

Multi-agent AI system, memory architecture, and intelligent orchestration

Multi-Agent AI System

graph TB
    User[👤 User Query]
    DD[Domain Detector]
    CR[Capability Router]
    
    subgraph "Specialized Wellness Agents"
        NA[🥗 Nutrition Agent]
        EA[🏃 Exercise Agent]
        SA[😴 Sleep Agent]
        AA[😰 Anxiety Agent]
        MA[🧘 Meditation Agent]
        HA[💧 Hydration Agent]
        CA[📅 Calendar Agent]
        SH[🛒 Shopping Agent]
        OA[⌚ Oura Agent]
        GA[💬 General Agent]
    end

    MB[Message Bus<br/>A2A Communication]
    LLM[🧠 Gemini 2.5 Flash<br/>6000 tokens, 0.7 temp]
    
    subgraph "3-Tier Memory"
        EP[Episodic Memory]
        SM[Semantic Memory]
        PM[Procedural Memory]
        KG[Knowledge Graph]
    end
    
    subgraph "Intelligence Systems"
        ENE[Energy Predictor]
        MP[Meal Timing]
        PAT[Pattern Engine]
        IFA[IF Analyzer]
    end

    User --> DD
    DD --> CR
    CR --> NA
    CR --> EA
    CR --> SA
    CR --> AA
    CR --> MA
    CR --> HA
    CR --> CA
    CR --> SH
    CR --> OA
    CR --> GA

    NA --> MB
    EA --> MB
    SA --> MB
    MB --> NA
    MB --> EA
    MB --> SA

    NA --> LLM
    EA --> LLM
    SA --> LLM
    LLM --> NA
    LLM --> EA
    LLM --> SA

    NA <--> EP
    NA <--> SM
    NA <--> PM
    NA <--> KG

    NA --> ENE
    NA --> MP
    EA --> PAT
    SA --> IFA

    style User fill:#e3f2fd
    style DD fill:#fff3e0
    style CR fill:#f3e5f5
    style NA fill:#c8e6c9
    style EA fill:#c8e6c9
    style SA fill:#c8e6c9
    style LLM fill:#e1f5fe
    style MB fill:#ffebee
    style EP fill:#f0f4c3
    style SM fill:#f0f4c3
    style PM fill:#f0f4c3
    style KG fill:#f0f4c3

18+ Specialized AI Agents

🥗 Nutrition Agent

Meal planning, food logging, macro tracking, recipe recommendations

🏃 Exercise Agent

Workout tracking, exercise recommendations, recovery analysis

😴 Sleep Agent

Sleep tracking, quality analysis, optimization recommendations

⌚ Oura Sleep Agent

Deep Oura Ring sleep data analysis and insights

😰 Anxiety Agent

Stress management, anxiety tracking, coping strategies

🧘 Meditation Agent

Mindfulness exercises, meditation guidance, stress relief

💧 Hydration Agent

Water intake tracking, hydration reminders, optimization

📅 Calendar Agent

Schedule optimization, event management, time blocking

🛒 Shopping Agent

Shopping lists, pantry management, meal prep planning

⌚ Oura Agent

Comprehensive Oura Ring biometric data integration

💬 General Agent

Fallback agent for general wellness queries

📱 Mobile Agents

Fast conversational and mobile-optimized agents

Intelligence Systems

⚡ Energy Predictor

Forecasts daily energy levels based on sleep, exercise, nutrition, and stress patterns

  • • Hourly energy predictions
  • • Multi-factor analysis
  • • Time-period optimization
  • • Proactive recommendations

🍽️ Meal Timing Predictor

Optimizes meal timing based on activity, goals, and preferences

  • • Optimal meal windows
  • • IF/TRE support
  • • Macro timing optimization
  • • Exercise-meal coordination

🔍 Pattern Engine

Identifies behavioral patterns and cross-domain correlations

  • • Behavior pattern detection
  • • Cross-domain correlation
  • • Anomaly identification
  • • Causality inference

⏱️ IF Intelligence Analyzer

Intermittent fasting tracking and optimization

  • • Fasting window tracking
  • • Eating window optimization
  • • Performance correlation
  • • Personalized recommendations