Skip to content

[P1] templates: no first-class canned response / macro — every template rolls its own #1306

@xuyushun441-sys

Description

@xuyushun441-sys

来源:docs/PLATFORM_GAPS_FROM_TEMPLATES.md 第 32 条(P1)。

现象

平台没有「Canned Response / Macro」一等公民。重复发送的回复模板,每个模板都得自己造对象 + 自己造选择器 + 自己写 flow 插值,没有标准能力。

适用场景:

  • 客服坐席每天打 30 遍「请提供您的订单号」
  • 销售标准化跟进话术
  • HR 标准 Offer 邮件 / 通知模板
  • 合规整改回执模板

复现

helpdesk 模板没有 canned response。坐席必须手敲或者自己维护笔记。

当前 workaround

  • 自定义对象 canned_response,在撰写器里下拉选择并插入
  • 占位符要么硬编码字符串替换、要么走 flow 后台插值
  • 多语言无标准

每个模板都重复造,且不能跨模板复用。

建议范围

M1:系统级 canned response

  • 新对象 system.canned_response{ id, label, body (rich), category, scope: 'global' | 'team' | 'user', variables: [...] }
  • 与具体业务对象解耦:能用在 helpdesk_messagecrm_activityhr_offer 任意 long_text 字段

M2:占位符

  • {{customer.name}} / {{ticket.ticket_number}} 渲染时按上下文解析
  • 缺值高亮提示

M3:撰写器集成

M4:多语言

  • 一个 canned response 支持多 locale 文本
  • 按当前 user / customer 的 locale 选

验收

关联

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:p1High: required for production / M2

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions