接收智能机器人发给用户的文档列表
POST https://webapi.kf5.com/kchat/message
Body 参数:
| Name | Required | Type | Comment | 
|---|---|---|---|
| action | 是 | string | 操作名称,chat | 
| message | 是 | object | 消息信息 | 
| message.id | 是 | integer | 消息在逸创云客服系统中的 id | 
| message.type | 是 | string | 消息的类型,文档列表消息为 posts | 
| message.appid | 是 | integer | 自定义 IM 应用 id | 
| message.to_user | 是 | string | 接收消息的用户 openid | 
| message.is_robot | 是 | boolean | 是否是智能机器人发送的消息 | 
| message.posts | 是 | array | 机器人匹配到的文档列表 | 
| message.posts[i].id | 是 | integer | 文档 id | 
| message.posts[i].title | 是 | string | 文档标题 | 
| message.posts[i].url | 是 | string | 文档的 URL | 
| message.create_time | 是 | integer | 消息的发送时间,秒级别时间戳 | 
请求示例:
{
	"action": "chat",
	"message": {
		"id": 181578717,
		"type": "posts",
		"appid": 1000045,
		"to_user": "e4d8c2abfc783e0b8f0d7b4eb93812e5",
		"is_robot": true,
		"posts": [
		    {
		        "id": 29052,
		        "title": "如何使用 KCHAT IM",
		        "url": "https://support.kf5.com/posts/view/29052"
		    },
		    ....
		],
		"create_time": 1480433249
	}
}用户服务器响应:
状态码 200
