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:

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, conversationsId, assessmentsIdpageToken, pageSizeList Notes.
createinsertprojectsId, locationsId, conversationsId, assessmentsIdCreate Note.
patchupdateprojectsId, locationsId, conversationsId, assessmentsId, notesIdupdateMaskUpdate Note.
deletedeleteprojectsId, locationsId, 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
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 conversationsId = '{{ conversationsId }}' -- required
AND assessmentsId = '{{ assessmentsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;

INSERT examples

Create Note.

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

UPDATE examples

Update Note.

UPDATE google.contactcenterinsights.notes
SET
data__content = '{{ content }}',
data__assessmentNote = '{{ assessmentNote }}',
data__conversationTurnNote = '{{ conversationTurnNote }}',
data__qaQuestionNote = '{{ qaQuestionNote }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --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 conversationsId = '{{ conversationsId }}' --required
AND assessmentsId = '{{ assessmentsId }}' --required
AND notesId = '{{ notesId }}' --required
;