v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1380629577.7 KB
projects

Creates a phrase matcher.

post/v1/{+parent}/phraseMatchers

Path parameters

parentstring required

Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: projects//locations/ or projects//locations/

Request body

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.

updateTimestring google-datetime

Output only. The most recent time at which the phrase matcher was updated.

roleMatch'ROLE_UNSPECIFIED' | 'HUMAN_AGENT' | 'AUTOMATED_AGENT' | 'END_USER' | 'ANY_AGENT'

The 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.

activeboolean

Applies the phrase matcher only when it is active.

revisionIdstring

Output 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

namestring

The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}

versionTagstring

The customized version tag to use for the phrase matcher. If not specified, it will default to revision_id.

type'PHRASE_MATCHER_TYPE_UNSPECIFIED' | 'ALL_OF' | 'ANY_OF'

Required. The type of this phrase matcher.

activationUpdateTimestring google-datetime

Output only. The most recent time at which the activation status was updated.

displayNamestring

The human-readable name of the phrase matcher.

Response

Successful response