# raikan10/helpdesk architecture

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

- Interactive diagram: https://gitdiagram.com/raikan10/helpdesk
- Repository: https://github.com/raikan10/helpdesk

## Overview

Frappe Helpdesk is a customer-support ticketing product with agent and customer portals. The main workflow is submitting a support request, managing and communicating on its ticket, and resolving it under assignment and SLA policies; customers can also find answers in the knowledge base. The graph includes those documented product branches and sampled frontend, API, search, and domain-rule modules. Several feature implementations were not sampled, so their internal call paths are omitted rather than inferred.

Main entry points: [`desk/src/pages/ticket`](https://github.com/raikan10/helpdesk/tree/develop/desk/src/pages/ticket) (Ticket views), [`desk/src/main.js`](https://github.com/raikan10/helpdesk/blob/develop/desk/src/main.js) (Vue application entry), [`helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py`](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py) (Ticket lifecycle), [`helpdesk/api/search.py`](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/search.py) (Search API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portals["Portals and navigation"]
  node_frontend_entry["Vue application entry<br/>[main.js]"]
  node_app_shell["Portal app shell<br/>[App.vue]"]
  node_router["Portal routes<br/>[index.ts]"]
  node_command_palette["Command palette"]
  node_palette_commands["Palette commands<br/>[commands.ts]"]
  node_palette_types["Palette command types<br/>[paletteTypes.ts]"]
end

subgraph group_ticketing["Ticket workflow"]
  node_ticket_ui["Ticket views"]
  node_ticket_domain["Ticket lifecycle<br/>[hd_ticket.py]"]
  node_customer_rules["Customer edit rules"]
  node_ticket_api["Ticket API<br/>[ticket.py]"]
  node_communications["Ticket conversations"]
  node_saved_replies["Saved replies"]
end

subgraph group_automation["Automation and service levels"]
  node_assignment["Assignment rules<br/>[assignment_rule.py]"]
  node_sla["SLA policy engine"]
  node_sla_settings["SLA configuration"]
end

subgraph group_knowledge["Knowledge and search"]
  node_article_api["Article service<br/>[article.py]"]
  node_knowledge_ui["Knowledge base"]
  node_search_api["Search API<br/>[search.py]"]
  node_sqlite_search[("Ticket search index<br/>[search_sqlite.py]")]
  node_article_search[("Article search index<br/>[search.py]")]
end

subgraph group_platform["Helpdesk services"]
  node_backend["Frappe framework"]
  node_hd_settings["Helpdesk settings<br/>[hd_settings.py]"]
  node_email_settings["Email configuration API<br/>[email.py]"]
  node_email_override["Email account override<br/>[email_account.py]"]
  node_setup["Default setup<br/>[install.py]"]
  node_default_views["Default ticket views<br/>[default_views.py]"]
  node_welcome_ticket["Welcome ticket setup<br/>[welcome_ticket.py]"]
end

node_agent(("Support agent"))
node_customer(("Customer"))

node_agent -->|"uses agent portal"| node_frontend_entry
node_customer -->|"uses customer portal"| node_frontend_entry
node_frontend_entry -->|"mounts"| node_app_shell
node_frontend_entry -->|"installs routes"| node_router
node_app_shell -->|"renders routes"| node_router
node_router -.->|"routes to tickets"| node_ticket_ui
node_agent -->|"manages tickets"| node_ticket_ui
node_customer -->|"submits requests"| node_ticket_ui
node_ticket_ui -.->|"requests ticket actions"| node_ticket_api
node_ticket_api -.->|"handles ticket operations"| node_ticket_domain
node_customer_rules -->|"mixes into ticket"| node_ticket_domain
node_ticket_ui -.->|"shows conversation"| node_communications
node_ticket_ui -->|"offers saved replies"| node_saved_replies
node_ticket_domain -->|"supports auto-assignment"| node_assignment
node_ticket_domain -->|"tracks service targets"| node_sla
node_sla_settings -->|"configures policies"| node_sla
node_customer -->|"browses articles"| node_knowledge_ui
node_knowledge_ui -.->|"loads articles"| node_article_api
node_knowledge_ui -.->|"searches content"| node_search_api
node_search_api -->|"uses ticket search"| node_sqlite_search
node_search_api -.->|"searches articles"| node_article_search
node_command_palette -->|"builds root commands"| node_palette_commands
node_command_palette -.->|"queries search"| node_search_api
node_palette_commands -->|"uses command types"| node_palette_types
node_frontend_entry -->|"uses Frappe services"| node_backend
node_email_override -->|"delegates configuration"| node_email_settings
node_setup -->|"creates default views"| node_default_views
node_setup -->|"sets up welcome ticket"| node_welcome_ticket
node_hd_settings -->|"references ticket behavior"| node_ticket_domain
node_hd_settings -->|"references article service"| node_article_api

click node_frontend_entry "https://github.com/raikan10/helpdesk/blob/develop/desk/src/main.js"
click node_app_shell "https://github.com/raikan10/helpdesk/blob/develop/desk/src/App.vue"
click node_router "https://github.com/raikan10/helpdesk/blob/develop/desk/src/router/index.ts"
click node_ticket_ui "https://github.com/raikan10/helpdesk/tree/develop/desk/src/pages/ticket"
click node_ticket_domain "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py"
click node_customer_rules "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_ticket/customer_edit_controller.py"
click node_ticket_api "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/ticket.py"
click node_communications "https://github.com/raikan10/helpdesk/blob/develop/desk/src/pages/ticket/TicketCommunication.vue"
click node_assignment "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/assignment_rule.py"
click node_sla "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py"
click node_sla_settings "https://github.com/raikan10/helpdesk/tree/develop/desk/src/components/Settings/Sla"
click node_saved_replies "https://github.com/raikan10/helpdesk/tree/develop/desk/src/components/Settings/SavedReplies"
click node_article_api "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/article.py"
click node_knowledge_ui "https://github.com/raikan10/helpdesk/tree/develop/desk/src/pages/knowledge-base"
click node_search_api "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/search.py"
click node_sqlite_search "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/search_sqlite.py"
click node_article_search "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/search.py"
click node_command_palette "https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/useCommandPalette.ts"
click node_palette_commands "https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/commands.ts"
click node_palette_types "https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/paletteTypes.ts"
click node_hd_settings "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_settings/hd_settings.py"
click node_email_settings "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/settings/email.py"
click node_email_override "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/overrides/email_account.py"
click node_setup "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/install.py"
click node_default_views "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/default_views.py"
click node_welcome_ticket "https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/welcome_ticket.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_frontend_entry,node_app_shell,node_router,node_command_palette,node_palette_commands,node_palette_types toneBlue
class node_ticket_ui,node_ticket_domain,node_customer_rules,node_ticket_api,node_communications,node_saved_replies toneAmber
class node_assignment,node_sla,node_sla_settings toneMint
class node_article_api,node_knowledge_ui,node_search_api,node_sqlite_search,node_article_search toneRose
class node_backend,node_hd_settings,node_email_settings,node_email_override,node_setup,node_default_views,node_welcome_ticket,node_agent,node_customer toneIndigo
```

## Components

### Portals and navigation

- [Vue application entry](https://github.com/raikan10/helpdesk/blob/develop/desk/src/main.js): `desk/src/main.js`
- [Portal app shell](https://github.com/raikan10/helpdesk/blob/develop/desk/src/App.vue): `desk/src/App.vue`
- [Portal routes](https://github.com/raikan10/helpdesk/blob/develop/desk/src/router/index.ts): `desk/src/router/index.ts`
- [Command palette](https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/useCommandPalette.ts): `desk/src/components/command-palette/useCommandPalette.ts`
- [Palette commands](https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/commands.ts): `desk/src/components/command-palette/commands.ts`
- [Palette command types](https://github.com/raikan10/helpdesk/blob/develop/desk/src/components/command-palette/paletteTypes.ts): `desk/src/components/command-palette/paletteTypes.ts`

### Ticket workflow

- [Ticket views](https://github.com/raikan10/helpdesk/tree/develop/desk/src/pages/ticket): `desk/src/pages/ticket`
- [Ticket lifecycle](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py): `helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py`
- [Customer edit rules](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_ticket/customer_edit_controller.py): `helpdesk/helpdesk/doctype/hd_ticket/customer_edit_controller.py`
- [Ticket API](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/ticket.py): `helpdesk/api/ticket.py`
- [Ticket conversations](https://github.com/raikan10/helpdesk/blob/develop/desk/src/pages/ticket/TicketCommunication.vue): `desk/src/pages/ticket/TicketCommunication.vue`
- [Saved replies](https://github.com/raikan10/helpdesk/tree/develop/desk/src/components/Settings/SavedReplies): `desk/src/components/Settings/SavedReplies`

### Automation and service levels

- [Assignment rules](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/assignment_rule.py): `helpdesk/api/assignment_rule.py`
- [SLA policy engine](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py): `helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py`
- [SLA configuration](https://github.com/raikan10/helpdesk/tree/develop/desk/src/components/Settings/Sla): `desk/src/components/Settings/Sla`

### Knowledge and search

- [Article service](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/article.py): `helpdesk/api/article.py`
- [Knowledge base](https://github.com/raikan10/helpdesk/tree/develop/desk/src/pages/knowledge-base): `desk/src/pages/knowledge-base`
- [Search API](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/search.py): `helpdesk/api/search.py`
- [Ticket search index](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/search_sqlite.py): `helpdesk/search_sqlite.py`
- [Article search index](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/search.py): `helpdesk/search.py`

### Helpdesk services

- **Frappe framework**
- [Helpdesk settings](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/helpdesk/doctype/hd_settings/hd_settings.py): `helpdesk/helpdesk/doctype/hd_settings/hd_settings.py`
- [Email configuration API](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/api/settings/email.py): `helpdesk/api/settings/email.py`
- [Email account override](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/overrides/email_account.py): `helpdesk/overrides/email_account.py`
- [Default setup](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/install.py): `helpdesk/setup/install.py`
- [Default ticket views](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/default_views.py): `helpdesk/setup/default_views.py`
- [Welcome ticket setup](https://github.com/raikan10/helpdesk/blob/develop/helpdesk/setup/welcome_ticket.py): `helpdesk/setup/welcome_ticket.py`

### Other components

- **Support agent**
- **Customer**

## Connections

- Support agent → Vue application entry: uses agent portal (evidence: `README.md`)
- Customer → Vue application entry: uses customer portal (evidence: `README.md`)
- Vue application entry → Portal app shell: mounts (evidence: `desk/src/main.js`)
- Vue application entry → Portal routes: installs routes (evidence: `desk/src/main.js`)
- Portal app shell → Portal routes: renders routes (evidence: `desk/src/App.vue`)
- Portal routes → Ticket views: routes to tickets
- Support agent → Ticket views: manages tickets (evidence: `README.md`)
- Customer → Ticket views: submits requests (evidence: `README.md`)
- Ticket views → Ticket API: requests ticket actions
- Ticket API → Ticket lifecycle: handles ticket operations
- Customer edit rules → Ticket lifecycle: mixes into ticket (evidence: `helpdesk/helpdesk/doctype/hd_ticket/customer_edit_controller.py`)
- Ticket views → Ticket conversations: shows conversation
- Ticket views → Saved replies: offers saved replies (evidence: `README.md`)
- Ticket lifecycle → Assignment rules: supports auto-assignment (evidence: `README.md`)
- Ticket lifecycle → SLA policy engine: tracks service targets (evidence: `helpdesk/helpdesk/doctype/hd_service_level_agreement/hd_service_level_agreement.py`)
- SLA configuration → SLA policy engine: configures policies (evidence: `README.md`)
- Customer → Knowledge base: browses articles (evidence: `README.md`)
- Knowledge base → Article service: loads articles
- Knowledge base → Search API: searches content
- Search API → Ticket search index: uses ticket search (evidence: `helpdesk/api/search.py`)
- Search API → Article search index: searches articles
- Command palette → Palette commands: builds root commands (evidence: `desk/src/components/command-palette/useCommandPalette.ts`)
- Command palette → Search API: queries search
- Palette commands → Palette command types: uses command types (evidence: `desk/src/components/command-palette/commands.ts`)
- Vue application entry → Frappe framework: uses Frappe services (evidence: `README.md`)
- Email account override → Email configuration API: delegates configuration (evidence: `helpdesk/overrides/email_account.py`)
- Default setup → Default ticket views: creates default views (evidence: `helpdesk/setup/install.py`)
- Default setup → Welcome ticket setup: sets up welcome ticket (evidence: `helpdesk/setup/install.py`)
- Helpdesk settings → Ticket lifecycle: references ticket behavior (evidence: `helpdesk/helpdesk/doctype/hd_settings/hd_settings.py`)
- Helpdesk settings → Article service: references article service (evidence: `helpdesk/helpdesk/doctype/hd_settings/hd_settings.py`)
