# chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system architecture

> Architecture diagram of the GitHub repository chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system
- Repository: https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system

## Overview

IntelliDesk is an AI-assisted IT helpdesk: employees submit tickets, the backend classifies and routes them, and employees, agents, and admins track or manage ticket lifecycles through role-specific views. The backend also provides analytics, audit history, SLA monitoring with escalation, and similar-ticket/knowledge-base suggestions. The graph follows documented API and service responsibilities; some router and page internals are unsampled, so those connections rely on the README or SOURCE INDEX references rather than inspected implementations.

Main entry points: [`frontend/src/App.jsx`](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/App.jsx) (Role-based app routes), [`frontend/src/api/client.js`](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/api/client.js) (API client), [`backend/app/models.py`](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/models.py) (Users, tickets, SLA, history), [`backend/app/main.py`](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_web_app["Role-based app routes<br/>[App.jsx]"]
  node_auth_context["Session context<br/>[AuthContext.jsx]"]
  node_api_client["API client<br/>[client.js]"]
  node_submit_ticket["Ticket submission<br/>[SubmitTicket.jsx]"]
  node_ticket_views["Ticket views<br/>[MyTickets.jsx]"]
  node_ticket_detail["Ticket detail<br/>[TicketDetail.jsx]"]
  node_agent_queue["Agent queue<br/>[AgentQueue.jsx]"]
  node_admin_tickets["Admin ticket list<br/>[AllTickets.jsx]"]
  node_analytics_ui["Analytics dashboard<br/>[Analytics.jsx]"]
  node_ticket_list["Ticket list component<br/>[TicketList.jsx]"]
  node_status_badges["Status and SLA badges<br/>[Badges.jsx]"]
end

subgraph group_api["API and identity"]
  node_api_main["FastAPI application<br/>[main.py]"]
  node_auth_router["Authentication endpoints<br/>[auth.py]"]
  node_users_router["User endpoints<br/>[users.py]"]
  node_analytics_router["Analytics endpoints<br/>[analytics.py]"]
  node_auth_security["JWT and password security<br/>[auth.py]"]
  node_access_control["Identity and role checks<br/>[deps.py]"]
end

subgraph group_ticket["Ticket operations"]
  node_ticket_router["Ticket endpoints<br/>[tickets.py]"]
  node_ticket_service["Ticket lifecycle service<br/>[ticket_service.py]"]
end

subgraph group_intelligence["Classification and SLA"]
  node_classifier["Ticket classifier<br/>[classifier.py]"]
  node_similarity["Similar ticket and KB suggestions<br/>[similarity.py]"]
  node_sla_engine["SLA monitor and escalation<br/>[sla_engine.py]"]
end

subgraph group_data["Persistence"]
  node_db_session["Database sessions<br/>[database.py]"]
  node_domain_models["Users, tickets, SLA, history<br/>[models.py]"]
  node_database[("Relational database")]
end

node_employee(("Employee"))
node_agents_admins(("Agents and admins"))

node_employee -->|"uses"| node_web_app
node_agents_admins -->|"uses"| node_web_app
node_web_app -->|"routes to"| node_submit_ticket
node_web_app -->|"routes to"| node_ticket_views
node_web_app -->|"routes to"| node_ticket_detail
node_web_app -->|"routes to"| node_agent_queue
node_web_app -->|"routes to"| node_admin_tickets
node_web_app -->|"routes to"| node_analytics_ui
node_submit_ticket -->|"submits via"| node_api_client
node_ticket_views -->|"loads tickets"| node_api_client
node_ticket_detail -->|"loads and updates"| node_api_client
node_agent_queue -->|"loads tickets"| node_api_client
node_admin_tickets -->|"loads tickets"| node_api_client
node_analytics_ui -->|"fetches metrics"| node_api_client
node_auth_context -->|"calls auth API"| node_api_client
node_ticket_views -->|"renders"| node_ticket_list
node_agent_queue -->|"renders"| node_ticket_list
node_admin_tickets -->|"renders"| node_ticket_list
node_ticket_list -->|"uses"| node_status_badges
node_api_client -->|"HTTP API calls"| node_api_main
node_api_main -->|"registers"| node_auth_router
node_api_main -->|"registers"| node_ticket_router
node_api_main -->|"registers"| node_users_router
node_api_main -->|"registers"| node_analytics_router
node_api_main -->|"starts scheduler"| node_sla_engine
node_auth_router -->|"hashes and issues tokens"| node_auth_security
node_auth_router -->|"checks identity"| node_access_control
node_ticket_router -->|"delegates lifecycle"| node_ticket_service
node_ticket_router -->|"checks SLA status"| node_sla_engine
node_ticket_service -->|"classifies ticket"| node_classifier
node_ticket_service -->|"requests suggestions"| node_similarity
node_sla_engine -->|"writes audit history"| node_ticket_service
node_ticket_service -->|"creates and updates"| node_domain_models
node_sla_engine -->|"reads and updates"| node_domain_models
node_analytics_router -->|"aggregates ticket data"| node_domain_models
node_users_router -->|"queries users"| node_domain_models
node_auth_router -->|"queries users"| node_domain_models
node_ticket_router -->|"queries ticket data"| node_domain_models
node_db_session -->|"connects"| node_database
node_domain_models -->|"uses ORM base"| node_db_session

click node_web_app "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/App.jsx"
click node_auth_context "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/context/AuthContext.jsx"
click node_api_client "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/api/client.js"
click node_submit_ticket "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/SubmitTicket.jsx"
click node_ticket_views "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/MyTickets.jsx"
click node_ticket_detail "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/TicketDetail.jsx"
click node_agent_queue "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/AgentQueue.jsx"
click node_admin_tickets "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/AllTickets.jsx"
click node_analytics_ui "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/Analytics.jsx"
click node_ticket_list "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/components/TicketList.jsx"
click node_status_badges "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/components/Badges.jsx"
click node_api_main "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/main.py"
click node_auth_router "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/auth.py"
click node_users_router "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/users.py"
click node_ticket_router "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/tickets.py"
click node_analytics_router "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/analytics.py"
click node_auth_security "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/auth.py"
click node_access_control "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/deps.py"
click node_ticket_service "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/services/ticket_service.py"
click node_classifier "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/ml/classifier.py"
click node_similarity "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/ml/similarity.py"
click node_sla_engine "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/services/sla_engine.py"
click node_db_session "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/database.py"
click node_domain_models "https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/models.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_web_app,node_auth_context,node_api_client,node_submit_ticket,node_ticket_views,node_ticket_detail,node_agent_queue,node_admin_tickets,node_analytics_ui,node_ticket_list,node_status_badges toneBlue
class node_api_main,node_auth_router,node_users_router,node_analytics_router,node_auth_security,node_access_control toneAmber
class node_ticket_router,node_ticket_service toneMint
class node_classifier,node_similarity,node_sla_engine toneRose
class node_db_session,node_domain_models,node_database,node_employee,node_agents_admins toneIndigo
```

## Components

### Web application

- [Role-based app routes](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Session context](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [API client](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`
- [Ticket submission](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/SubmitTicket.jsx): `frontend/src/pages/SubmitTicket.jsx`
- [Ticket views](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/MyTickets.jsx): `frontend/src/pages/MyTickets.jsx`
- [Ticket detail](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/TicketDetail.jsx): `frontend/src/pages/TicketDetail.jsx`
- [Agent queue](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/AgentQueue.jsx): `frontend/src/pages/AgentQueue.jsx`
- [Admin ticket list](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/AllTickets.jsx): `frontend/src/pages/AllTickets.jsx`
- [Analytics dashboard](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/pages/Analytics.jsx): `frontend/src/pages/Analytics.jsx`
- [Ticket list component](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/components/TicketList.jsx): `frontend/src/components/TicketList.jsx`
- [Status and SLA badges](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/frontend/src/components/Badges.jsx): `frontend/src/components/Badges.jsx`

### API and identity

- [FastAPI application](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication endpoints](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/auth.py): `backend/app/routers/auth.py`
- [User endpoints](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/users.py): `backend/app/routers/users.py`
- [Analytics endpoints](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/analytics.py): `backend/app/routers/analytics.py`
- [JWT and password security](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/auth.py): `backend/app/auth.py`
- [Identity and role checks](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/deps.py): `backend/app/deps.py`

### Ticket operations

- [Ticket endpoints](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/routers/tickets.py): `backend/app/routers/tickets.py`
- [Ticket lifecycle service](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/services/ticket_service.py): `backend/app/services/ticket_service.py`

### Classification and SLA

- [Ticket classifier](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/ml/classifier.py): `backend/app/ml/classifier.py`
- [Similar ticket and KB suggestions](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/ml/similarity.py): `backend/app/ml/similarity.py`
- [SLA monitor and escalation](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/services/sla_engine.py): `backend/app/services/sla_engine.py`

### Persistence

- [Database sessions](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/database.py): `backend/app/database.py`
- [Users, tickets, SLA, history](https://github.com/chandrahaas11/intellidesk-ai-assisted-it-service-ticketing-system/blob/main/backend/app/models.py): `backend/app/models.py`
- **Relational database**

### Other components

- **Employee**
- **Agents and admins**

## Connections

- Employee → Role-based app routes: uses (evidence: `frontend/src/App.jsx`)
- Agents and admins → Role-based app routes: uses (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Ticket submission: routes to (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Ticket views: routes to (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Ticket detail: routes to (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Agent queue: routes to (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Admin ticket list: routes to (evidence: `frontend/src/App.jsx`)
- Role-based app routes → Analytics dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Ticket submission → API client: submits via (evidence: `frontend/src/pages/SubmitTicket.jsx`)
- Ticket views → API client: loads tickets (evidence: `frontend/src/pages/MyTickets.jsx`)
- Ticket detail → API client: loads and updates (evidence: `frontend/src/pages/TicketDetail.jsx`)
- Agent queue → API client: loads tickets (evidence: `frontend/src/pages/AgentQueue.jsx`)
- Admin ticket list → API client: loads tickets (evidence: `frontend/src/pages/AllTickets.jsx`)
- Analytics dashboard → API client: fetches metrics (evidence: `frontend/src/pages/Analytics.jsx`)
- Session context → API client: calls auth API (evidence: `frontend/src/context/AuthContext.jsx`)
- Ticket views → Ticket list component: renders (evidence: `frontend/src/pages/MyTickets.jsx`)
- Agent queue → Ticket list component: renders (evidence: `frontend/src/pages/AgentQueue.jsx`)
- Admin ticket list → Ticket list component: renders (evidence: `frontend/src/pages/AllTickets.jsx`)
- Ticket list component → Status and SLA badges: uses (evidence: `frontend/src/components/TicketList.jsx`)
- API client → FastAPI application: HTTP API calls (evidence: `README.md`)
- FastAPI application → Authentication endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Ticket endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → User endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Analytics endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → SLA monitor and escalation: starts scheduler (evidence: `backend/app/main.py`)
- Authentication endpoints → JWT and password security: hashes and issues tokens (evidence: `backend/app/routers/auth.py`)
- Authentication endpoints → Identity and role checks: checks identity (evidence: `backend/app/routers/auth.py`)
- Ticket endpoints → Ticket lifecycle service: delegates lifecycle (evidence: `backend/app/routers/tickets.py`)
- Ticket endpoints → SLA monitor and escalation: checks SLA status (evidence: `backend/app/routers/tickets.py`)
- Ticket lifecycle service → Ticket classifier: classifies ticket (evidence: `backend/app/services/ticket_service.py`)
- Ticket lifecycle service → Similar ticket and KB suggestions: requests suggestions (evidence: `backend/app/services/ticket_service.py`)
- SLA monitor and escalation → Ticket lifecycle service: writes audit history (evidence: `backend/app/services/sla_engine.py`)
- Ticket lifecycle service → Users, tickets, SLA, history: creates and updates (evidence: `backend/app/services/ticket_service.py`)
- SLA monitor and escalation → Users, tickets, SLA, history: reads and updates (evidence: `backend/app/services/sla_engine.py`)
- Analytics endpoints → Users, tickets, SLA, history: aggregates ticket data (evidence: `backend/app/routers/analytics.py`)
- User endpoints → Users, tickets, SLA, history: queries users (evidence: `backend/app/routers/users.py`)
- Authentication endpoints → Users, tickets, SLA, history: queries users (evidence: `backend/app/routers/auth.py`)
- Ticket endpoints → Users, tickets, SLA, history: queries ticket data (evidence: `backend/app/routers/tickets.py`)
- Database sessions → Relational database: connects (evidence: `backend/app/database.py`)
- Users, tickets, SLA, history → Database sessions: uses ORM base (evidence: `backend/app/models.py`)
