- 语聚AI应用助手API使用说明
- AI助手 API
- 外部联系人API
- 知识库
- 通用功能API
- AI营销
对话消息回调
GET
/notice
请求参数
Body 参数application/json
data
object
必需
messageId
string
消息id
chatId
string
对话id(表示一个bot和一个客户)
avatar
string
客户或者群头像
roomTopic
string
群名
roomId
string
群聊的系统wxid
contactName
string
客户姓名
contactId
string
客户的系统wxid
payload
消息内容
type
enum<number>
消息的payload
枚举值:
012345678910111213151699991000010001
timestamp
string
消息时间戳
token
string
企业级token
botId
string
bot的账号id
contactType
enum<number>
客户的类型
枚举值:
0123
coworker
boolean
是否为内部员工
botWxid
string
托管账号对应成员的系统wxid
botWeixin
string
bot的企业微信userId
source
enum<number>
消息来源,具体来源信息参考下面的枚举定义
枚举值:
01234567
sendBy
string
消息发送者的秒回id,仅当消息为消息为托管账号发送的,且消息来源为小组级控制台手动发消息时有效
isSelf
boolean
消息是否是托管账号自己发送的消息
mentionSelf
boolean
当前消息是否@了托管账号
externalUserId
string
客户的企业微信externalUserId
roomWecomChatId
string
群的企微chatId
示例
{
"data": {
"messageId": "string",
"chatId": "string",
"avatar": "string",
"roomTopic": "string",
"roomId": "string",
"contactName": "string",
"contactId": "string",
"payload": {
"content": "string"
},
"type": 0,
"timestamp": "string",
"token": "string",
"botId": "string",
"contactType": 0,
"coworker": true,
"botWxid": "string",
"botWeixin": "string",
"source": 0,
"sendBy": "string",
"isSelf": true,
"mentionSelf": true,
"externalUserId": "string",
"roomWecomChatId\t": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://chat.jijyun.cn/notice' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"messageId": "string",
"chatId": "string",
"avatar": "string",
"roomTopic": "string",
"roomId": "string",
"contactName": "string",
"contactId": "string",
"payload": {
"content": "string"
},
"type": 0,
"timestamp": "string",
"token": "string",
"botId": "string",
"contactType": 0,
"coworker": true,
"botWxid": "string",
"botWeixin": "string",
"source": 0,
"sendBy": "string",
"isSelf": true,
"mentionSelf": true,
"externalUserId": "string",
"roomWecomChatId\t": "string"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}