Skip to main content

phrase_matchers

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

Overview

Namephrase_matchers
TypeResource
Idgoogle.contactcenterinsights.phrase_matchers

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
activationUpdateTimestring (google-datetime)Output only. The most recent time at which the activation status was updated.
activebooleanApplies the phrase matcher only when it is active.
displayNamestringThe human-readable name of the phrase matcher.
phraseMatchRuleGroupsarrayA list of phase match rule groups that are included in this matcher.
revisionCreateTimestring (google-datetime)Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
revisionIdstringOutput only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567
roleMatchstringThe role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.
typestringRequired. The type of this phrase matcher.
updateTimestring (google-datetime)Output only. The most recent time at which the phrase matcher was updated.
versionTagstringThe customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, phraseMatchersIdGets a phrase matcher.
listselectprojectsId, locationsIdpageSize, pageToken, filterLists phrase matchers.
createinsertprojectsId, locationsIdCreates a phrase matcher.
patchupdateprojectsId, locationsId, phraseMatchersIdupdateMaskUpdates a phrase matcher.
deletedeleteprojectsId, locationsId, phraseMatchersIdDeletes a phrase matcher.

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

SELECT examples

Gets a phrase matcher.

SELECT
name,
activationUpdateTime,
active,
displayName,
phraseMatchRuleGroups,
revisionCreateTime,
revisionId,
roleMatch,
type,
updateTime,
versionTag
FROM google.contactcenterinsights.phrase_matchers
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND phraseMatchersId = '{{ phraseMatchersId }}' -- required;

INSERT examples

Creates a phrase matcher.

INSERT INTO google.contactcenterinsights.phrase_matchers (
data__name,
data__versionTag,
data__displayName,
data__type,
data__active,
data__phraseMatchRuleGroups,
data__roleMatch,
projectsId,
locationsId
)
SELECT
'{{ name }}',
'{{ versionTag }}',
'{{ displayName }}',
'{{ type }}',
{{ active }},
'{{ phraseMatchRuleGroups }}',
'{{ roleMatch }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
activationUpdateTime,
active,
displayName,
phraseMatchRuleGroups,
revisionCreateTime,
revisionId,
roleMatch,
type,
updateTime,
versionTag
;

UPDATE examples

Updates a phrase matcher.

UPDATE google.contactcenterinsights.phrase_matchers
SET
data__name = '{{ name }}',
data__versionTag = '{{ versionTag }}',
data__displayName = '{{ displayName }}',
data__type = '{{ type }}',
data__active = {{ active }},
data__phraseMatchRuleGroups = '{{ phraseMatchRuleGroups }}',
data__roleMatch = '{{ roleMatch }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND phraseMatchersId = '{{ phraseMatchersId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
activationUpdateTime,
active,
displayName,
phraseMatchRuleGroups,
revisionCreateTime,
revisionId,
roleMatch,
type,
updateTime,
versionTag;

DELETE examples

Deletes a phrase matcher.

DELETE FROM google.contactcenterinsights.phrase_matchers
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND phraseMatchersId = '{{ phraseMatchersId }}' --required;