Method: projects.locations.datasets.bulkDownloadFeedbackLabels

从外部来源批量下载反馈标签。目前支持导出包含转写内容和问题正文的 Quality AI 示例对话。

HTTP 请求

POST https://{endpoint}/v1/{parent=projects/*/locations/*/datasets/*}:bulkDownloadFeedbackLabels

其中 {endpoint} 是受支持的服务端点之一。

网址使用 gRPC 转码语法。

路径参数

参数
parent

string

必需。新反馈标签的父级资源。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "filter": string,
  "maxDownloadCount": integer,
  "feedbackLabelType": enum (FeedbackLabelType),
  "conversationFilter": string,
  "templateQaScorecardId": [
    string
  ],

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "gcsDestination": {
    object (GcsDestination)
  },
  "sheetsDestination": {
    object (SheetsDestination)
  }
  // End of mutually exclusive fields.
}
字段
filter

string

可选。用于将结果范围缩小至特定子集的过滤条件。支持析取 (OR) 和合取 (AND)。

支持的字段:

  • issueModelId
  • qaQuestionId
  • qaScorecardId
  • min_create_time
  • max_create_time
  • min_update_time
  • max_update_time
  • feedbackLabelType:QUALITY_AI、TOPIC_MODELING
maxDownloadCount

integer

可选。限制将下载的反馈标签数量上限。系统将下载前 N 个反馈标签。

feedbackLabelType

enum (FeedbackLabelType)

可选。将下载的反馈标签类型。

conversationFilter

string

可选。过滤要下载反馈标签的父级对话。指定后,系统会为符合过滤条件的对话下载反馈标签。如果设置了 templateQaScorecardId,则与过滤条件匹配的所有对话都将与评分表下的问题配对,以进行标记。

templateQaScorecardId[]

string

可选。如果设置了此字段,系统会根据 conversationFilter 和评分卡下的问题,创建一个用于为对话和评分卡问题添加标签的模板。系统将忽略反馈标签 filter。

反馈标签将写入到的外部数据存储区的配置。以下是互斥字段的列表。在响应中,最多只能设置其中一个字段:
gcsDestination

object (GcsDestination)

Cloud Storage 存储桶目标位置。

sheetsDestination

object (SheetsDestination)

Google 表格文档目标位置。

互斥字段结束。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview。

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • contactcenterinsights.authorizedFeedbackLabels.download
  • contactcenterinsights.datasetFeedbackLabels.download
  • contactcenterinsights.feedbackLabels.download

如需了解详情,请参阅 IAM 文档。