Skip to content

Sổ đăng ký Script (Canonical)

Cập nhật: 2026-05-10 | Source of truth: Production scripts trên haravan.help (Frappe Cloud)

Quy ước đặt tên

Format production

<Type> - <Group> - <Purpose>

Ví dụ:

  • Server Script - Enrichment - Auto Customer Sync From OrgID
  • HD Form Script - Profile - Ticket Customer Button
  • Client Script - Intake - Agent Ticket Dialog

Format debug

Debug - {group} - {name}

Ví dụ:

  • Debug - API - Frappe Endpoint Smoke
  • Debug - Enrichment - Ticket Domain Filter Replay

Từ điển trạng thái

Trạng tháiÝ nghĩa
ActiveĐang sử dụng trong production
DebugChỉ dùng cho test/diagnostic
Not useKhông còn sử dụng, giữ lại để tham chiếu
LegacyHành vi cũ, giữ cho migration/audit

Phân loại theo nhóm (Taxonomy)

GroupMô tả
IntakeAPI/dialog tạo ticket
ValidationKiểm tra và normalize trước khi save
EnrichmentTra cứu org/domain, meta.json, Bitrix sync
RoutingNormalize route fields và agent_group
AssignmentPhân công ownership cho agent
ProfileCustomer profile và actions
IntegrationGitLab, Make, hệ thống bên ngoài
DebugTest và troubleshooting

Danh sách Script đầy đủ

Server Script / API

Tên hiện tạiTên CanonicalGroupStatus
Onboarding - Create Ticket APIServer Script - Intake - Create Onboarding Ticket APIIntake✅ Active
Onboarding - Agent Ticket APIServer Script - Intake - Create Agent Ticket APIIntake✅ Active
Ticket - Contact Phone ValidateServer Script - Validation - Contact Phone NormalizeValidation✅ Active
Ticket - Normalize Intake SelectsServer Script - Validation - Intake Select NormalizeValidation✅ Active
Ticket - Product Suggestion MapServer Script - Validation - Product Suggestion MapValidation✅ Active
Ticket - Auto Customer Sync From OrgIDServer Script - Enrichment - Auto Customer Sync From OrgIDEnrichment✅ Active
Ticket - Find OrgID From URL APIServer Script - Enrichment - Find OrgID From URL APIEnrichment✅ Active
Metajson - Bitrix Company Enrichment APIServer Script - Enrichment - Bitrix Company Enrichment APIEnrichment✅ Active
Profile - Bitrix Sync Ticket CustomerServer Script - Profile - Bitrix Sync Ticket CustomerProfile✅ Active
Profile - Bitrix Customer APIServer Script - Profile - Bitrix Customer Profile APIProfile✅ Active
Ticket - Snapshot Enrichment FieldsServer Script - Routing - Snapshot Enrichment FieldsRouting✅ Active
Ticket - Normalize Enrichment Routing After SaveServer Script - Routing - Normalize Enrichment RoutingRouting✅ Active
GitLab - Ticket Issue APIServer Script - Integration - GitLab Ticket Issue APIIntegration✅ Active

Server Script — Disabled

TênCanonicalGroupStatusLý do
Ticket - Auto Customer Sync Kickoff After InsertEnrichment - Auto Customer Sync KickoffEnrichment⛔ Not useSuperseded by after-save path
Ticket - Require Customer Or Store URLValidation - Require Customer Or Store URLValidation⛔ Not useBlocking validator disabled
Ticket - Store URL EnrichEnrichment - Store URL EnrichEnrichment⛔ Not useLegacy pre-validate flow
Profile - Ticket RoutingRouting - Ticket RoutingRouting⛔ Not useLegacy routing
Profile - Ticket Round Robin AssignmentAssignment - Ticket Round Robin AssignmentAssignment⛔ Not useLegacy assignment

Client Script

TênGroupStatusChức năng
Onboarding - Agent Ticket DialogIntake✅ ActiveDialog tạo ticket cho agent

HD Form Script

TênGroupStatusChức năng
Profile - Ticket Customer ButtonProfile✅ ActiveNút customer profile trên ticket
GitLab - Ticket Issue ButtonIntegration✅ ActiveNút tạo GitLab issue từ ticket

Quy trình thay đổi Script

Trước khi thêm hoặc sửa script:

  1. ✅ Tên đúng format canonical theo loại script
  2. ✅ Group thuộc taxonomy ở trên
  3. ✅ Status được set rõ ràng
  4. ✅ Mô tả ngắn 1 dòng
  5. ✅ Nếu debug: tên bắt đầu bằng Debug -
  6. ✅ Nếu tắt: chuyển sang Not use (không xóa khỏi catalog)
  7. ✅ Cập nhật docs liên quan

Tham chiếu