AnalyzeLabel

Updated at:

Analyzes tags.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

JsonStr

string

No

The complete JSON string. For more information, see the following details.

“”

BaseMeAgentId

integer

No

The business workspace ID.

123456

1. Top-level fields

FieldTypeRequiredDescription
agentIdLongYesThe agent ID.
ticketsListArrayYesThe list of conversations to be analyzed. Currently, only one conversation is supported.
tagIdsArrayNoThe list of matched parent tag IDs at runtime. A maximum of 50 IDs are supported. Currently, only the first ID takes effect.
callbackUrlStringNoThe callback URL after the task is completed.
modelTypeStringNoThe model type. Default value: TYXM_TURBO.

2. Fields in ticketsList[0]

FieldTypeRequiredDescription
tidStringNoThe unique identifier of the conversation.
dialogueListArrayYesThe conversation content.

3. Fields in dialogueList

FieldTypeRequiredDescription
roleStringYesThe role name, such as "Customer" or "Agent".
wordsStringYesThe utterance content.
identityStringNoThe supplementary identity information.
typeStringNoThe sentence type, such as TEXT.
beginIntegerNoThe start offset, in milliseconds.
endIntegerNoThe end offset, in milliseconds.
beginTimeStringNoThe start time.

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

106C6CA0-282D-4AF7-85F0-D2D24***

Data

string

The analysis task ID.

20260629-DCC646E7-BE7F-114E-9F32-0C928292FC7F

Code

string

The result code. A value of 200 indicates success, whereas other values indicate failure. You can determine the cause of the failure based on this field.

200

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Message

string

The error message returned if an error occurs.

successful

Examples

Success response

JSON format

{
  "RequestId": "106C6CA0-282D-4AF7-85F0-D2D24***",
  "Data": "20260629-DCC646E7-BE7F-114E-9F32-0C928292FC7F",
  "Code": "200",
  "Success": true,
  "Message": "successful"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.