Method: projects.locations.autoLabelingRules.test

Tests auto labeling rules against a conversation.

HTTP request

POST https://{endpoint}/v1alpha1/{parent=projects/*/locations/*}/autoLabelingRules:test

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent project and location. Format: projects/{project}/locations/{location}

Request body

The request body contains data with the following structure:

JSON representation
{
  "conversation": {
    object (Conversation)
  },
  "autoLabelingRule": {
    object (AutoLabelingRule)
  }
}
Fields
conversation

object (Conversation)

Required. Conversation data to test rules against.

autoLabelingRule

object (AutoLabelingRule)

Required. The auto labeling rule to test.

Response body

The response message for testing auto labeling rules.

If successful, the response body contains data with the following structure:

JSON representation
{
  "labelResult": string
}
Fields
labelResult

string

The result of the test auto labeling rule.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.