简要描述:
推送已接收的聊天记录
每条消息推送一次,多条消息会推送多次
HTTP协议说明:
| 请求方式 | Content-Type |
|---|---|
| POST | application/json |
参数说明:
| 参数名 | 必填 | 类型 | 说明 |
|---|---|---|---|
| type | 是 | string | 消息类型,固定为:received_chat |
| nodeId | 是 | string | 节点ID |
| message | 是 | object | 消息主体 |
| userId | 是 | string | 成员ID |
| custId | 是 | string | 客户ID(预留) |
| custNickname | 是 | string | 客户昵称(发消息的客户) |
| from | 是 | string | 发送者来源:send发送,recv接收 |
| msgType | 是 | string | 聊天内容类型:text文本, img图片, voice语音, other其他 |
| text | 是 | string | 文本内容:文字内容,[图片],[语音],等等 |
| content | 是 | string | 附加内容:图片base64,语音翻译等,等等 |
参数示例:
{
"type": "received_chat",
"nodeId":"8980f569-e31c-4357-8f37-2ec9ad9fe605",
"message": {
"userId":"xxxxx",
"custId":"xxxxx",
"custNickname": "成员01-客户2",
"from": "send",
"msgType": "text",
"text": "你好呀",
"content": "你好呀",
}
}或:
{
"type": "received_chat",
"nodeId":"8980f569-e31c-4357-8f37-2ec9ad9fe605",
"message": {
"userId":"xxxxx",
"custId":"xxxxx",
"custNickname": "成员01-客户2",
"from": "recv",
"msgType": "voice",
"text": "[语音]",
"content": "吃饭了么",
}
}文档更新时间: 2023-06-10 12:10 作者:副官