You need to enable JavaScript to run this app.
文档中心
企业直播

企业直播

复制全文
下载 pdf
菜单管理
UpdateActivityAutoReplyCommentConfig - 更新直播间自动回复配置
复制全文
下载 pdf
UpdateActivityAutoReplyCommentConfig - 更新直播间自动回复配置

调用 UpdateActivityAutoReplyCommentConfig 接口,更新直播间自动回复中的配置内容。开启自动回复后,当观众发送的评论内容中包含您设置的关键词时,系统将自动发送预设的回复。

注意事项

  • 请求频率:单用户请求频率限制为 10 次/秒
  • 前提条件:确保您拥有火山引擎主账号或具备直播间的菜单管理 > 可编辑权限的子账号。有关如何添加子账号,详见子账号管理

请求说明

  • 请求方式:POST
  • 请求地址:https://livesaas.volcengineapi.com/?Action=UpdateActivityAutoReplyCommentConfig&Version=2023-08-01

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数

Query

参数类型是否必选示例值描述
ActionStringUpdateActivityAutoReplyCommentConfig接口名称。当前 API 的名称为 UpdateActivityAutoReplyCommentConfig
VersionString2023-08-01接口版本。当前 API 的版本为 2023-08-01

Body

参数类型是否必选示例值描述

ActivityId

Integer

1770*****3012

直播间 ID。您可以通过 ListActivityAPI 接口查询 ID。

说明

使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理

IsAutoReplyEnable

Integer

1

是否开启直播间的自动回复功能。不传则不更新该字段。取值如下:

  • 0: 关闭
  • 1: 开启
AutoReplyCommentOpNameString直播小助手设置系统自动回复时显示的昵称。最多支持 20 个字符。
AutoReplyCommentOpAvatarStringhttps://p9-hippo-sign.byteimg.com/avatar.jpg设置系统自动回复时显示的头像。需要包含 HTTPS 协议头。
ReplyCommentMetasArray of ReplyCommentMetas-自动回复的具体内容配置。

ReplyCommentMetas

参数类型是否必选示例值描述
TriggerReplyKeywordString优惠触发的关键词。当观众的评论包含该关键词时,系统便会自动发送您预设的回复。
ReplyCommentContentString点击小黄车1号链接即可领取专属优惠哦~自动回复的内容。

返回参数

参数类型示例值描述

IsAutoReplyEnable

Integer

1

是否开启了直播间的自动回复功能。取值如下:

  • 0: 关闭
  • 1: 开启
AutoReplyCommentOpNameString直播小助手系统自动回复时显示的昵称。
AutoReplyCommentOpAvatarStringhttps://p9-hippo-sign.byteimg.com/avatar.jpg系统自动回复时显示的头像 URL。
ReplyCommentMetasArray of ReplyCommentMetas-更新后的回复的具体内容配置。

ReplyCommentMetas

参数类型示例值描述
TriggerReplyKeywordString优惠更新后触发的关键词。当观众的评论包含该关键词时,系统便会自动发送您预设的回复。
ReplyCommentContentString点击小黄车1号链接即可领取专属优惠更新后的自动回复的内容。

请求示例

POST https://livesaas.volcengineapi.com/?Action=UpdateActivityAutoReplyCommentConfig&Version=2023-08-01
{
    "ActivityId": 1770*****3012,
    "IsAutoReplyEnable": 1,
    "ReplyCommentMetas": [
        {
            "TriggerReplyKeyword": "优惠",
            "ReplyCommentContent": "点击小黄车1号链接即可领取专属优惠哦~"
        }
    ],
    "AutoReplyCommentOpAvatar": "https://p9-hippo-sign.byteimg.com/avatar.jpg",
    "AutoReplyCommentOpName": "直播小助手"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "UpdateActivityAutoReplyCommentConfig",
        "Version": "2023-08-01",
        "Service": "livesaas",
        "Region": "cn-north-1",
        "SystemTime": 1697446406
    },
    "Result": {
        "IsAutoReplyEnable": 1,
        "ReplyCommentMetas": [
            {
                "ReplyCommentContent": "点击小黄车1号链接即可领取专属优惠",
                "TriggerReplyKeyword": "优惠"
            }
        ],
        "AutoReplyCommentOpName": "直播小助手",
        "AutoReplyCommentOpAvatar": "https://p9-hippo-sign.byteimg.com/avatar.jpg"
    }
}

错误码

访问公共错误码错误码获取详细信息。

最近更新时间:2026.06.17 16:52:25
这个页面对您有帮助吗?
有用
有用
无用
无用