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:

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, datasetsId, conversationsId, feedbackLabelsIdGet feedback label.
listselectprojectsId, locationsId, datasetsId, conversationsIdfilter, pageSize, pageTokenList feedback labels.
list_all_feedback_labelsselectprojectsId, locationsIdfilter, pageSize, pageTokenList all feedback labels by project number.
createinsertprojectsId, locationsId, datasetsId, conversationsIdfeedbackLabelIdCreate feedback label.
patchupdateprojectsId, locationsId, datasetsId, conversationsId, feedbackLabelsIdupdateMaskUpdate feedback label.
deletedeleteprojectsId, locationsId, datasetsId, 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
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 datasetsId = '{{ datasetsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND feedbackLabelsId = '{{ feedbackLabelsId }}' -- required
;

INSERT examples​

Create feedback label.

INSERT INTO google.contactcenterinsights.feedback_labels (
data__label,
data__labeledResource,
data__name,
data__qaAnswerLabel,
projectsId,
locationsId,
datasetsId,
conversationsId,
feedbackLabelId
)
SELECT
'{{ label }}',
'{{ labeledResource }}',
'{{ name }}',
'{{ qaAnswerLabel }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ datasetsId }}',
'{{ conversationsId }}',
'{{ feedbackLabelId }}'
RETURNING
name,
createTime,
label,
labeledResource,
qaAnswerLabel,
updateTime
;

UPDATE examples​

Update feedback label.

UPDATE google.contactcenterinsights.feedback_labels
SET
data__label = '{{ label }}',
data__labeledResource = '{{ labeledResource }}',
data__name = '{{ name }}',
data__qaAnswerLabel = '{{ qaAnswerLabel }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND datasetsId = '{{ datasetsId }}' --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 datasetsId = '{{ datasetsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND feedbackLabelsId = '{{ feedbackLabelsId }}' --required
;