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

17 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 客资日报企业微信回调
客资日报助手复用现有企业微信通用配置,不新增第二套 CorpId、AgentId、Secret、Token 或 EncodingAESKey。
每个助手只配置自己的回调地址,服务端使用独立的回调方法接收消息:
`GET/POST /v1/integrations/wecom/customer-report/callback`
GET 用于企业微信保存回调配置时验签,POST 用于接收用户消息。服务端把原始问题和 `FromUserName`(企业微信 UserID)交给 DeepSeek 语义路由,再由命中的后端处理器调用白名单业务接口。
部署前配置:
- 沿用 `foundation.wecom` 下现有的 CorpId、AgentId、Secret、Token、EncodingAESKey。
- `DEEPSEEK_API_KEY`(沿用项目现有 DeepSeek 配置)。
- `CRM_REPORT_BASE_URL`,指向学邦同步服务,例如 `http://127.0.0.1:9999`。
`/v1/integrations/wecom/callback` 和 `/v1/integrations/wecom/customer-report/callback` 分别对应独立的 GET/POST 回调方法,但复用签名验证、解密和语义路由逻辑。后续增加助手时只新增回调路径和入口方法,不重复企业微信公共配置。