Skip to main content

feedback_labels

Creates, updates, deletes, gets or lists a feedback_labels resource.

Overview

Namefeedback_labels
TypeResource
Idgoogle.contactcenterinsights.feedback_labels

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
createTimestring (google-datetime)Output only. Create time of the label.
labelstringString label used for Topic Modeling.
labeledResourcestringName 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}
qaAnswerLabelobjectQaAnswer label used for Quality AI example conversations. (id: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue)
updateTimestring (google-datetime)Output only. Update time of the label.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, feedbackLabelsIdGet feedback label.
listselectprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsIdfilter, pageSize, pageTokenList feedback labels.
list_all_feedback_labelsselectprojectsId, locationsId, datasetsIdpageSize, pageToken, filterList all feedback labels by project number.
createinsertprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsIdfeedbackLabelIdCreate feedback label.
patchupdateprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, feedbackLabelsIdupdateMaskUpdate feedback label.
deletedeleteprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, feedbackLabelsIdDelete 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.

NameDatatypeDescription
authorizedViewSetsIdstring
authorizedViewsIdstring
conversationsIdstring
datasetsIdstring
feedbackLabelsIdstring
locationsIdstring
projectsIdstring
feedbackLabelIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

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;

INSERT examples

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
;

UPDATE examples

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 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;