analyses
Creates, updates, deletes, gets or lists a analyses
resource.
Overview
Name | analyses |
Type | Resource |
Id | google.contactcenterinsights.analyses |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} |
analysisResult | object | The result of an analysis. |
annotatorSelector | object | Selector of all available annotators and phrase matchers to run. |
createTime | string | Output only. The time at which the analysis was created, which occurs when the long-running operation completes. |
requestTime | string | Output only. The time at which the analysis was requested. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | analysesId, conversationsId, locationsId, projectsId | Gets an analysis. |
list | SELECT | conversationsId, locationsId, projectsId | Lists analyses. |
create | INSERT | conversationsId, locationsId, projectsId | Creates an analysis. The long running operation is done when the analysis has completed. |
delete | DELETE | analysesId, conversationsId, locationsId, projectsId | Deletes an analysis. |
SELECT
examples
Lists analyses.
SELECT
name,
analysisResult,
annotatorSelector,
createTime,
requestTime
FROM google.contactcenterinsights.analyses
WHERE conversationsId = '{{ conversationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new analyses
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.contactcenterinsights.analyses (
conversationsId,
locationsId,
projectsId,
name,
annotatorSelector
)
SELECT
'{{ conversationsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ annotatorSelector }}'
;
- name: your_resource_model_name
props:
- name: analysisResult
value:
- name: endTime
value: string
- name: callAnalysisMetadata
value:
- name: sentiments
value:
- - name: channelTag
value: integer
- name: sentimentData
value:
- name: score
value: number
- name: magnitude
value: number
- name: silence
value:
- name: silenceDuration
value: string
- name: silencePercentage
value: number
- name: intents
value: object
- name: entities
value: object
- name: issueModelResult
value:
- name: issues
value:
- - name: score
value: number
- name: displayName
value: string
- name: issue
value: string
- name: issueModel
value: string
- name: phraseMatchers
value: object
- name: annotations
value:
- - name: silenceData
value: []
- name: entityMentionData
value:
- name: entityUniqueId
value: string
- name: type
value: string
- name: channelTag
value: integer
- name: interruptionData
value: []
- name: phraseMatchData
value:
- name: phraseMatcher
value: string
- name: displayName
value: string
- name: annotationEndBoundary
value:
- name: wordIndex
value: integer
- name: transcriptIndex
value: integer
- name: issueMatchData
value:
- name: issueAssignment
value:
- name: score
value: number
- name: displayName
value: string
- name: issue
value: string
- name: holdData
value: []
- name: intentMatchData
value:
- name: intentUniqueId
value: string
- name: name
value: string
- name: createTime
value: string
- name: requestTime
value: string
- name: annotatorSelector
value:
- name: runSummarizationAnnotator
value: boolean
- name: runSentimentAnnotator
value: boolean
- name: issueModels
value:
- string
- name: runIntentAnnotator
value: boolean
- name: runEntityAnnotator
value: boolean
- name: runPhraseMatcherAnnotator
value: boolean
- name: runInterruptionAnnotator
value: boolean
- name: runSilenceAnnotator
value: boolean
- name: runIssueModelAnnotator
value: boolean
- name: summarizationConfig
value:
- name: summarizationModel
value: string
- name: conversationProfile
value: string
- name: phraseMatchers
value:
- string
DELETE
example
Deletes the specified analyses
resource.
/*+ delete */
DELETE FROM google.contactcenterinsights.analyses
WHERE analysesId = '{{ analysesId }}'
AND conversationsId = '{{ conversationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';