Skip to main content

GetQualityCheckTaskResult

Retrieve quality check results.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Try it now

RAM authorization

The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles permission to call this API. Details:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. Details:
    • For required resource types, an asterisk is prefixed.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: the other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
dianjin:GetQualityCheckTaskResultget
*All Resources
*
    None
None

Request syntax

GET /{workspaceId}/api/qualitycheck/task/query HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

Workspace ID

llm-xxxxx
taskIdstringYes

Task ID

17071319

Response elements

ElementTypeDescriptionExample
object

ResultCode

costlong

Time consumed

null
dataobject

Response data

conversationListobject

Original conversation content

callTypestring

Call type:

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

Customer ID

234234
customerNamestring

Customer name

Zhang San
customerServiceIdstring

Agent ID

23984763826
customerServiceNamestring

Agent name

Li Si
dialogueListarray<object>

Dialogue details list

dialogueListobject

Dialogue detail

begininteger

Start time of this utterance, an offset in ms relative to the conversation start point

0
beginTimestring

Start time of this utterance

2024-09-27 11:23:20
contentstring

Dialogue content

Hello, I am agent 2001. How may I help you!
customerIdstring

Unique identifier for the dialogue role

null
customerServiceIdstring

Agent ID

Li Si
customerServiceTypestring

Agent type

Valid values:
  • 0: Bot.
  • 1: Human.
0
endinteger

End time of this utterance, an offset in ms relative to the conversation start point

0
idinteger

Unique identifier for this utterance, assigned internally

1
rolestring

Role

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

Content type

Valid values:
  • IMAGE: Image.
  • TEXT: Text.
  • AUDIO: Voice.
TEXT
gmtServicestring

Conversation time

2024-09-27 11:23:20
gmtCreatestring

Task creation time, the time the task was submitted

2024-09-27 11:23:20
gmtEndstring

System execution end time

2024-09-27 11:23:20
gmtStartstring

System execution start time

2024-09-27 11:23:20
qualityCheckListarray<object>

Quality check result set

qualityCheckListobject

Quality check result

checkExplanationstring

Explanation of the reason for passing or failing

N/A
checkPassedstring

Whether the quality check passed

Valid values:
  • NOT_PASSED: Failed.
  • PASSED: Passed.
PASSED
checkProcessstring

Description of the quality check process

N/A
checkedstring

Whether the rule was matched

Valid values:
  • HIT: Matched.
  • NOT_HIT: Not matched.
HIT
gmtEndstring

Quality check completion time

2024-05-23 14:57:50
gmtStartstring

Quality check start time

2024-05-23 14:57:50
modestring

Internal quality check mode

Valid values:
  • 0: Large Language Model (LLM) quality check.
0
originDialoguearray<object>

Original dialogue list

originDialogueobject

Original dialogue

begininteger

Start time of this utterance, an offset in ms relative to the conversation start point

0
beginTimestring

Start time of this utterance

2024-05-23 14:57:50
contentstring

Dialogue content

Hello, I am agent 2001. How may I help you!
customerIdstring

Unique identifier for the dialogue role

xxx
customerServiceIdstring

Agent ID

23876432
customerServiceTypestring

Agent type

Valid values:
  • 0: Bot.
  • 1: Human.
0
endinteger

End time of this utterance, an offset in ms relative to the conversation start point

0
idinteger

Unique identifier for this utterance, assigned internally

1
rolestring

Role

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

Content type

Valid values:
  • IMAGE: Image.
  • TEXT: Text.
  • AUDIO: Voice.
TEXT
qualityGroupIdstring

Quality check group ID

warning_customers
ruleDescriptionstring

Quality check item description

Entering the warning customer detection process
ruleIdstring

Quality check item ID

wcm_start
bizTypestring

Rule business type

No
ruleTypestring

Rule direction. 0: negative, 1: positive.

0
subNodeColarray

Child node

subNodeColany

Quality check result for the child node, with the same structure as qualityCheckList

