feedback_labels
Creates, updates, deletes, gets or lists a feedback_labels
resource.
Overview
Name | feedback_labels |
Type | Resource |
Id | google.contactcenterinsights.feedback_labels |
Fields
The following fields are returned by SELECT
queries:
- get
- list
- list_all_feedback_labels
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label} |
createTime | string (google-datetime) | Output only. Create time of the label. |
label | string | String label used for Topic Modeling. |
labeledResource | string | Name of the resource to be labeled. Supported resources are: * projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} * projects/{project}/locations/{location}/issueModels/{issue_model} * projects/{project}/locations/{location}/generators/{generator_id} |
qaAnswerLabel | object | QaAnswer label used for Quality AI example conversations. (id: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) |
updateTime | string (google-datetime) | Output only. Update time of the label. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label} |
createTime | string (google-datetime) | Output only. Create time of the label. |
label | string | String label used for Topic Modeling. |
labeledResource | string | Name of the resource to be labeled. Supported resources are: * projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} * projects/{project}/locations/{location}/issueModels/{issue_model} * projects/{project}/locations/{location}/generators/{generator_id} |
qaAnswerLabel | object | QaAnswer label used for Quality AI example conversations. (id: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) |
updateTime | string (google-datetime) | Output only. Update time of the label. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label} |
createTime | string (google-datetime) | Output only. Create time of the label. |
label | string | String label used for Topic Modeling. |
labeledResource | string | Name of the resource to be labeled. Supported resources are: * projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} * projects/{project}/locations/{location}/issueModels/{issue_model} * projects/{project}/locations/{location}/generators/{generator_id} |
qaAnswerLabel | object | QaAnswer label used for Quality AI example conversations. (id: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) |
updateTime | string (google-datetime) | Output only. Update time of the label. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , feedbackLabelsId | Get feedback label. | |
list | select | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | filter , pageSize , pageToken | List feedback labels. |
list_all_feedback_labels | select | projectsId , locationsId , datasetsId | pageSize , pageToken , filter | List all feedback labels by project number. |
create | insert | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId | feedbackLabelId | Create feedback label. |
patch | update | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , feedbackLabelsId | updateMask | Update feedback label. |
delete | delete | projectsId , locationsId , authorizedViewSetsId , authorizedViewsId , conversationsId , feedbackLabelsId | Delete feedback label. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
authorizedViewSetsId | string | |
authorizedViewsId | string | |
conversationsId | string | |
datasetsId | string | |
feedbackLabelsId | string | |
locationsId | string | |
projectsId | string | |
feedbackLabelId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
- list_all_feedback_labels
Get feedback label.
SELECT
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime
FROM google.contactcenterinsights.feedback_labels
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND feedbackLabelsId = '{{ feedbackLabelsId }}' -- required;
List feedback labels.
SELECT
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime
FROM google.contactcenterinsights.feedback_labels
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
List all feedback labels by project number.
SELECT
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime
FROM google.contactcenterinsights.feedback_labels
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}';
INSERT
examples
- create
- Manifest
Create feedback label.
INSERT INTO google.contactcenterinsights.feedback_labels (
data__label,
data__qaAnswerLabel,
data__name,
data__labeledResource,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId,
feedbackLabelId
)
SELECT
'{{ label }}',
'{{ qaAnswerLabel }}',
'{{ name }}',
'{{ labeledResource }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewsId }}',
'{{ conversationsId }}',
'{{ feedbackLabelId }}'
RETURNING
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime
;
# Description fields are for documentation purposes
- name: feedback_labels
props:
- name: projectsId
value: string
description: Required parameter for the feedback_labels resource.
- name: locationsId
value: string
description: Required parameter for the feedback_labels resource.
- name: authorizedViewSetsId
value: string
description: Required parameter for the feedback_labels resource.
- name: authorizedViewsId
value: string
description: Required parameter for the feedback_labels resource.
- name: conversationsId
value: string
description: Required parameter for the feedback_labels resource.
- name: label
value: string
description: >
String label used for Topic Modeling.
- name: qaAnswerLabel
value: object
description: >
QaAnswer label used for Quality AI example conversations.
- name: name
value: string
description: >
Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
- name: labeledResource
value: string
description: >
Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * `projects/{project}/locations/{location}/issueModels/{issue_model}` * `projects/{project}/locations/{location}/generators/{generator_id}`
- name: feedbackLabelId
value: string
UPDATE
examples
- patch
Update feedback label.
UPDATE google.contactcenterinsights.feedback_labels
SET
data__label = '{{ label }}',
data__qaAnswerLabel = '{{ qaAnswerLabel }}',
data__name = '{{ name }}',
data__labeledResource = '{{ labeledResource }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND feedbackLabelsId = '{{ feedbackLabelsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime;
DELETE
examples
- delete
Delete feedback label.
DELETE FROM google.contactcenterinsights.feedback_labels
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND feedbackLabelsId = '{{ feedbackLabelsId }}' --required;