# vainqueur05/yebela-rdc architecture

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

- Interactive diagram: https://gitdiagram.com/vainqueur05/yebela-rdc
- Repository: https://github.com/vainqueur05/yebela-rdc

## Overview

Yebela’s implemented product is a Flask-hosted partner landing page with a contact-to-WhatsApp flow and an embedded multilingual chatbot. The broader anti-kidnapping alert, validation, and guardian-response process is described as the platform’s mission, not implemented in the shown runtime. The source excerpts show the Flask routes and chatbot’s local/AI/fallback behavior; the landing template’s internals were not sampled.

Main entry points: [`static/js/yebela-chatbot.js`](https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js) (Query handling), [`app.py`](https://github.com/vainqueur05/yebela-rdc/blob/main/app.py) (Flask routes), [`templates/yebela.html`](https://github.com/vainqueur05/yebela-rdc/blob/main/templates/yebela.html) (Landing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_flask["Flask routes<br/>[app.py]"]
  node_landing["Landing page<br/>[yebela.html]"]
  node_partner["Partner contact<br/>[app.py]"]
end

subgraph group_chat["Chatbot"]
  node_chat_ui["Chat interface<br/>[yebela-chatbot.js]"]
  node_chat_router["Query handling<br/>[yebela-chatbot.js]"]
  node_local["Simple answers<br/>[yebela-chatbot.js]"]
  node_gemini["Gemini API"]
  node_fallback["Fallback answers<br/>[yebela-chatbot.js]"]
end

node_visitor(("Visitor"))
node_whatsapp["WhatsApp"]

node_visitor -->|"requests page"| node_flask
node_flask -->|"renders"| node_landing
node_visitor -->|"submits contact"| node_partner
node_partner -->|"returns link"| node_whatsapp
node_visitor -->|"asks question"| node_chat_ui
node_chat_ui -->|"handles message"| node_chat_router
node_chat_router -->|"answers simple"| node_local
node_chat_router -->|"queries complex"| node_gemini
node_chat_router -->|"uses on failure"| node_fallback
node_chat_router -->|"displays reply"| node_chat_ui

click node_flask "https://github.com/vainqueur05/yebela-rdc/blob/main/app.py"
click node_landing "https://github.com/vainqueur05/yebela-rdc/blob/main/templates/yebela.html"
click node_partner "https://github.com/vainqueur05/yebela-rdc/blob/main/app.py"
click node_chat_ui "https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js"
click node_chat_router "https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js"
click node_local "https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js"
click node_fallback "https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js"

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_flask,node_landing,node_partner toneBlue
class node_chat_ui,node_chat_router,node_local,node_gemini,node_fallback toneAmber
class node_visitor,node_whatsapp toneIndigo
```

## Components

### Web experience

- [Flask routes](https://github.com/vainqueur05/yebela-rdc/blob/main/app.py): `app.py`
- [Landing page](https://github.com/vainqueur05/yebela-rdc/blob/main/templates/yebela.html): `templates/yebela.html`
- [Partner contact](https://github.com/vainqueur05/yebela-rdc/blob/main/app.py): `app.py`

### Chatbot

- [Chat interface](https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js): `static/js/yebela-chatbot.js`
- [Query handling](https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js): `static/js/yebela-chatbot.js`
- [Simple answers](https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js): `static/js/yebela-chatbot.js`
- **Gemini API**
- [Fallback answers](https://github.com/vainqueur05/yebela-rdc/blob/main/static/js/yebela-chatbot.js): `static/js/yebela-chatbot.js`

### Other components

- **Visitor**
- **WhatsApp**

## Connections

- Visitor → Flask routes: requests page (evidence: `app.py`)
- Flask routes → Landing page: renders (evidence: `app.py`)
- Visitor → Partner contact: submits contact (evidence: `app.py`)
- Partner contact → WhatsApp: returns link (evidence: `app.py`)
- Visitor → Chat interface: asks question (evidence: `static/js/yebela-chatbot.js`)
- Chat interface → Query handling: handles message (evidence: `static/js/yebela-chatbot.js`)
- Query handling → Simple answers: answers simple (evidence: `static/js/yebela-chatbot.js`)
- Query handling → Gemini API: queries complex (evidence: `static/js/yebela-chatbot.js`)
- Query handling → Fallback answers: uses on failure (evidence: `static/js/yebela-chatbot.js`)
- Query handling → Chat interface: displays reply (evidence: `static/js/yebela-chatbot.js`)
