调用 UpdateActivityAutoReplyCommentConfig 接口,更新直播间自动回复中的配置内容。开启自动回复后,当观众发送的评论内容中包含您设置的关键词时,系统将自动发送预设的回复。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | UpdateActivityAutoReplyCommentConfig | 接口名称。当前 API 的名称为 UpdateActivityAutoReplyCommentConfig。 |
| Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
ActivityId | Integer | 是 |
| 直播间 ID。您可以通过 ListActivityAPI 接口查询 ID。 说明 使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理。 |
IsAutoReplyEnable | Integer | 否 |
| 是否开启直播间的自动回复功能。不传则不更新该字段。取值如下:
|
| AutoReplyCommentOpName | String | 否 | 直播小助手 | 设置系统自动回复时显示的昵称。最多支持 20 个字符。 |
| AutoReplyCommentOpAvatar | String | 否 | https://p9-hippo-sign.byteimg.com/avatar.jpg | 设置系统自动回复时显示的头像。需要包含 HTTPS 协议头。 |
| ReplyCommentMetas | Array of ReplyCommentMetas | 否 | - | 自动回复的具体内容配置。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| TriggerReplyKeyword | String | 是 | 优惠 | 触发的关键词。当观众的评论包含该关键词时,系统便会自动发送您预设的回复。 |
| ReplyCommentContent | String | 是 | 点击小黄车1号链接即可领取专属优惠哦~ | 自动回复的内容。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
IsAutoReplyEnable | Integer |
| 是否开启了直播间的自动回复功能。取值如下:
|
| AutoReplyCommentOpName | String | 直播小助手 | 系统自动回复时显示的昵称。 |
| AutoReplyCommentOpAvatar | String | https://p9-hippo-sign.byteimg.com/avatar.jpg | 系统自动回复时显示的头像 URL。 |
| ReplyCommentMetas | Array of ReplyCommentMetas | - | 更新后的回复的具体内容配置。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| TriggerReplyKeyword | String | 优惠 | 更新后触发的关键词。当观众的评论包含该关键词时,系统便会自动发送您预设的回复。 |
| ReplyCommentContent | String | 点击小黄车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" } }