# a795da/it_smarthelpdeskandappointmentsystem architecture

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

- Interactive diagram: https://gitdiagram.com/a795da/it_smarthelpdeskandappointmentsystem
- Repository: https://github.com/a795da/it_smarthelpdeskandappointmentsystem

## Overview

IT Support System is a university helpdesk with a bilingual chatbot, ticket triage, technician and admin panels, and appointment scheduling. The main path runs from a requester through the chatbot and local AI retrieval; unresolved issues are submitted to the .NET API for classification and ticket handling, then surfaced to staff for assignment and scheduling. The API also manages knowledge-base data, alerts, and retention. The README documents major capabilities, while sampled source confirms API-to-AI calls and repository persistence; frontend-to-API and several internal workflows are therefore shown only where documented or marked unverified.

Main entry points: [`ITSupportSystem/src/ITSupport.Api/Program.cs`](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Program.cs) (Minimal API), [`ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs`](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs) (SQLite connections), [`ITSupportSystem/src/ITSupport.Api/wwwroot/chat.js`](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/chat.js) (Chat interface), [`ITSupportSystem/src/AI_Service/main.py`](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/AI_Service/main.py) (AI service API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User and staff experience"]
  node_chat["Chat interface<br/>[chat.js]"]
  node_intake["Ticket intake<br/>[info_enter.js]"]
  node_tech["Technician panel<br/>[it.js]"]
  node_admin["Admin panel<br/>[admin.js]"]
  node_calendar["Calendar views<br/>[calendar.js]"]
  node_i18n["Language support<br/>[i18n.js]"]
end

subgraph group_ai["AI knowledge service"]
  node_aiapi["AI service API<br/>[main.py]"]
  node_scraper["Knowledge scraper<br/>[scraper.py]"]
  node_knowledge["Knowledge base"]
end

subgraph group_support["Support operations"]
  node_api["Minimal API<br/>[Program.cs]"]
  node_appointments["Appointment scheduling"]
  node_alerts["Email alerts<br/>[EmailService.cs]"]
  node_notifications["Live notifications<br/>[NotificationHub.cs]"]
  node_scraperwatch["Scraper alert watcher"]
end

subgraph group_data["Persistence and compliance"]
  node_dbfactory["SQLite connections"]
  node_tickets["Ticket repository"]
  node_incidents["Incident repository"]
  node_retention["Data retention"]
end

node_requester(("Requester"))
node_smtp["SMTP service"]
node_ollama["Local LLM"]
node_sqlite[("SQLite database")]

node_requester -.->|"asks for help"| node_chat
node_chat -.->|"streams chat"| node_aiapi
node_requester -.->|"submits issue"| node_intake
node_aiapi -.->|"generates answers"| node_ollama
node_scraper -.->|"updates articles"| node_knowledge
node_api -->|"requests classification"| node_aiapi
node_api -->|"reads and writes"| node_tickets
node_api -->|"handles bookings"| node_appointments
node_api -.->|"serves articles"| node_knowledge
node_tech -.->|"manages support"| node_api
node_admin -.->|"manages staff"| node_api
node_calendar -.->|"views availability"| node_appointments
node_api -.->|"sends priority alerts"| node_alerts
node_alerts -->|"sends email"| node_smtp
node_api -.->|"pushes events"| node_notifications
node_scraperwatch -->|"batches scraper alerts"| node_alerts
node_retention -->|"cleans old tickets"| node_tickets
node_retention -->|"cleans incident logs"| node_incidents
node_tickets -->|"opens connections"| node_dbfactory
node_incidents -->|"opens connections"| node_dbfactory
node_appointments -->|"opens connections"| node_dbfactory
node_knowledge -.->|"opens connections"| node_dbfactory
node_dbfactory -->|"connects to"| node_sqlite
node_i18n -.->|"localizes interface"| node_chat

click node_chat "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/chat.js"
click node_intake "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/info_enter.js"
click node_tech "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/it_panel/it.js"
click node_admin "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/admin_panel/admin.js"
click node_calendar "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/calendar.js"
click node_i18n "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/i18n.js"
click node_aiapi "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/AI_Service/main.py"
click node_scraper "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/AI_Service/scraper.py"
click node_knowledge "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/KnowledgeBaseRepository.cs"
click node_api "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Program.cs"
click node_appointments "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/AppointmentRepository.cs"
click node_alerts "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/EmailService.cs"
click node_notifications "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Hubs/NotificationHub.cs"
click node_dbfactory "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs"
click node_tickets "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/TicketRepository.cs"
click node_incidents "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/IncidentRepository.cs"
click node_retention "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/DataRetentionService.cs"
click node_scraperwatch "https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/ScraperAlertWatcherService.cs"

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_intake,node_tech,node_admin,node_calendar,node_i18n toneBlue
class node_aiapi,node_scraper,node_knowledge,node_sqlite toneAmber
class node_api,node_appointments,node_alerts,node_notifications,node_scraperwatch,node_requester toneMint
class node_dbfactory,node_tickets,node_incidents,node_retention toneRose
class node_smtp,node_ollama toneIndigo
```

## Components

### User and staff experience

- [Chat interface](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/chat.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/chat.js`
- [Ticket intake](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/info_enter.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/info_enter.js`
- [Technician panel](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/it_panel/it.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/it_panel/it.js`
- [Admin panel](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/admin_panel/admin.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/admin_panel/admin.js`
- [Calendar views](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/calendar.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/calendar.js`
- [Language support](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/wwwroot/i18n.js): `ITSupportSystem/src/ITSupport.Api/wwwroot/i18n.js`

### AI knowledge service

- [AI service API](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/AI_Service/main.py): `ITSupportSystem/src/AI_Service/main.py`
- [Knowledge scraper](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/AI_Service/scraper.py): `ITSupportSystem/src/AI_Service/scraper.py`
- [Knowledge base](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/KnowledgeBaseRepository.cs): `ITSupportSystem/src/ITSupport.Api/Repositories/KnowledgeBaseRepository.cs`

### Support operations

- [Minimal API](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Program.cs): `ITSupportSystem/src/ITSupport.Api/Program.cs`
- [Appointment scheduling](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/AppointmentRepository.cs): `ITSupportSystem/src/ITSupport.Api/Repositories/AppointmentRepository.cs`
- [Email alerts](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/EmailService.cs): `ITSupportSystem/src/ITSupport.Api/Services/EmailService.cs`
- [Live notifications](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Hubs/NotificationHub.cs): `ITSupportSystem/src/ITSupport.Api/Hubs/NotificationHub.cs`
- [Scraper alert watcher](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/ScraperAlertWatcherService.cs): `ITSupportSystem/src/ITSupport.Api/Services/ScraperAlertWatcherService.cs`

### Persistence and compliance

- [SQLite connections](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs): `ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs`
- [Ticket repository](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/TicketRepository.cs): `ITSupportSystem/src/ITSupport.Api/Repositories/TicketRepository.cs`
- [Incident repository](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Repositories/IncidentRepository.cs): `ITSupportSystem/src/ITSupport.Api/Repositories/IncidentRepository.cs`
- [Data retention](https://github.com/a795da/it_smarthelpdeskandappointmentsystem/blob/main/ITSupportSystem/src/ITSupport.Api/Services/DataRetentionService.cs): `ITSupportSystem/src/ITSupport.Api/Services/DataRetentionService.cs`

### Other components

- **Requester**
- **SMTP service**
- **Local LLM**
- **SQLite database**

## Connections

- Requester → Chat interface: asks for help
- Chat interface → AI service API: streams chat
- Requester → Ticket intake: submits issue
- AI service API → Local LLM: generates answers
- Knowledge scraper → Knowledge base: updates articles
- Minimal API → AI service API: requests classification (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Minimal API → Ticket repository: reads and writes (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Minimal API → Appointment scheduling: handles bookings (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Minimal API → Knowledge base: serves articles (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Technician panel → Minimal API: manages support
- Admin panel → Minimal API: manages staff
- Calendar views → Appointment scheduling: views availability
- Minimal API → Email alerts: sends priority alerts (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Email alerts → SMTP service: sends email (evidence: `ITSupportSystem/src/ITSupport.Api/Services/EmailService.cs`)
- Minimal API → Live notifications: pushes events (evidence: `ITSupportSystem/src/ITSupport.Api/Program.cs`)
- Scraper alert watcher → Email alerts: batches scraper alerts (evidence: `ITSupportSystem/src/ITSupport.Api/Services/ScraperAlertWatcherService.cs`)
- Data retention → Ticket repository: cleans old tickets (evidence: `ITSupportSystem/src/ITSupport.Api/Services/DataRetentionService.cs`)
- Data retention → Incident repository: cleans incident logs (evidence: `ITSupportSystem/src/ITSupport.Api/Services/DataRetentionService.cs`)
- Ticket repository → SQLite connections: opens connections (evidence: `ITSupportSystem/src/ITSupport.Api/Repositories/TicketRepository.cs`)
- Incident repository → SQLite connections: opens connections (evidence: `ITSupportSystem/src/ITSupport.Api/Repositories/IncidentRepository.cs`)
- Appointment scheduling → SQLite connections: opens connections (evidence: `ITSupportSystem/src/ITSupport.Api/Repositories/AppointmentRepository.cs`)
- Knowledge base → SQLite connections: opens connections (evidence: `ITSupportSystem/src/ITSupport.Api/Repositories/KnowledgeBaseRepository.cs`)
- SQLite connections → SQLite database: connects to (evidence: `ITSupportSystem/src/ITSupport.Api/Data/IDbConnectionFactory.cs`)
- Language support → Chat interface: localizes interface
