# sunmuhaha/w-gpt architecture

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

- Interactive diagram: https://gitdiagram.com/sunmuhaha/w-gpt
- Repository: https://github.com/sunmuhaha/w-gpt

## Overview

This repository presents an educational WormGPT experiment. The documented user journey is to try the interface and receive responses from a persona-configured model hosted on Botpress, with Gemini 3.5 flash-lite as an automatic fallback when Qwen 3.8 flash is unavailable. The tree identifies index.html as the interface entry point, but no source excerpts show its implementation or how it connects to Botpress; those relationships are included only where the README documents them. Audio and video files are present, but their role is not documented.

Main entry points: [`index.html`](https://github.com/sunmuhaha/w-gpt/blob/main/index.html) (Web interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_web_interface["Web interface<br/>[index.html]"]
end

subgraph group_ai_runtime["AI runtime"]
  node_botpress["Botpress platform"]
  node_qwen["Qwen persona model"]
  node_gemini["Gemini fallback"]
end

node_user(("User"))

node_user -->|"tries interface"| node_web_interface
node_web_interface -->|"uses platform"| node_botpress
node_botpress -->|"runs persona model"| node_qwen
node_botpress -->|"falls back"| node_gemini

click node_web_interface "https://github.com/sunmuhaha/w-gpt/blob/main/index.html"

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_web_interface,node_user toneBlue
class node_botpress,node_qwen,node_gemini toneAmber
```

## Components

### User interface

- [Web interface](https://github.com/sunmuhaha/w-gpt/blob/main/index.html): `index.html`

### AI runtime

- **Botpress platform**
- **Qwen persona model**
- **Gemini fallback**

### Other components

- **User**

## Connections

- User → Web interface: tries interface (evidence: `README.md`)
- Web interface → Botpress platform: uses platform (evidence: `README.md`)
- Botpress platform → Qwen persona model: runs persona model (evidence: `README.md`)
- Botpress platform → Gemini fallback: falls back (evidence: `README.md`)
