Appearance
CRM Module
Mục đích
CRM module quản lý vòng đời ticket chăm sóc/tư vấn khách hàng, assignment cho telesales - CSKH, knowledge base cho call center, và workspace customer phục vụ CRM staff. Đây là module "vận hành sau lead" của Diva.
Quy mô
- 17 FE pages
- 29 FE components
- 6 GraphQL files / 42 operations
- 3 nhóm nghiệp vụ lớn: ticket, customer CRM workspace, assignment/knowledge
Actors & Permissions
| Actor | Scope |
|---|---|
CrmRoles (Admin + CallCenter + ADS + Sale + BOD) | Ticket và customer CRM |
TelesalesLeader, CustomerServiceLeader, ITLeader, ITStaff | Assignment |
CrmRoles + ITLeader, ITStaff | Knowledge base |
ITLeader, ITStaff | Mapping hotline account |
Feature Groups
| Group | Mô tả | Pages | Docs |
|---|---|---|---|
| Ticket Management | Danh sách ticket, tạo mới, update, detail, multiple create | 7 | Business · Technical |
| CRM Customer Workspace | Search/new/list/visit/detail customer theo góc nhìn CRM | 4 + nhiều tab con | Business · Technical |
| Assignment & Knowledge | Phân công ticket, knowledge base, mapping hotline account | 6 | Business · Technical |
Liên kết Modules
- user — reuse customer list/detail tabs, branch select, user select, staff display
- ecommerce — appointments, records, customer labels, order history, complaint
- affiliate — collaborator order/payment/withdraw views trong customer detail
- notification +
webhook— call center và incall integration - report — hotline / complaint / customer cycle báo cáo dựa trên dữ liệu CRM
Backend Services
| Service | Vai trò |
|---|---|
| crm-api | Actions, events, schedulers cho ticket/call/assignment |
| webhook | Handler incall.go cho phone/incoming call integration |
| controller (Hasura) | CRUD trực tiếp trên ticket, knowledge_question, crm_user, incall_* |
Databases
| DB | Key tables |
|---|---|
| crm | ticket, ticket_distribute, ticket_interest, ticket_campaign, ticket_history_log, crm_user, knowledge_question, knowledge_question_tag, incall_call, incall_call_log, incall_extension, incall_call_contact_mapping |
| ecommerce | customer / appointment / complaint / labels được join vào CRM workspace |
| default | account, branch, role data để phân quyền và assignment |
Đặc điểm kiến trúc
- Customer workspace trong CRM reuse rất nhiều component từ module
user, nhưng scope quyền và route path theocrm/*. - Ticket list kết hợp call center behavior: extension local storage, missed call, source tooltip, quick action.
- CRM có scheduler riêng cho distribute, remind, consolidate ticket và KPI hotline.
Deep Dives
- ticket-workflow — đào sâu ticket lifecycle, assignment/distribution, hotline runtime và các drift ở visibility/assignment