接收智能机器人发给用户的文本消息
POST https://webapi.kf5.com/kchat/message
Body 参数:
| Name | Required | Type | Comment |
|---|---|---|---|
| action | 是 | string | 操作名称,chat |
| message | 是 | object | 消息信息 |
| message.id | 是 | integer | 消息在逸创云客服系统中的 id |
| message.type | 是 | string | 消息的类型,文本消息为 text |
| message.appid | 是 | integer | 自定义 IM 应用 id |
| message.to_user | 是 | string | 接收消息的用户 openid |
| message.is_robot | 是 | boolean | 是否是智能机器人发送的消息 |
| message.content | 是 | string | 消息的文本内容 |
| message.create_time | 是 | integer | 消息的发送时间,秒级别时间戳 |
和接收客服发给用户的文本消息的接口回调相比,此接口回调的消息 message 存在属性 is_robot,并且为 true。
请求示例:
{
"action": "chat",
"message": {
"id": 181578717,
"type": "text",
"appid": 1000045,
"to_user": "e4d8c2abfc783e0b8f0d7b4eb93812e5",
"is_robot": true,
"content": "您好,有什么需要帮助您的吗",
"create_time": 1480433249
}
}用户服务器响应:
状态码 200
