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:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment}
agentInfoobjectInformation about an agent involved in the conversation. (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, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdGet Assessment.
listselectprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsIdpageSize, pageToken, filterList Assessments.
createinsertprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsIdCreate Assessment.
deletedeleteprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdforceDelete an Assessment.
publishexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdPublish an Assessment.
appealexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdAppeal an Assessment.
finalizeexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, 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
authorizedViewSetsIdstring
authorizedViewsIdstring
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 authorizedViewSetsId = '{{ authorizedViewSetsId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND assessmentsId = '{{ assessmentsId }}' -- required;

INSERT examples

Create Assessment.

INSERT INTO google.contactcenterinsights.assessments (
data__name,
data__agentInfo,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId
)
SELECT
'{{ name }}',
'{{ agentInfo }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewsId }}',
'{{ 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 authorizedViewSetsId = '{{ authorizedViewSetsId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND assessmentsId = '{{ assessmentsId }}' --required
AND force = '{{ force }}';

Lifecycle Methods

Publish an Assessment.

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