# sirinemaaroufi/ai-mental-health-coach architecture

> Architecture diagram of the GitHub repository sirinemaaroufi/ai-mental-health-coach, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sirinemaaroufi/ai-mental-health-coach
- Repository: https://github.com/sirinemaaroufi/ai-mental-health-coach

## Overview

This experimental wellness coach runs from a single notebook. A user starts a group chat; its agents provide empathetic conversation, SMART goal-setting, and resource suggestions, while a validator checks responses for tone and clinical-advice boundaries. The goal-setting agent persists goals through Google Drive in Colab. The README documents these capabilities and integrations, but no notebook source excerpts were available, so the graph reflects documented relationships only.

Main entry points: [`AI_Mental_Health_Coach.ipynb`](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb) (Group Chat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Coach Workflow"]
  node_chat["Group Chat"]
  node_empathy["Empathetic Agent"]
  node_goals["Goal Agent"]
  node_resources["Resource Agent"]
end

subgraph group_inference["AI and Validation"]
  node_validator["Response Validator"]
  node_ollama["Ollama LLM"]
end

subgraph group_persistence["Goal Storage"]
  node_drive[("Google Drive")]
  node_goalfile["Goals JSON"]
end

node_user(("User"))

node_user -->|"starts chat"| node_chat
node_chat -->|"coordinates agents"| node_empathy
node_chat -->|"coordinates agents"| node_goals
node_chat -->|"coordinates agents"| node_resources
node_chat -->|"uses inference"| node_ollama
node_empathy -->|"checks responses"| node_validator
node_goals -->|"checks responses"| node_validator
node_resources -->|"checks responses"| node_validator
node_goals -->|"stores goals"| node_drive
node_drive -->|"persists JSON"| node_goalfile
node_chat -->|"returns support"| node_user

click node_chat "https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb"
click node_empathy "https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb"
click node_goals "https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb"
click node_resources "https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb"
click node_validator "https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chat,node_empathy,node_goals,node_resources,node_user toneBlue
class node_validator,node_ollama toneAmber
class node_drive,node_goalfile toneMint
```

## Components

### Coach Workflow

- [Group Chat](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb): `AI_Mental_Health_Coach.ipynb`
- [Empathetic Agent](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb): `AI_Mental_Health_Coach.ipynb`
- [Goal Agent](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb): `AI_Mental_Health_Coach.ipynb`
- [Resource Agent](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb): `AI_Mental_Health_Coach.ipynb`

### AI and Validation

- [Response Validator](https://github.com/sirinemaaroufi/ai-mental-health-coach/blob/main/AI_Mental_Health_Coach.ipynb): `AI_Mental_Health_Coach.ipynb`
- **Ollama LLM**

### Goal Storage

- **Google Drive**
- **Goals JSON**

### Other components

- **User**

## Connections

- User → Group Chat: starts chat (evidence: `README.md`)
- Group Chat → Empathetic Agent: coordinates agents (evidence: `README.md`)
- Group Chat → Goal Agent: coordinates agents (evidence: `README.md`)
- Group Chat → Resource Agent: coordinates agents (evidence: `README.md`)
- Group Chat → Ollama LLM: uses inference (evidence: `README.md`)
- Empathetic Agent → Response Validator: checks responses (evidence: `README.md`)
- Goal Agent → Response Validator: checks responses (evidence: `README.md`)
- Resource Agent → Response Validator: checks responses (evidence: `README.md`)
- Goal Agent → Google Drive: stores goals (evidence: `README.md`)
- Google Drive → Goals JSON: persists JSON (evidence: `README.md`)
- Group Chat → User: returns support (evidence: `README.md`)