{ "ruleId": "wxx_regulatory_authorities", "ruleDescription": "Warning for a specific institution", "checked": "HIT", "checkProcess": "By reviewing the conversation records, the customer mainly asked about the lender information and settlement certificate, and expressed the intention to cancel the account. Throughout the conversation, the customer did not mention any specific department name, nor did they explicitly express the intention to file a complaint with any department.", "originDialogue": null, "checkPassed": "NOT_PASSED", "checkExplanation": null, "mode": "0", "gmtStart": "2024-12-02 10:38:39", "gmtEnd": "2024-12-02 10:38:43", "qualityGroupId": "warning_customers", "bizType": null, "ruleType": "0", "subNodeCol": null }
statusstring

Task status

Valid values:
  • CANCELLED: Cancelled.
  • INIT: Initializing.
  • COMPLETED: Completed.
  • PROCESSING: In progress.
  • FAIL: Failed.
INIT
taskIdstring

Task ID

1703557101831
dataTypestring

Data type

null
errCodestring

Error code

0
messagestring

Error message

ok
requestIdstring

Request ID

67C7021A-D268-553D-8C15-A087B9604028
successboolean

Whether the request succeeded

true
timestring

Timestamp

2024-01-01 00:00:00

Examples

Success response JSON format
{
  "cost": 0,
  "data": {
    "conversationList": {
      "callType": 1,
      "customerId": 234234,
      "customerName": "张三",
      "customerServiceId": 23984763826,
      "customerServiceName": "李四",
      "dialogueList": [
        {
          "begin": 0,
          "beginTime": "2024-09-27 11:23:20",
          "content": "您好,我是2001,很高兴为您服务!",
          "customerId": null,
          "customerServiceId": "李四",
          "customerServiceType": 0,
          "end": 0,
          "id": 1,
          "role": 0,
          "type": "TEXT"
        }
      ],
      "gmtService": "2024-09-27 11:23:20"
    },
    "gmtCreate": "2024-09-27 11:23:20",
    "gmtEnd": "2024-09-27 11:23:20",
    "gmtStart": "2024-09-27 11:23:20",
    "qualityCheckList": [
      {
        "checkExplanation": "暂无",
        "checkPassed": "PASSED",
        "checkProcess": "暂无",
        "checked": "HIT",
        "gmtEnd": "2024-05-23 14:57:50",
        "gmtStart": "2024-05-23 14:57:50",
        "mode": 0,
        "originDialogue": [
          {
            "begin": 0,
            "beginTime": "2024-05-23 14:57:50",
            "content": "您好,我是2001,很高兴为您服务!",
            "customerId": "xxx",
            "customerServiceId": 23876432,
            "customerServiceType": 0,
            "end": 0,
            "id": 1,
            "role": 0,
            "type": "TEXT"
          }
        ],
        "qualityGroupId": "warning_customers",
        "ruleDescription": "进入检测预警客户流程",
        "ruleId": "wcm_start",
        "bizType": "No",
        "ruleType": 0,
        "subNodeCol": [
          {
            "ruleId": "wxx_regulatory_authorities",
            "ruleDescription": "具体某机构预警",
            "checked": "HIT",
            "checkProcess": "通过审查对话记录,客户主要询问了关于贷款资方信息和结清证明的问题,并表达了想要注销账户的意愿。在整个对话过程中,客户并未提及任何具体的部门名称,也没有明确表示要向部门投诉的意图。",
            "originDialogue": null,
            "checkPassed": "NOT_PASSED",
            "checkExplanation": null,
            "mode": 0,
            "gmtStart": "2024-12-02 10:38:39",
            "gmtEnd": "2024-12-02 10:38:43",
            "qualityGroupId": "warning_customers",
            "bizType": null,
            "ruleType": 0,
            "subNodeCol": null
          }
        ]
      }
    ],
    "status": "INIT",
    "taskId": 1703557101831
  },
  "dataType": null,
  "errCode": 0,
  "message": "ok",
  "requestId": "67C7021A-D268-553D-8C15-A087B9604028",
  "success": true,
  "time": "2024-01-01 00:00:00"
}

Error codes

Visit the Error Center to view more error codes.

Release notes

Change timeChange summaryOperation
No change history yet