Send Enterprise WeChat Message API
API Endpoint
https://open.xinheyun.com/319270248e0
This endpoint is the interface for the Agent channel to send messages to inquirers.
Request Content:
token
Generate a token via the OAuth client. See OAuth Client: Obtain Token for Calling C2_API for details.
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":"Message content" } }'
CASE 1: Implement “Transfer to Human” WeChat Notification via MCP
First, obtain and configure the token for the MCP tool to call this API endpoint. Configuration details are available in “OAuth Client: Obtain Token for Calling C2_API”.
2. AI Task Configuration
- Configure as shown in the diagram:
Transfer to Human Notification --- Trigger when the customer has any of the following situations: When the customer wants a refund When the customer wants to file a complaint --- Must call the "Send Transfer to Human Notification" tool (After March 1, 2026, always use the "+" button in the top-right corner to select the "MCP" tool)
- Click [Save] → [Run]
Effect Demonstration:




