Skip to content

[P2] channel: no inbound channel abstraction — email-to-ticket / webhook-to-lead need external ETL #1323

Description

@xuyushun441-sys

来源:docs/PLATFORM_GAPS_FROM_TEMPLATES.md 第 39 条(P2)。

现象

平台没有「入站 channel」抽象。从外界(邮件、Webhook、表单)进入系统的记录都得自己写脚本 + 外部 ETL才能落到对象上。

具体场景:

  • 客户发邮件到 support@xx.com → 不能自动转工单
  • 第三方系统 POST → 不能自动创建 lead / 记录
  • 表单提交 → 不能自动加到对应对象
  • 入站消息附件 → 没有抓取通道

复现

helpdesk 模板:客户回复邮件 → 期望追加到现有工单的 messages → 今天必须用户登录 portal 手动回复。

建议范围

M1:inbound channel 抽象

  • 系统对象 inbound_channel{ id, type: 'email' | 'webhook' | 'form', config, targetObject, mapping, onReceive: flowRef }
  • 入站消息进入队列 → flow 处理 → upsert 到对象

M2:邮件入站

M3:webhook 入站

  • 公共 URL + 鉴权(签名 / Bearer)
  • payload mapping → 对象字段

M4:表单入站

验收

关联

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions