Skip to content

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

ActorScope
CrmRoles (Admin + CallCenter + ADS + Sale + BOD)Ticket và customer CRM
TelesalesLeader, CustomerServiceLeader, ITLeader, ITStaffAssignment
CrmRoles + ITLeader, ITStaffKnowledge base
ITLeader, ITStaffMapping hotline account

Feature Groups

GroupMô tảPagesDocs
Ticket ManagementDanh sách ticket, tạo mới, update, detail, multiple create7Business · Technical
CRM Customer WorkspaceSearch/new/list/visit/detail customer theo góc nhìn CRM4 + nhiều tab conBusiness · Technical
Assignment & KnowledgePhân công ticket, knowledge base, mapping hotline account6Business · 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

ServiceVai trò
crm-apiActions, events, schedulers cho ticket/call/assignment
webhookHandler incall.go cho phone/incoming call integration
controller (Hasura)CRUD trực tiếp trên ticket, knowledge_question, crm_user, incall_*

Databases

DBKey tables
crmticket, 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
ecommercecustomer / appointment / complaint / labels được join vào CRM workspace
defaultaccount, 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 theo crm/*.
  • 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