# MCP发送企微消息\_以转人工通知为例

**URL:** https://group.3chatai.cn/t/topic/278
**Category:** 行业解决方案
**Created:** [2026 年3 月 26 日 02:30 UTC](https://group.3chatai.cn/t/topic/278 "2026-03-26T02:30:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### 作者： ![nct\_liuhaonan](https://yyz2.discourse-cdn.com/flex012/user_avatar/group.3chatai.cn/nct_liuhaonan/32/179_2.png) [@nct\_liuhaonan](https://group.3chatai.cn/u/nct_liuhaonan)
#### 发布日期： [2026 年3 月 26 日 02:30 UTC](https://group.3chatai.cn/t/topic/278/1 "2026-03-26T02:30:54Z")

</div>

# 发送企微消息 API

## API 地址

`https://open.xinheyun.com/319270248e0`

> 该地址是智能体渠道向咨询者发消息的接口。

* * *

## 请求内容：

> > **token**
> >
> > 由OAuth客户端生成token，详见 [OAuth客户端获取调用C2\_API的token](https://group.3chatai.cn/t/topic/142)

> > **curl**
> >
> > ```auto
> > 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](https://group.3chatai.cn/t/topic/142)」。

> > **1. 为MCP配置token**
> >
> > 1. 进入 **3Chat Agent → MCP 授权访问 → 新建**  
> > 
> > 2. 在弹出的页面中填写信息：

> > **2. AI 任务配置**
> >
> > 1. 按图示配置：
> > 
> > ```auto
> > 转人工通知
> > ---
> > 当客户有以下任一情况时：
> > 当客户想要退款时
> > 当客户想要投诉时
> > ---
> > 必须调用"发送转人工通知"工具(2026.3.1后，一律使用"右上角加号"选择”MCP“工具)
> > 
> > ```
> > 
> > ![image](https://canada1.discourse-cdn.com/flex012/uploads/x3chat/original/1X/9155332dbb957a6d27c46e289645159c8f534956.png)
> > 
> > 1. 点击【保存】→【运行】

> > **3. MCP 配置**
> >
> > **(1) 基本信息**
> > 
> > ```auto
> > notify_human
> > ---
> > 发送转人工通知
> > 
> > ```
> > 
> > ![image](https://canada1.discourse-cdn.com/flex012/uploads/x3chat/original/1X/7013f880ef67c8a4a2d9cbd239df1183e133deea.png)
> > 
> > **(2) 请求配置**  
> > 以3Chat接口文档进行配置
> > 
> > **(3) 接口测试**  
> > 对应的个人微信应收到通知：
> > 
> > **(4) 下一步**  
> > 点击【保存】。

**效果展示：**

 ![image](https://canada1.discourse-cdn.com/flex012/uploads/x3chat/original/1X/3925f125320e68c60d164c2f3530407276dd2384.png)
