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

21 lines
1.2 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 和回调地址。运动馆智能助手使用:
`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 配置)。
- 客资日报接口运行在当前 8880 服务内,直接查询 `xuebang_db` 中的同步数据,不调用 9999 同步服务。
`/v1/integrations/wecom/callback` 保持原有扣子默认工作流;`/v1/integrations/wecom/sports-venue/callback` 使用 DeepSeek 语义识别并调用客资日报接口。回复消息时,服务端会根据入口选择对应应用的 AgentId 和 Secret。