Skip to main content

notes

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

Overview

Namenotes
TypeResource
Idgoogle.contactcenterinsights.notes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the note. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment}/notes/{note}
assessmentNoteobjectThe note is associated to the entire parent assessment. (id: GoogleCloudContactcenterinsightsV1NoteAssessmentNote)
contentstringThe note content.
conversationTurnNoteobjectThe note is associated with a conversation turn. (id: GoogleCloudContactcenterinsightsV1NoteConversationTurnNote)
createTimestring (google-datetime)Output only. The time at which the note was created.
noteCreatorobjectOutput only. The user that created the note. (id: GoogleCloudContactcenterinsightsV1UserInfo)
qaQuestionNoteobjectThe note is associated with a QA question in one of the conversation's scorecard results. (id: GoogleCloudContactcenterinsightsV1NoteQaQuestionNote)
updateTimestring (google-datetime)Output only. The time at which the note was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdpageSize, pageTokenList Notes.
createinsertprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsIdCreate Note.
patchupdateprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsId, notesIdupdateMaskUpdate Note.
deletedeleteprojectsId, locationsId, authorizedViewSetsId, authorizedViewsId, conversationsId, assessmentsId, notesIdDeletes a Note.

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
notesIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

List Notes.

SELECT
name,
assessmentNote,
content,
conversationTurnNote,
createTime,
noteCreator,
qaQuestionNote,
updateTime
FROM google.contactcenterinsights.notes
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';

INSERT examples

Create Note.

INSERT INTO google.contactcenterinsights.notes (
data__conversationTurnNote,
data__qaQuestionNote,
data__assessmentNote,
data__name,
data__content,
projectsId,
locationsId,
authorizedViewSetsId,
authorizedViewsId,
conversationsId,
assessmentsId
)
SELECT
'{{ conversationTurnNote }}',
'{{ qaQuestionNote }}',
'{{ assessmentNote }}',
'{{ name }}',
'{{ content }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ authorizedViewSetsId }}',
'{{ authorizedViewsId }}',
'{{ conversationsId }}',
'{{ assessmentsId }}'
RETURNING
name,
assessmentNote,
content,
conversationTurnNote,
createTime,
noteCreator,
qaQuestionNote,
updateTime
;

UPDATE examples

Update Note.

UPDATE google.contactcenterinsights.notes
SET
data__conversationTurnNote = '{{ conversationTurnNote }}',
data__qaQuestionNote = '{{ qaQuestionNote }}',
data__assessmentNote = '{{ assessmentNote }}',
data__name = '{{ name }}',
data__content = '{{ content }}'
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 notesId = '{{ notesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
assessmentNote,
content,
conversationTurnNote,
createTime,
noteCreator,
qaQuestionNote,
updateTime;

DELETE examples

Deletes a Note.

DELETE FROM google.contactcenterinsights.notes
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 notesId = '{{ notesId }}' --required;