Skip to main content

assessments

Creates, updates, deletes, gets or lists an assessments resource.

Overview

Nameassessments
TypeResource
Idgoogle.contactcenterinsights.assessments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment}
agentInfoobjectInformation about the agent the assessment is for. (id: GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo)
createTimestring (google-datetime)Output only. The time at which the assessment was created.
statestringOutput only. The state of the assessment.
updateTimestring (google-datetime)Output only. The time at which the assessment was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, conversationsId, assessmentsIdGet Assessment.
listselectprojectsId, locationsId, conversationsIdpageSize, pageToken, filterList Assessments.
createinsertprojectsId, locationsId, conversationsIdCreate Assessment.
deletedeleteprojectsId, locationsId, conversationsId, assessmentsIdforceDelete an Assessment.
appealexecprojectsId, locationsId, conversationsId, assessmentsIdAppeal an Assessment.
publishexecprojectsId, locationsId, conversationsId, assessmentsIdPublish an Assessment.
finalizeexecprojectsId, locationsId, conversationsId, assessmentsIdFinalize an Assessment.

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
assessmentsIdstring
conversationsIdstring
locationsIdstring
projectsIdstring
filterstring
forceboolean
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get Assessment.

SELECT
name,
agentInfo,
createTime,
state,
updateTime
FROM google.contactcenterinsights.assessments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND assessmentsId = '{{ assessmentsId }}' -- required
;

INSERT examples

Create Assessment.

INSERT INTO google.contactcenterinsights.assessments (
data__agentInfo,
data__name,
projectsId,
locationsId,
conversationsId
)
SELECT
'{{ agentInfo }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ conversationsId }}'
RETURNING
name,
agentInfo,
createTime,
state,
updateTime
;

DELETE examples

Delete an Assessment.

DELETE FROM google.contactcenterinsights.assessments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND assessmentsId = '{{ assessmentsId }}' --required
AND force = '{{ force }}'
;

Lifecycle Methods

Appeal an Assessment.

EXEC google.contactcenterinsights.assessments.appeal 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@conversationsId='{{ conversationsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required
;