locations
Creates, updates, deletes, gets or lists a locations resource.
Overview
| Name | locations |
| Type | Resource |
| Id | google.contactcenterinsights.locations |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
bulk_delete_feedback_labels | delete | projectsId, locationsId | Delete feedback labels in bulk using a filter. | |
query_metrics | exec | projectsId, locationsId | Query metrics. | |
test_correlation_config | exec | projectsId, locationsId | Tests correlation config on a conversation. | |
bulk_upload_feedback_labels | exec | projectsId, locationsId | Upload feedback labels from an external source in bulk. Currently supports labeling Quality AI example conversations. | |
query_performance_overview | exec | projectsId, locationsId | Generates a summary of predefined performance metrics for a set of conversations. Conversations can be specified by specifying a time window and an agent id, for now. The summary includes a comparison of metrics computed for conversations in the previous time period, and also a comparison with peers in the same time period. | |
generative_insights | exec | projectsId, locationsId | Natural language based Insights which powers the next generation of dashboards in Insights. Next generation of QueryMetrics. | |
bulk_download_feedback_labels | exec | projectsId, locationsId | Download feedback labels in bulk from an external source. Currently supports exporting Quality AI example conversations with transcripts and question bodies. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string |
DELETE examples
- bulk_delete_feedback_labels
Delete feedback labels in bulk using a filter.
DELETE FROM google.contactcenterinsights.locations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
;
Lifecycle Methods
- query_metrics
- test_correlation_config
- bulk_upload_feedback_labels
- query_performance_overview
- generative_insights
- bulk_download_feedback_labels
Query metrics.
EXEC google.contactcenterinsights.locations.query_metrics
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"dimensions": "{{ dimensions }}",
"timeGranularity": "{{ timeGranularity }}",
"filter": "{{ filter }}",
"measureMask": "{{ measureMask }}"
}'
;
Tests correlation config on a conversation.
EXEC google.contactcenterinsights.locations.test_correlation_config
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"filter": "{{ filter }}",
"conversations": "{{ conversations }}",
"correlationConfig": "{{ correlationConfig }}",
"maxSampleCount": {{ maxSampleCount }}
}'
;
Upload feedback labels from an external source in bulk. Currently supports labeling Quality AI example conversations.
EXEC google.contactcenterinsights.locations.bulk_upload_feedback_labels
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"sheetsSource": "{{ sheetsSource }}",
"gcsSource": "{{ gcsSource }}",
"validateOnly": {{ validateOnly }}
}'
;
Generates a summary of predefined performance metrics for a set of conversations. Conversations can be specified by specifying a time window and an agent id, for now. The summary includes a comparison of metrics computed for conversations in the previous time period, and also a comparison with peers in the same time period.
EXEC google.contactcenterinsights.locations.query_performance_overview
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"agentPerformanceSource": "{{ agentPerformanceSource }}",
"filter": "{{ filter }}",
"comparisonQueryInterval": "{{ comparisonQueryInterval }}",
"queryInterval": "{{ queryInterval }}"
}'
;
Natural language based Insights which powers the next generation of dashboards in Insights. Next generation of QueryMetrics.
EXEC google.contactcenterinsights.locations.generative_insights
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"filter": "{{ filter }}",
"comparisonFilter": "{{ comparisonFilter }}",
"chart": "{{ chart }}",
"revisionId": "{{ revisionId }}",
"userProvidedChartSpec": "{{ userProvidedChartSpec }}",
"sqlQuery": "{{ sqlQuery }}",
"sessionId": "{{ sessionId }}",
"sqlComparisonKey": "{{ sqlComparisonKey }}",
"naturalLanguageQuery": "{{ naturalLanguageQuery }}"
}'
;
Download feedback labels in bulk from an external source. Currently supports exporting Quality AI example conversations with transcripts and question bodies.
EXEC google.contactcenterinsights.locations.bulk_download_feedback_labels
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"gcsDestination": "{{ gcsDestination }}",
"parent": "{{ parent }}",
"maxDownloadCount": {{ maxDownloadCount }},
"feedbackLabelType": "{{ feedbackLabelType }}",
"filter": "{{ filter }}",
"templateQaScorecardId": "{{ templateQaScorecardId }}",
"sheetsDestination": "{{ sheetsDestination }}",
"conversationFilter": "{{ conversationFilter }}"
}'
;