# ruthwikreddy14/supportmind architecture

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

- Interactive diagram: https://gitdiagram.com/ruthwikreddy14/supportmind
- Repository: https://github.com/ruthwikreddy14/supportmind

## Overview

SupportMind is a customer-support application whose central workflow is a customer conversation: the frontend sends a message to the FastAPI chat route, the agent looks up the customer and recalls relevant memory, generates a contextual response, and retains new interaction facts. Separate customer and memory APIs support profiles and the Memory Inspector’s retain, recall, reflection, and bank-inspection features. The README documents Hindsight Cloud as the memory layer. Edges reflect shown calls or documented relationships; unsampled details are not inferred.

Main entry points: [`frontend/src/App.jsx`](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/App.jsx) (Application shell), [`frontend/src/api/client.js`](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/api/client.js) (HTTP API client), [`backend/services/agent_service.py`](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/agent_service.py) (Support agent), [`backend/services/memory_service.py`](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/memory_service.py) (Memory service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Support interface"]
  node_app["Application shell<br/>[App.jsx]"]
  node_dashboard["Support dashboard<br/>[DashboardView.jsx]"]
  node_customers_view["Customer list<br/>[CustomersView.jsx]"]
  node_customer_detail["Customer profile"]
  node_chat_view["Support chat<br/>[ChatView.jsx]"]
  node_memory_view["Memory inspector"]
  node_settings_view["System settings<br/>[SettingsView.jsx]"]
  node_navigation["Navigation and header<br/>[Sidebar.jsx]"]
  node_status_badge["Status badges<br/>[StatusBadge.jsx]"]
  node_api_client["HTTP API client<br/>[client.js]"]
end

subgraph group_api["Backend API"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_chat_api["Chat routes<br/>[chat.py]"]
  node_customer_api["Customer routes<br/>[customers.py]"]
  node_memory_api["Memory routes<br/>[memory.py]"]
  node_schemas["API schemas<br/>[schemas.py]"]
  node_config["Runtime configuration<br/>[config.py]"]
end

subgraph group_support["Support domain"]
  node_agent["Support agent<br/>[agent_service.py]"]
  node_customer_catalog[("Customer profiles and seeds<br/>[customer.py]")]
end

subgraph group_memory["Memory system"]
  node_memory_service["Memory service<br/>[memory_service.py]"]
end

subgraph group_integrations["External services"]
  node_hindsight[("Hindsight Cloud")]
  node_llm{{"Gemini / OpenAI"}}
end

node_customer(("Customer / operator"))

node_customer -->|"uses"| node_app
node_app -->|"checks and loads"| node_api_client
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_customers_view
node_app -->|"renders"| node_customer_detail
node_app -->|"renders"| node_chat_view
node_app -->|"renders"| node_memory_view
node_app -->|"renders"| node_settings_view
node_app -->|"renders"| node_navigation
node_chat_view -->|"sends messages"| node_api_client
node_customer_detail -->|"loads details"| node_api_client
node_memory_view -->|"manages memory"| node_api_client
node_settings_view -->|"loads status"| node_api_client
node_chat_view -->|"displays status"| node_status_badge
node_customer_detail -->|"displays status"| node_status_badge
node_customers_view -->|"displays status"| node_status_badge
node_dashboard -->|"displays status"| node_status_badge
node_memory_view -->|"displays status"| node_status_badge
node_settings_view -->|"displays status"| node_status_badge
node_api_client -->|"posts chat"| node_chat_api
node_api_client -->|"requests profiles"| node_customer_api
node_api_client -->|"requests memory"| node_memory_api
node_api_app -->|"mounts routes"| node_chat_api
node_api_app -->|"mounts routes"| node_customer_api
node_api_app -->|"mounts routes"| node_memory_api
node_api_app -->|"loads CORS settings"| node_config
node_api_app -->|"checks connection"| node_memory_service
node_chat_api -->|"dispatches chat"| node_agent
node_chat_api -->|"uses chat schemas"| node_schemas
node_customer_api -->|"reads profiles"| node_customer_catalog
node_customer_api -->|"lists memories"| node_memory_service
node_customer_api -->|"uses memory schema"| node_schemas
node_memory_api -->|"dispatches operations"| node_memory_service
node_memory_api -->|"uses memory schemas"| node_schemas
node_agent -->|"identifies customer"| node_customer_catalog
node_agent -->|"recalls and retains"| node_memory_service
node_agent -->|"returns chat response"| node_schemas
node_agent -->|"loads model settings"| node_config
node_agent -.->|"generates response"| node_llm
node_memory_service -->|"loads credentials"| node_config
node_memory_service -->|"retains, recalls, reflects"| node_hindsight

click node_app "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/App.jsx"
click node_dashboard "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/DashboardView.jsx"
click node_customers_view "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/CustomersView.jsx"
click node_customer_detail "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/CustomerDetailView.jsx"
click node_chat_view "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/ChatView.jsx"
click node_memory_view "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/MemoryInspectorView.jsx"
click node_settings_view "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/SettingsView.jsx"
click node_navigation "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/Sidebar.jsx"
click node_status_badge "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/StatusBadge.jsx"
click node_api_client "https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/api/client.js"
click node_api_app "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/main.py"
click node_chat_api "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/chat.py"
click node_customer_api "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/customers.py"
click node_memory_api "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/memory.py"
click node_schemas "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/models/schemas.py"
click node_config "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/config.py"
click node_agent "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/agent_service.py"
click node_customer_catalog "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/models/customer.py"
click node_memory_service "https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/memory_service.py"

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_app,node_dashboard,node_customers_view,node_customer_detail,node_chat_view,node_memory_view,node_settings_view,node_navigation,node_status_badge,node_api_client toneBlue
class node_api_app,node_chat_api,node_customer_api,node_memory_api,node_schemas,node_config toneAmber
class node_agent,node_customer_catalog toneMint
class node_memory_service toneRose
class node_hindsight,node_llm,node_customer toneIndigo
```

## Components

### Support interface

- [Application shell](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Support dashboard](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/DashboardView.jsx): `frontend/src/components/DashboardView.jsx`
- [Customer list](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/CustomersView.jsx): `frontend/src/components/CustomersView.jsx`
- [Customer profile](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/CustomerDetailView.jsx): `frontend/src/components/CustomerDetailView.jsx`
- [Support chat](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/ChatView.jsx): `frontend/src/components/ChatView.jsx`
- [Memory inspector](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/MemoryInspectorView.jsx): `frontend/src/components/MemoryInspectorView.jsx`
- [System settings](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/SettingsView.jsx): `frontend/src/components/SettingsView.jsx`
- [Navigation and header](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/Sidebar.jsx): `frontend/src/components/Sidebar.jsx`
- [Status badges](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/components/StatusBadge.jsx): `frontend/src/components/StatusBadge.jsx`
- [HTTP API client](https://github.com/ruthwikreddy14/supportmind/blob/master/frontend/src/api/client.js): `frontend/src/api/client.js`

### Backend API

- [FastAPI application](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/main.py): `backend/main.py`
- [Chat routes](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/chat.py): `backend/routers/chat.py`
- [Customer routes](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/customers.py): `backend/routers/customers.py`
- [Memory routes](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/routers/memory.py): `backend/routers/memory.py`
- [API schemas](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/models/schemas.py): `backend/models/schemas.py`
- [Runtime configuration](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/config.py): `backend/config.py`

### Support domain

- [Support agent](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/agent_service.py): `backend/services/agent_service.py`
- [Customer profiles and seeds](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/models/customer.py): `backend/models/customer.py`

### Memory system

- [Memory service](https://github.com/ruthwikreddy14/supportmind/blob/master/backend/services/memory_service.py): `backend/services/memory_service.py`

### External services

- **Hindsight Cloud**
- **Gemini / OpenAI**

### Other components

- **Customer / operator**

## Connections

- Customer / operator → Application shell: uses (evidence: `frontend/src/App.jsx`)
- Application shell → HTTP API client: checks and loads (evidence: `frontend/src/App.jsx`)
- Application shell → Support dashboard: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Customer list: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Customer profile: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Support chat: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Memory inspector: renders (evidence: `frontend/src/App.jsx`)
- Application shell → System settings: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Navigation and header: renders (evidence: `frontend/src/App.jsx`)
- Support chat → HTTP API client: sends messages (evidence: `frontend/src/components/ChatView.jsx`)
- Customer profile → HTTP API client: loads details (evidence: `frontend/src/components/CustomerDetailView.jsx`)
- Memory inspector → HTTP API client: manages memory (evidence: `frontend/src/components/MemoryInspectorView.jsx`)
- System settings → HTTP API client: loads status (evidence: `frontend/src/components/SettingsView.jsx`)
- Support chat → Status badges: displays status (evidence: `frontend/src/components/ChatView.jsx`)
- Customer profile → Status badges: displays status (evidence: `frontend/src/components/CustomerDetailView.jsx`)
- Customer list → Status badges: displays status (evidence: `frontend/src/components/CustomersView.jsx`)
- Support dashboard → Status badges: displays status (evidence: `frontend/src/components/DashboardView.jsx`)
- Memory inspector → Status badges: displays status (evidence: `frontend/src/components/MemoryInspectorView.jsx`)
- System settings → Status badges: displays status (evidence: `frontend/src/components/SettingsView.jsx`)
- HTTP API client → Chat routes: posts chat (evidence: `frontend/src/api/client.js`)
- HTTP API client → Customer routes: requests profiles (evidence: `frontend/src/api/client.js`)
- HTTP API client → Memory routes: requests memory (evidence: `frontend/src/api/client.js`)
- FastAPI application → Chat routes: mounts routes (evidence: `backend/main.py`)
- FastAPI application → Customer routes: mounts routes (evidence: `backend/main.py`)
- FastAPI application → Memory routes: mounts routes (evidence: `backend/main.py`)
- FastAPI application → Runtime configuration: loads CORS settings (evidence: `backend/main.py`)
- FastAPI application → Memory service: checks connection (evidence: `backend/main.py`)
- Chat routes → Support agent: dispatches chat (evidence: `backend/routers/chat.py`)
- Chat routes → API schemas: uses chat schemas (evidence: `backend/routers/chat.py`)
- Customer routes → Customer profiles and seeds: reads profiles (evidence: `backend/routers/customers.py`)
- Customer routes → Memory service: lists memories (evidence: `backend/routers/customers.py`)
- Customer routes → API schemas: uses memory schema (evidence: `backend/routers/customers.py`)
- Memory routes → Memory service: dispatches operations (evidence: `backend/routers/memory.py`)
- Memory routes → API schemas: uses memory schemas (evidence: `backend/routers/memory.py`)
- Support agent → Customer profiles and seeds: identifies customer (evidence: `backend/services/agent_service.py`)
- Support agent → Memory service: recalls and retains (evidence: `backend/services/agent_service.py`)
- Support agent → API schemas: returns chat response (evidence: `backend/services/agent_service.py`)
- Support agent → Runtime configuration: loads model settings (evidence: `backend/services/agent_service.py`)
- Support agent → Gemini / OpenAI: generates response (evidence: `backend/services/agent_service.py`)
- Memory service → Runtime configuration: loads credentials (evidence: `backend/services/memory_service.py`)
- Memory service → Hindsight Cloud: retains, recalls, reflects (evidence: `README.md`)
