语聚AI
  1. 群管理
语聚AI
  • 语聚AI应用助手API使用说明
  • AI助手 API
    • 验证apiKey
      GET
    • 查询指定AI助手下的动作列表(工具列表)
      GET
    • 执行动作(文本格式)
      POST
    • 执行动作(NLP方式)
      POST
    • 获取动作配置页面地址
      GET
    • 查询执行日志记录
      GET
    • 创建会话消息
      POST
  • 外部联系人API
    • 查询外部联系人(详情)
      GET
    • 查询外部联系人(列表)
      POST
    • 删除外部联系人
      DELETE
    • 创建外部联系人
      POST
    • 更新外部联系人
      PUT
  • 知识库
    • 查询文本知识库列表
      GET
    • 现有文本知识库中同步新内容
      POST
    • 查询知识库内容
      GET
    • 更新知识库内容
      PUT
    • 查询文本知识库文档文件列表
      GET
  • 通用功能API
    • 查询账户当前余额
    • 查询助手列表
    • 发送消息给指定用户
    • 费用明细查询接口
  • AI营销
    • AI外呼
      • 添加号码到外呼任务中
      • 获取外呼任务列表
      • 添加CRM公海线索后同步到外呼任务
      • 添加CRM公海线索
      • 重置指定号码外呼状态
      • 添加指定号码到黑名单
      • 查询通话记录
      • 下载通话录音
      • 黑名单组列表
      • 查询通话记录ID列表
      • 查询联系人字段列表
    • 企业微信代运营/托管
      • 对话消息接收与发送
        • 对话消息回调
        • 发送消息
      • 群管理
        • 创建企业微信群
          POST
        • 获取群列表信息
          GET
        • 查询指定用户下所在群信息
          GET
        • 入群事件回调
          GET
        • 离群事件回调
          GET
      • 外部联系人
        • 获取企业联系人列表
        • 创建好友添加任务
        • 好友通过事件回调
      • 基础设置
        • 获取当前企业托管账号列表
        • 获取企业员工列表
  1. 群管理

入群事件回调

GET
/group
使用回调时,先进入AI微信营销中(https://apps.yuju-ai.com/WeChatMarket/api?channel=member-ai-chat), 将回调地址修改为您系统的回调地址。
请注意此修改将导致AI营销中的托管数据无法收取(因为数据已同步到您的回调地址中)

请求参数

Body 参数application/json
chatId
string 
群聊的对话id
必需
botInfo
object 
触发事件的托管账号信息
必需
imBotId
string 
托管账号的系统员工id
必需
wecomUserId
string 
托管账号企业微信员工id
必需
nickName
string 
托管账号的昵称
必需
imRoomId
string 
系统群聊id
必需
topic
string 
群名称
必需
avatarUrl
string 
群头像地址
必需
ownerImContactId
string 
群主的系统联系人id
必需
joinedMember
array [object {8}] 
入群成员信息
必需
imContactId
string 
群成员的系统联系人id
可选
nickName
string 
群成员的昵称
可选
avatarUrl
string 
群成员的头像地址
可选
roomAlias
string 
群成员备注
可选
isFriend
boolean 
与此托管账号是否为好友
可选
contactType
integer 
联系人类型
可选
coworker
boolean 
是否为同事
可选
isSelf
boolean 
入群成员是否为托管账号自己触发
可选
groupId
string 
群聊所属小组id
必需
timestamp
string 
BOT获取到同步信息的时间
必需
示例
{
  "chatId": "string",
  "token": "string",
  "botInfo": {
    "imBotId": "string",
    "wecomUserId": "string",
    "nickName": "string"
  },
  "imRoomId": "string",
  "topic": "string",
  "avatarUrl": "string",
  "ownerImContactId": "string",
  "joinedMember": [
    {
      "imContactId": "string",
      "nickName": "string",
      "avatarUrl": "string",
      "roomAlias": "string",
      "isFriend": true,
      "contactType": 0,
      "coworker": true,
      "isSelf": true
    }
  ],
  "groupId": "string",
  "timestamp": "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/group' \
--header 'Content-Type: application/json' \
--data-raw '{
  "chatId": "string",
  "token": "string",
  "botInfo": {
    "imBotId": "string",
    "wecomUserId": "string",
    "nickName": "string"
  },
  "imRoomId": "string",
  "topic": "string",
  "avatarUrl": "string",
  "ownerImContactId": "string",
  "joinedMember": [
    {
      "imContactId": "string",
      "nickName": "string",
      "avatarUrl": "string",
      "roomAlias": "string",
      "isFriend": true,
      "contactType": 0,
      "coworker": true,
      "isSelf": true
    }
  ],
  "groupId": "string",
  "timestamp": "string"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
上一页
查询指定用户下所在群信息
下一页
离群事件回调
Built with