agent-foundation/docs/customer-report-wecom-callback.md
2026-07-21 13:21:48 +08:00

1.2 KiB
Raw Blame History

客资日报企业微信回调

同一企业下的助手共用 CorpId;每个自建应用分别配置 AgentId、Secret 和回调地址。运动馆智能助手使用:

GET/POST /v1/integrations/wecom/sports-venue/callback

原客资日报地址继续作为兼容入口:

GET/POST /v1/integrations/wecom/customer-report/callback

GET 用于企业微信保存回调配置时验签,POST 用于接收用户消息。服务端把原始问题和 FromUserName(企业微信 UserID)交给 DeepSeek 语义路由,再由命中的后端处理器调用白名单业务接口。

部署前配置:

  • 沿用 foundation.wecom 下现有的 CorpId、Token、EncodingAESKey。
  • 问答小助手和运动馆智能助手分别配置在 foundation.wecom.apps.general、foundation.wecom.apps.sports-venue。
  • DEEPSEEK_API_KEY(沿用项目现有 DeepSeek 配置)。
  • CRM_REPORT_BASE_URL,指向学邦同步服务,例如 http://127.0.0.1:9999。

/v1/integrations/wecom/callback 保持原有扣子默认工作流;/v1/integrations/wecom/sports-venue/callback 使用 DeepSeek 语义识别并调用客资日报接口。回复消息时,服务端会根据入口选择对应应用的 AgentId 和 Secret。