发送企微消息 API
API 地址
https://open.xinheyun.com/319270248e0
该地址是智能体渠道向咨询者发消息的接口。
请求内容:
token
由OAuth客户端生成token,详见 OAuth客户端获取调用C2_API的token
curl
curl --location --request POST 'https://c2.xinheyun.com/api/open/v3/butler/channel/message/send' \ --header 'Authorization: eyJhbGciOiJIxxxxxxAMLhX2Y' \ --header 'Content-Type: application/json' \ --data-raw '{ "body": { "dialogId": "xxxxx", "message":"消息内容" } }'
CASE 1:通过 MCP 实现“转人工”微信通知
先获取并配置MCP工具调用此API接口的 token,配置见「OAuth 客户端获取调用 C2_API 的 token」。
效果展示:




