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. (STATE_UNSPECIFIED, DRAFT, PUBLISHED, APPEALED, FINALIZED)
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, conversationsIdfilter, pageSize, pageTokenList Assessments.
createinsertprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsIdCreate Assessment.
deletedeleteprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdforceDelete an Assessment.
appealexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdAppeal an Assessment.
finalizeexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdFinalize an Assessment.
publishexecprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdPublish 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__agentInfo,
data__name,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId
)
SELECT
'{{ agentInfo }}',
'{{ name }}',
'{{ 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​

Appeal an Assessment.

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