Creates a quality check task.
Operation description
Make sure that you fully understand the billing methods and pricing of Tongyi Dianjin before you use this operation.
Prerequisites
Alibaba Cloud Model Studio and Tongyi Dianjin are activated.
Obtain the workspaceId: Obtain the workspace identifier.
Debug
You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table lists the authorization information of this API, which can be used in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types supported for authorization in the operation. Details:
- For required resource types, the prefix * is added.
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition keyword: the condition keywords defined by the cloud product itself.
- Related operation: other permissions required to successfully execute the operation. The caller must have the permissions of the related operations to succeed.
| Operation | Access level | Resource type | Condition keyword | Related operation |
|---|---|---|---|---|
| dianjin:CreateQualityCheckTask | create | *All resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Workspace ID | llm-xxxx |
| body | object | No | The request body. | |
| conversationList | object | Yes | The conversation content. For associated quality check scenarios, multiple conversations must be passed in; otherwise, only one conversation is passed. | |
| callType | string | No | Call type: Valid values:
| 1 |
| customerId | string | No | Customer ID | 1 |
| customerName | string | No | Customer name | Zhang San |
| customerServiceId | string | No | Customer service ID | xxx |
| customerServiceName | string | No | Customer service name | Li Si |
| dialogueList | array<object> | Yes | The list of dialogue details. | |
| dialogueList | object | No | The dialogue details. | |
| begin | integer | No | The start time of this sentence, which is the offset in milliseconds from the start of the conversation. | 0 |
| beginTime | string | No | The start time of this sentence. | 2024-05-23 14:57:50 |
| content | string | Yes | The specific content of the dialogue. | Hello, I am 2001, glad to serve you! |
| customerId | string | No | The unique identifier of the dialogue role. | 2348234 |
| customerServiceId | string | No | Customer service ID | 23874627346 |
| customerServiceType | string | No | Agent type: Valid values:
| 0 |
| end | integer | No | The end time of this sentence, which is the offset in milliseconds from the start of the conversation. | 0 |
| role | string | Yes | Role: Valid values:
| 1 |
| type | string | Yes | Dialogue content type: Valid values:
| TEXT |
| gmtService | string | No | Conversation time | 2024-09-27 11:23:20 |
| gmtService | string | Yes | The business occurrence time, which is used by the system to record the submission time and make task scheduling priority decisions. | 2024-09-27 11:23:20 |
| metaData | object | No | The metadata. It contains business-related properties consumed during rule execution, which the business system passes in in real time when initiating a quality check. | |
| string | No | Metadata | { "isSpecialArchive": false, "hasProcessingWorkOrder": false, "primaryArchiveType": "Others", "businessType": "Alert", "workOrderActionType":"Business escalation" } | |
| qualityGroup | array | No | The quality check rule group. | |
| qualityGroup | string | No | The quality check rule. | warning_customers |
| requestId | string | Yes | The request ID. | 0FC6636E-380A-5369-AE01-D1C15BB9B254 |
| type | string | Yes | Quality check type: Valid values:
| 0 |
| sceneCode | string | No | The scenario code. | o9c8u8 |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | Time consumed | null |
| data | object | Response data | |
| taskId | string | taskId | 172373500521 |
| dataType | string | Data type | null |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| requestId | string | Request ID | EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258 |
| success | boolean | Indicates whether the request is successful. | true |
| time | string | Timestamp | 2024-04-24 11:54:34 |
Examples
Success response example
JSON format
Error codes
Visit the Error Center to view more error codes.
Change history
| Change time | Change summary | Operation |
|---|---|---|
| 2025-12-11 | Internal API configuration change, no impact on calls | View details |