Things to Build

More simplified overview

graph TD
    classDef static fill:#a8e6cf,stroke:#000
    classDef dynamic fill:#bde0fe,stroke:#000
    classDef process fill:#ffd3b6,stroke:#000
    classDef interaction fill:#ffaaa5,stroke:#000
    
    S[Static Context<br>Base prompts & patterns]:::static
    
    subgraph Dynamic Sources
        N[Notion DB<br>- Journal entries<br>- Reflections<br>- Custom prompts]:::dynamic
        W[Whoop API<br>- Recovery<br>- Sleep<br>- Strain]:::dynamic
        H[Historical Interactions<br>- Pattern memory<br>- Response effectiveness]:::dynamic
    end
    
    U[User SMS]:::interaction -->|Command or Response| P[Python Server]:::process
    
    P -->|Load Base Context| S
    P -->|Read & Write| N
    P -->|Get Biometrics| W
    P -->|Update & Query| H
    
    P -->|Context-Enhanced Prompt| AI[AI Model]:::process
    AI -->|Personalized Coaching| U
    
    AI -->|Suggested Questions| N
    
    style P stroke:#ff8b94,stroke-width:4px

More detailed overview from a context perspective. All data will be saved in Firestore.

graph TD
    classDef firebase fill:#ffcb2b,stroke:#f5820d
    classDef client fill:#a8e6cf
    classDef external fill:#ffd3b6

    S[SMS/WhatsApp]:::client --> F[Firebase Functions]:::firebase
    W[Whoop API]:::external --> F
    F --> FB[Firestore DB]:::firebase
    F --> AI[OpenAI/Claude API]:::external
    F --> NT[Notion API]:::external
    FB --> F
    
    style F stroke:#f5820d,stroke-width:4px