聊天机器人消息发送
开发中
POST
https://saas-open.vhall.com/v3/msg/chatbot/send-msg
文本消息:
{
"type": "text",
"text_content": "" // 实际聊天内容
}
{
"type": "image",
"image_urls": ["", ""] // 图片链接,json数组格式
}
{
"type": "link",
"link_url": "" // 链接地址
}
{
"type": "voice",
"voice_url": "" // 音频地址
}
{
"type": "video",
"video_url": "" // 视频地址
}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/msg/chatbot/send-msg' \
--header 'x-auth-info: {"user_id":12345}' \
--header 'platform: 15' \
--form 'webinar_id=""' \
--form 'msg_type="chat"' \
--form 'msg_body=""' \
--form 'sender_id="123"' \
--form 'sender_avatar="https://1231213212.com/demo.png"' \
--form 'sender_nickname=""' \
--form 'app_key=""' \
--form 'sign_type=""' \
--form 'signed_at=""' \
--form 'sign=""'
响应示例响应示例
{
"code": 0,
"msg": "string",
"data": {}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
x-auth-info
string
必需
示例值:
{"user_id":12345}
platform
string
必需
示例值:
15
Body 参数multipart/form-data
webinar_id
string
活动id
msg_type
string
必需
示例值:
chat
msg_body
string
必需
sender_id
string
必需
示例值:
123
sender_avatar
string
发送者头像
示例值:
https://1231213212.com/demo.png
sender_nickname
string
发送者昵称
app_key
string
必需
默认值:
{{app_key}}
sign_type
integer
必需
默认值:
{{sign_type}}
signed_at
integer
必需
默认值:
{{signed_at}}
sign
string
计算生成的签名值
默认值:
{{sign}}
返回响应
修改于 2025-06-10 08:36:47