# helpin-ai/helpin architecture

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

- Interactive diagram: https://gitdiagram.com/helpin-ai/helpin
- Repository: https://github.com/helpin-ai/helpin

## Overview

Helpin is a connected customer-support and work-management workspace, with AI agents and optional integrations. The documented journey starts with a customer message, uses conversation and customer history to investigate and coordinate related work, then supports review and customer follow-up. The graph preserves the major product areas named in the README and the sampled CRM, automation, API, and event-capture layers. Many product directories are unsampled; their capabilities and workflow links are included only where the README documents them.

Main entry points: [`frontend/src`](https://github.com/helpin-ai/helpin/tree/main/frontend/src) (Support inbox), [`frontend/src/components/agents`](https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/agents) (Ask Agent), [`server/cmd/api/main.go`](https://github.com/helpin-ai/helpin/blob/main/server/cmd/api/main.go) (HTTP API), [`packages/widget-embed/src/main.tsx`](https://github.com/helpin-ai/helpin/blob/main/packages/widget-embed/src/main.tsx) (Support widget)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Customer experience"]
  node_widget["Support widget<br/>[main.tsx]"]
  node_support["Support inbox"]
  node_knowledge["Help center and docs"]
end

subgraph group_work["Work management"]
  node_crm["CRM records"]
  node_pipeline_ui["Pipeline settings"]
  node_pipeline_helper["Stage utilities"]
  node_pipeline_api["Pipeline handler<br/>[crm_pipeline.go]"]
  node_pipeline_repo[("Pipeline repository<br/>[crm_pipeline.go]")]
  node_projects["Projects and tasks"]
  node_meetings["Meetings"]
end

subgraph group_agents["Agents and automation"]
  node_agent_ui["Ask Agent"]
  node_automation_ui["Automation"]
  node_automation_engine["Rule engine"]
  node_agent_runtime["Agent runtime<br/>[main.go]"]
end

subgraph group_platform["Application platform"]
  node_web_admin["Admin console"]
  node_desktop["Support desktop"]
  node_mobile["Support mobile"]
  node_api["HTTP API<br/>[main.go]"]
  node_sdk["JavaScript SDK<br/>[client.ts]"]
end

subgraph group_capture["Event capture"]
  node_event_capture["Event capture<br/>[event.rs]"]
  node_event_transform["Event transform<br/>[transform_event.rs]"]
  node_event_pipeline["Capture pipeline<br/>[pipeline.rs]"]
end

node_customer(("Customer"))
node_team(("Support team"))
node_browser(("Website visitor"))
node_external_services{{"Connected services"}}

node_customer -->|"sends message"| node_widget
node_widget -->|"creates conversation"| node_support
node_support -->|"presents inbox"| node_team
node_team -->|"investigates history"| node_support
node_support -->|"links work"| node_projects
node_team -->|"asks questions"| node_agent_ui
node_agent_ui -.->|"coordinates work"| node_automation_engine
node_automation_ui -.->|"configures rules"| node_automation_engine
node_automation_engine -->|"starts agent run"| node_agent_runtime
node_agent_ui -->|"plans tasks"| node_projects
node_team -->|"reviews records"| node_crm
node_crm -->|"manages pipelines"| node_pipeline_ui
node_pipeline_ui -->|"formats stages"| node_pipeline_helper
node_team -->|"records decisions"| node_meetings
node_meetings -->|"links next steps"| node_projects
node_team -->|"publishes guides"| node_knowledge
node_agent_ui -->|"uses sources"| node_knowledge
node_support -->|"follows up"| node_customer
node_browser -->|"hosts widget"| node_widget
node_web_admin -.->|"uses API"| node_api
node_desktop -.->|"uses API"| node_api
node_mobile -.->|"uses API"| node_api
node_pipeline_api -.->|"persists pipelines"| node_pipeline_repo
node_pipeline_api -.->|"serves requests"| node_api
node_browser -.->|"captures activity"| node_sdk
node_sdk -.->|"submits events"| node_event_capture
node_event_pipeline -->|"transforms events"| node_event_transform
node_event_pipeline -->|"processes events"| node_event_capture
node_agent_runtime -.->|"connects optionally"| node_external_services

click node_widget "https://github.com/helpin-ai/helpin/blob/main/packages/widget-embed/src/main.tsx"
click node_support "https://github.com/helpin-ai/helpin/tree/main/frontend/src"
click node_knowledge "https://github.com/helpin-ai/helpin/tree/main/help-center/src"
click node_crm "https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/crm"
click node_pipeline_ui "https://github.com/helpin-ai/helpin/blob/main/frontend/src/components/crm/PipelineSettings.tsx"
click node_pipeline_helper "https://github.com/helpin-ai/helpin/blob/main/frontend/src/components/crm/pipelines/pipelineSettingsUtils.ts"
click node_pipeline_api "https://github.com/helpin-ai/helpin/blob/main/server/internal/handler/crm_pipeline.go"
click node_pipeline_repo "https://github.com/helpin-ai/helpin/blob/main/server/internal/repository/crm_pipeline.go"
click node_projects "https://github.com/helpin-ai/helpin/tree/main/frontend/src"
click node_meetings "https://github.com/helpin-ai/helpin/tree/main/server/internal"
click node_agent_ui "https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/agents"
click node_automation_ui "https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/automation"
click node_automation_engine "https://github.com/helpin-ai/helpin/blob/main/server/internal/service/automation_rule_engine.go"
click node_agent_runtime "https://github.com/helpin-ai/helpin/blob/main/server/cmd/temporal-worker/main.go"
click node_web_admin "https://github.com/helpin-ai/helpin/tree/main/apps/admin/src"
click node_desktop "https://github.com/helpin-ai/helpin/tree/main/apps/support-desktop/src"
click node_mobile "https://github.com/helpin-ai/helpin/tree/main/apps/support-mobile/src"
click node_api "https://github.com/helpin-ai/helpin/blob/main/server/cmd/api/main.go"
click node_sdk "https://github.com/helpin-ai/helpin/blob/main/packages/sdk-js/src/core/client.ts"
click node_event_capture "https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/events/event.rs"
click node_event_transform "https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/events/transform_event.rs"
click node_event_pipeline "https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/pipeline.rs"

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_widget,node_support,node_knowledge toneBlue
class node_crm,node_pipeline_ui,node_pipeline_helper,node_pipeline_api,node_pipeline_repo,node_projects,node_meetings toneAmber
class node_agent_ui,node_automation_ui,node_automation_engine,node_agent_runtime toneMint
class node_web_admin,node_desktop,node_mobile,node_api,node_sdk toneRose
class node_event_capture,node_event_transform,node_event_pipeline,node_customer,node_team,node_browser,node_external_services toneIndigo
```

## Components

### Customer experience

- [Support widget](https://github.com/helpin-ai/helpin/blob/main/packages/widget-embed/src/main.tsx): `packages/widget-embed/src/main.tsx`
- [Support inbox](https://github.com/helpin-ai/helpin/tree/main/frontend/src): `frontend/src`
- [Help center and docs](https://github.com/helpin-ai/helpin/tree/main/help-center/src): `help-center/src`

### Work management

- [CRM records](https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/crm): `frontend/src/components/crm`
- [Pipeline settings](https://github.com/helpin-ai/helpin/blob/main/frontend/src/components/crm/PipelineSettings.tsx): `frontend/src/components/crm/PipelineSettings.tsx`
- [Stage utilities](https://github.com/helpin-ai/helpin/blob/main/frontend/src/components/crm/pipelines/pipelineSettingsUtils.ts): `frontend/src/components/crm/pipelines/pipelineSettingsUtils.ts`
- [Pipeline handler](https://github.com/helpin-ai/helpin/blob/main/server/internal/handler/crm_pipeline.go): `server/internal/handler/crm_pipeline.go`
- [Pipeline repository](https://github.com/helpin-ai/helpin/blob/main/server/internal/repository/crm_pipeline.go): `server/internal/repository/crm_pipeline.go`
- [Projects and tasks](https://github.com/helpin-ai/helpin/tree/main/frontend/src): `frontend/src`
- [Meetings](https://github.com/helpin-ai/helpin/tree/main/server/internal): `server/internal`

### Agents and automation

- [Ask Agent](https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/agents): `frontend/src/components/agents`
- [Automation](https://github.com/helpin-ai/helpin/tree/main/frontend/src/components/automation): `frontend/src/components/automation`
- [Rule engine](https://github.com/helpin-ai/helpin/blob/main/server/internal/service/automation_rule_engine.go): `server/internal/service/automation_rule_engine.go`
- [Agent runtime](https://github.com/helpin-ai/helpin/blob/main/server/cmd/temporal-worker/main.go): `server/cmd/temporal-worker/main.go`

### Application platform

- [Admin console](https://github.com/helpin-ai/helpin/tree/main/apps/admin/src): `apps/admin/src`
- [Support desktop](https://github.com/helpin-ai/helpin/tree/main/apps/support-desktop/src): `apps/support-desktop/src`
- [Support mobile](https://github.com/helpin-ai/helpin/tree/main/apps/support-mobile/src): `apps/support-mobile/src`
- [HTTP API](https://github.com/helpin-ai/helpin/blob/main/server/cmd/api/main.go): `server/cmd/api/main.go`
- [JavaScript SDK](https://github.com/helpin-ai/helpin/blob/main/packages/sdk-js/src/core/client.ts): `packages/sdk-js/src/core/client.ts`

### Event capture

- [Event capture](https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/events/event.rs): `events-pipeline/rust-capture/src/events/event.rs`
- [Event transform](https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/events/transform_event.rs): `events-pipeline/rust-capture/src/events/transform_event.rs`
- [Capture pipeline](https://github.com/helpin-ai/helpin/blob/main/events-pipeline/rust-capture/src/pipeline.rs): `events-pipeline/rust-capture/src/pipeline.rs`

### Other components

- **Customer**
- **Support team**
- **Website visitor**
- **Connected services**

## Connections

- Customer → Support widget: sends message (evidence: `README.md`)
- Support widget → Support inbox: creates conversation (evidence: `README.md`)
- Support inbox → Support team: presents inbox (evidence: `README.md`)
- Support team → Support inbox: investigates history (evidence: `README.md`)
- Support inbox → Projects and tasks: links work (evidence: `README.md`)
- Support team → Ask Agent: asks questions (evidence: `README.md`)
- Ask Agent → Rule engine: coordinates work (evidence: `README.md`)
- Automation → Rule engine: configures rules (evidence: `README.md`)
- Rule engine → Agent runtime: starts agent run (evidence: `server/internal/service/automation_rule_engine.go`)
- Ask Agent → Projects and tasks: plans tasks (evidence: `README.md`)
- Support team → CRM records: reviews records (evidence: `README.md`)
- CRM records → Pipeline settings: manages pipelines (evidence: `frontend/src/components/crm/PipelineSettings.tsx`)
- Pipeline settings → Stage utilities: formats stages (evidence: `frontend/src/components/crm/PipelineSettings.tsx`)
- Support team → Meetings: records decisions (evidence: `README.md`)
- Meetings → Projects and tasks: links next steps (evidence: `README.md`)
- Support team → Help center and docs: publishes guides (evidence: `README.md`)
- Ask Agent → Help center and docs: uses sources (evidence: `README.md`)
- Support inbox → Customer: follows up (evidence: `README.md`)
- Website visitor → Support widget: hosts widget (evidence: `README.md`)
- Admin console → HTTP API: uses API
- Support desktop → HTTP API: uses API
- Support mobile → HTTP API: uses API
- Pipeline handler → Pipeline repository: persists pipelines
- Pipeline handler → HTTP API: serves requests
- Website visitor → JavaScript SDK: captures activity
- JavaScript SDK → Event capture: submits events
- Capture pipeline → Event transform: transforms events (evidence: `events-pipeline/rust-capture/src/pipeline.rs`)
- Capture pipeline → Event capture: processes events (evidence: `events-pipeline/rust-capture/src/pipeline.rs`)
- Agent runtime → Connected services: connects optionally (evidence: `README.md`)
