Skip to main content

CreateQualityCheckTask

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 resources is 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.
OperationAccess levelResource typeCondition keywordRelated operation
dianjin:CreateQualityCheckTaskcreate
*All resources
*
    None
None

Request syntax

POST /{workspaceId}/api/qualitycheck/task/submit HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

Workspace ID

llm-xxxx
bodyobjectNo

The request body.

conversationListobjectYes

The conversation content. For associated quality check scenarios, multiple conversations must be passed in; otherwise, only one conversation is passed.

callTypestringNo

Call type:

Valid values:
  • 1: Inbound.
  • 2: Outbound.
1
customerIdstringNo

Customer ID

1
customerNamestringNo

Customer name

Zhang San
customerServiceIdstringNo

Customer service ID

xxx
customerServiceNamestringNo

Customer service name

Li Si
dialogueListarray<object>Yes

The list of dialogue details.

dialogueListobjectNo

The dialogue details.

beginintegerNo

The start time of this sentence, which is the offset in milliseconds from the start of the conversation.

0
beginTimestringNo

The start time of this sentence.

2024-05-23 14:57:50
contentstringYes

The specific content of the dialogue.

Hello, I am 2001, glad to serve you!
customerIdstringNo

The unique identifier of the dialogue role.

2348234
customerServiceIdstringNo

Customer service ID

23874627346
customerServiceTypestringNo

Agent type:

Valid values:
  • 0: Robot.
  • 1: Human.
0
endintegerNo

The end time of this sentence, which is the offset in milliseconds from the start of the conversation.

0
rolestringYes

Role:

Valid values:
  • 0: Customer.
  • 1: Agent.
1
typestringYes

Dialogue content type:

Valid values:
  • IMAGE: Image.
  • TEXT: Text.
  • AUDIO: Audio.
TEXT
gmtServicestringNo

Conversation time

2024-09-27 11:23:20
gmtServicestringYes

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
metaDataobjectNo

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.

stringNo

Metadata

{ "isSpecialArchive": false, "hasProcessingWorkOrder": false, "primaryArchiveType": "Others", "businessType": "Alert", "workOrderActionType":"Business escalation" }
qualityGrouparrayNo

The quality check rule group.

qualityGroupstringNo

The quality check rule.

warning_customers
requestIdstringYes

The request ID.

0FC6636E-380A-5369-AE01-D1C15BB9B254
typestringYes

Quality check type:

Valid values:
  • 0: Offline text conversation quality check.
0
sceneCodestringNo

The scenario code.

o9c8u8

Response elements

ElementTypeDescriptionExample
object

ResultCode

costlong

Time consumed

null
dataobject

Response data

taskIdstring

taskId

172373500521
dataTypestring

Data type

null
errCodestring

Error code

0
messagestring

Error message

ok
requestIdstring

Request ID

EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
successboolean

Indicates whether the request is successful.

true
timestring

Timestamp

2024-04-24 11:54:34

Examples

Success response example JSON format
{
  "cost": 0,
  "data": {
    "taskId": 172373500521
  },
  "dataType": null,
  "errCode": 0,
  "message": "ok",
  "requestId": "EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258",
  "success": true,
  "time": "2024-04-24 11:54:34"
}

Error codes

Visit the Error Center to view more error codes.

Change history

Change timeChange summaryOperation
2025-12-11Internal API configuration change, no impact on callsView details