AnalyzeLabel
Analyzes tags.
Try it now
Test
RAM authorization
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
| Field | Type | Required | Description |
| agentId | Long | Yes | The agent ID. |
| ticketsList | Array | Yes | The list of conversations to be analyzed. Currently, only one conversation is supported. |
| tagIds | Array | No | The list of matched parent tag IDs at runtime. A maximum of 50 IDs are supported. Currently, only the first ID takes effect. |
| callbackUrl | String | No | The callback URL after the task is completed. |
| modelType | String | No | The model type. Default value: TYXM_TURBO. |
2. Fields in ticketsList[0]
| Field | Type | Required | Description |
| tid | String | No | The unique identifier of the conversation. |
| dialogueList | Array | Yes | The conversation content. |
3. Fields in dialogueList
| Field | Type | Required | Description |
| role | String | Yes | The role name, such as "Customer" or "Agent". |
| words | String | Yes | The utterance content. |
| identity | String | No | The supplementary identity information. |
| type | String | No | The sentence type, such as TEXT. |
| begin | Integer | No | The start offset, in milliseconds. |
| end | Integer | No | The end offset, in milliseconds. |
| beginTime | String | No | The 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 |
| 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.