# patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2 architecture

> Architecture diagram of the GitHub repository patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2
- Repository: https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2

## Overview

##### File structure
- Top-level files:
- app.py – Flask application entry point, defines routes and request handling.
- Training.py – code to train/load the NLP/deep-learning model (loads intents.json, builds classifier).
- intents.json – configuration of user intents, sample utterances, and bot responses.
- requirements.txt – Python dependencies (Flask, NLP libs, TTS libs, etc.).
- README.md, LICENSE – documentation.
- Directories:
- templates/ – HTML templates (index.html).
- static/ – static assets (styles.css, images).
- No explicit database directory: the bot runs off a trained model and JSON-based knowledge.

##### README for additional insights
- Core features: chat interface, NLP + deep learning, indoor navigation links, text-to-speech.
- No mention of external microservices beyond the indoor map link.
- Likely uses a client-side fetch/AJAX call to app.py endpoints.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Frontend Layer
    subgraph "Web Client"
        direction TB
        IDX["Index HTML"] 
        CSS["Styles CSS"] 
        IMG["Images"]
    end

    %% Backend Layer
    subgraph "Backend"
        direction TB
        FLASK["Flask App (app.py)"]
        NLP["NLP Engine (Training.py)"]
        INTENT["intents.json"]
        REQ["requirements.txt"]
        TTS["TTS Engine"]
    end

    %% External/Static Resources
    subgraph "External/Static Resources"
        direction TB
        MAP["Indoor Map"]
    end

    %% Connections
    IDX -->|"HTTP/JSON Request /chat"| FLASK
    FLASK -->|"serves assets"| CSS
    FLASK -->|"serves assets"| IMG
    FLASK -->|"uses model"| NLP
    NLP -->|"loads intents"| INTENT
    NLP -->|"returns intent & response"| FLASK
    FLASK -->|"uses deps"| REQ
    FLASK -->|"calls TTS"| TTS
    TTS -->|"returns audio"| FLASK
    FLASK -->|"HTTP/JSON Response"| IDX
    IDX -->|"click map link"| MAP

    %% Click Events
    click IDX "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/templates/index.html"
    click CSS "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/static/styles/styles.css"
    click IMG "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/tree/main/static/images/"
    click FLASK "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/app.py"
    click NLP "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/Training.py"
    click INTENT "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/intents.json"
    click REQ "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/blob/main/requirements.txt"
    click MAP "https://github.com/patanyaseen07/veltech-ai-navigation-chatbot-minorproject-2/tree/main/static/images/"

    %% Styles
    classDef frontend fill:#D0E6F6,stroke:#333,stroke-width:1px
    classDef backend fill:#D5F5E3,stroke:#333,stroke-width:1px
    classDef external fill:#E0E0E0,stroke:#333,stroke-width:1px

    class IDX,CSS,IMG frontend
    class FLASK,NLP,INTENT,REQ,TTS backend
    class MAP external
```
