GetQualityCheckScheme

Updated at:

This operation implements the query feature in quality check plan management on the frontend. The Apsara Stack URL is ip:port/api/qcs/GetQualityCheckScheme.json.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sca:GetQualityCheckScheme

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

jsonStr

string

No

The request parameters in JSON format. For more information, see the additional information for request parameters.

{"schemeId":"187","ruleRequireInfos":["BusinessNameInfo","RuleCategory"]}

BaseMeAgentId

integer

No

baseMeAgentId

123456

PropertyValue typeRequiredDescriptionExample
schemeIdLongYesThe quality check plan ID.187
ruleRequireInfosListNoThe required information.["BusinessNameInfo","RuleCategory"]
ruleRequireInfos.itemStringOptions: ConditionInfo (condition information), OperatorInfo (operator information), GraphFlowInfos (advanced flow information), GraphFlowInterruptRule (break rule information), BusinessNameInfo (business type information), ScoreInfo (score information), RuleCategory (rule type information), and SchemeNames (quality check plan name).

Response elements

Element

Type

Description

Example

object

PlainResult

Data

object

The QualityCheckScheme object. This is the JSON object of the quality check plan. For more information, see Description of quality check task objects.

SchemeId

integer

The quality check plan ID.

112**

Name

string

The name of the quality check plan.

示例质检方案

Description

string

The description.

售前使用

SchemeTemplateId

integer

The quality check plan template ID.

1

DataType

integer

The data type of the quality check plan. Valid values: 0 (text) and 1 (audio).

1

Type

integer

The type of the quality check plan. Valid values: 0 (system-built) and 1 (custom).

1

TemplateType

integer

The type of the quality check plan template. Valid values: 1 (system-built) and 2 (custom).

1

Status

integer

The status. Valid values: 0 (deleted), 1 (published), 2 (unpublished), and 3 (updated but not published). Default value: 2.

1

RuleIds

array

The list of associated rule IDs.

string

The rule ID.

1302493

RuleList

array

The list of rules.

RulesInfo

The JSON object of the rule. For more information, see Description of rule objects.

CreateUserName

string

The username of the creator.

zhangsan

CreateTime

string

The time when the task was created.

1616113198000

UpdateUserName

string

The username of the user who last updated the plan.

lisi

UpdateTime

string

The time when the plan was last updated.

1616113198000

Version

integer

The version number.

1616113198000

SchemeCheckTypeList

array<object>

The list of quality check dimensions.

object

A quality check dimension.

CheckType

integer

The ID of the quality check dimension type.

0

CheckName

string

The name of the quality check dimension.

服务规范性检测

SourceScore

integer

The original score.

10

Score

integer

The score of the quality check dimension.

20

Enable

integer

The status. Valid values: 0 (disabled) and 1 (enabled).

1

SchemeId

integer

The quality check plan ID.

32

InitScore

string

The total score of the quality check plan.

100

RequestId

string

The request ID.

96138D8D-8D26-4E41-BFF4-77AED1088BBD

Success

boolean

Indicates whether the request was successful. A value of true indicates success. A value of false or null indicates failure.

true

Code

string

The result code. A value of 200 indicates success. Other values indicate failure. Use this code to determine the cause of a failure.

200

Message

string

If an error occurs, this field provides details about the error. If the request is successful, the value is successful.

successful

Messages

array

The list of returned messages.

string

The returned message.

示例提示:处理完成。

HttpStatusCode

integer

The HTTP status code.

200

Examples

Success response

JSON format

{
  "Data": {
    "SchemeId": 0,
    "Name": "示例质检方案",
    "Description": "售前使用",
    "SchemeTemplateId": 1,
    "DataType": 1,
    "Type": 1,
    "TemplateType": 1,
    "Status": 1,
    "RuleIds": [
      "1302493"
    ],
    "RuleList": [
      {
        "Conditions": [
          {
            "Cid": "a",
            "Id": 1,
            "Rid": "1",
            "Check_range": {
              "RoleId": 1,
              "Role": "客服",
              "Anchor": {
                "Cid": "a",
                "Location": "BEFORE",
                "Hit_time": 1
              },
              "Range": {
                "From": 1,
                "To": 2
              },
              "Absolute": true,
              "AllSentencesSatisfy": true
            },
            "Operators": [
              {
                "Oid": "a",
                "Id": 1,
                "Type": "HIT_ANY_KEYWORDS",
                "Param": {
                  "CustomerParam": {
                    "Field": "remark1",
                    "FieldType": 1,
                    "DataType": 1,
                    "Symbol": 1,
                    "Value": "**[Deprecated]**",
                    "ActualValue": "**[Deprecated]**",
                    "ExpressionMetaDesc": {
                      "LeftFieldType": 0,
                      "LeftOperand": "**[Deprecated]**",
                      "Operator": "**[Deprecated]**",
                      "RightFieldType": 0,
                      "RightOperand": "**[Deprecated]**",
                      "RoundingMode": "**[Deprecated]**"
                    }
                  },
                  "Keywords": [
                    "Hello"
                  ],
                  "Regex": "Question.*",
                  "NotRegex": "Excellent.*",
                  "Phrase": "Hello, may I ask",
                  "References": [
                    "Hello.{0,10}"
                  ],
                  "Interval": 1,
                  "IntervalEnd": 2,
                  "Threshold": 90,
                  "In_sentence": true,
                  "Target": 1,
                  "From_end": true,
                  "Different_role": true,
                  "Target_role": "Agent",
                  "RoleId": 1,
                  "Velocity": 111,
                  "VelocityInMint": 1,
                  "KeywordExtension": 1,
                  "Synonyms": {
                    "key": [
                      "Deprecated field"
                    ]
                  },
                  "Case_sensitive": true,
                  "Near_dialogue": true,
                  "MinWordSize": 1,
                  "Hit_time": 2,
                  "Excludes": [
                    "Negative"
                  ],
                  "From": 0,
                  "CheckFirstSentence": true,
                  "Average": true,
                  "BeginType": "1",
                  "EndType": "2",
                  "CompareOperator": "gt",
                  "Pkey": "xx",
                  "Poutput_type": 1,
                  "SimilarlySentences": [
                    "I want to purchase"
                  ],
                  "LgfSentences": [
                    "Hello {1}"
                  ],
                  "Score": 70,
                  "ContextChatMatch": true,
                  "KeywordMatchSize": 1,
                  "MaxEmotionChangeValue": 3,
                  "CheckType": 1,
                  "KnowledgeTargetId": "1",
                  "CategoryPathCode": "Deprecated field",
                  "KnowledgeTargetType": 1,
                  "KnowledgeTargetName": "Order",
                  "QuestionThreshold": "90",
                  "AnswerThreshold": "90",
                  "KnowledgeSentenceNum": 1,
                  "KnowledgeInfo": "Place an order",
                  "BotId": "chatbot-cn-xxx",
                  "UseEasAlgorithm": true,
                  "Pvalues": [
                    "10"
                  ],
                  "Similarity_threshold": 90,
                  "AntModelInfo": {
                    "key": "model"
                  },
                  "DelayTime": 10,
                  "Knowledges": "Deprecated field",
                  "LlmModelCode": "TYXM_PLUS",
                  "HitCondition": "Hit condition",
                  "SceneName": "Polite language detection",
                  "Dimensions": [
                    {
                      "Dimension": "Inappropriate opening remarks",
                      "Desc": "Checks whether impolite or non-standard opening remarks are used in customer service conversations, which affects service professionalism",
                      "ExcludeCondition": "Customer service representatives must use the official standard dialect during service",
                      "IncludeCondition": "Non-standard and impolite greetings such as \"Hey\" appear at the beginning of the conversation"
                    }
                  ]
                },
                "Name": "a",
                "UserGroup": "xxx",
                "QualityCheckType": 0
              }
            ],
            "Lambda": "a",
            "Exclusion": 0,
            "Name": "示例条件",
            "UserGroup": "xxxx"
          }
        ],
        "Rules": [
          {
            "Status": 1,
            "IsDelete": 1,
            "StartTime": "1641277321000",
            "EndTime": "1641277321000",
            "Weight": "1",
            "IsOnline": 1,
            "CreateEmpid": "1",
            "CreateEmpName": "Zhang San",
            "CreateTime": "1641277321000",
            "LastUpdateTime": "1641277321000",
            "LastUpdateEmpid": "1",
            "LastUpdateEmpName": "Zhang San",
            "Comments": "Violation",
            "Deny": 1,
            "ScoreSubId": 1,
            "ScoreName": "Violation",
            "ScoreSubName": "1",
            "ScoreType": 1,
            "ScoreDeleted": true,
            "OperationMode": 1,
            "Meet": 1,
            "Effective": 1,
            "FullCycle": 1,
            "EffectiveStartTime": "OperationMode",
            "EffectiveEndTime": "OperationMode",
            "QualityCheckType": 1,
            "Level": 1,
            "GraphFlow": "{}",
            "TaskFlowType": 1,
            "CheckType": 3,
            "SchemeCheckType": {
              "CheckType": 1,
              "CheckName": "流程规则",
              "SourceScore": 1,
              "Score": 50,
              "Enable": 1,
              "SchemeId": 1,
              "SchemeScoreInfoList": [
                {
                  "Rid": 1,
                  "Name": "示例规则",
                  "TaskFlowId": 1,
                  "TaskFlowName": "示例流程",
                  "ScoreType": 1,
                  "ScoreNumType": 0,
                  "ScoreNum": 1,
                  "ScoreRuleHitType": 0
                }
              ],
              "TaskFlowScoreInfoList": [
                {
                  "TaskFlowId": 1,
                  "TaskFlowName": "示例流程",
                  "TaskFlowType": 1,
                  "SchemeScoreInfoList": [
                    {
                      "Rid": 1,
                      "Name": "示例规则",
                      "TaskFlowId": 1,
                      "TaskFlowName": "示例流程",
                      "ScoreType": 1,
                      "ScoreNumType": 0,
                      "ScoreNum": 11,
                      "ScoreRuleHitType": 0
                    }
                  ]
                }
              ]
            },
            "TargetType": 10,
            "ConfigType": 1,
            "ScoreNumType": 1,
            "ScoreRuleHitType": 0,
            "SchemeId": 1,
            "SchemeRuleMappingId": 1,
            "SchemeName": "General scheme",
            "ModifyType": 1,
            "SortIndex": 1,
            "RuleType": 1,
            "Rid": "1",
            "Name": "Greeting rule",
            "TaskFlowId": 111111111,
            "Lambda": "a&&b",
            "ExternalProperty": 1,
            "Type": 2,
            "RuleCategoryName": "Positive rule",
            "AutoReview": 1,
            "RuleScoreType": 3,
            "ScoreId": 1,
            "PreqRule": {
              "Rid": "1"
            },
            "ScoreNum": 1,
            "BusinessCategoryNameList": [
              "All"
            ],
            "Dialogues": [
              {
                "Id": 1,
                "Content": [
                  {
                    "HourMinSec": "00:00:00",
                    "Role": "客户",
                    "Identity": "客户",
                    "EmotionValue": 1,
                    "SpeechRate": 100,
                    "Words": "方便",
                    "End": 1360,
                    "SilenceDuration": 100,
                    "BeginTime": 350,
                    "Begin": 360
                  }
                ],
                "Name": "示例对话",
                "UserGroup": "xx"
              }
            ],
            "Triggers": [
              "a"
            ]
          }
        ],
        "Dialogues": [
          {
            "Id": 1,
            "Content": [
              {
                "HourMinSec": "00:00:00",
                "Role": "客户",
                "Identity": "客户",
                "EmotionValue": 1,
                "SpeechRate": 100,
                "Words": "方便",
                "End": 1360,
                "SilenceDuration": 100,
                "BeginTime": 350,
                "Begin": 360
              }
            ],
            "Name": "示例对话",
            "UserGroup": "xx"
          }
        ],
        "Count": 100,
        "PageSize": 10,
        "PageNumber": 1
      }
    ],
    "CreateUserName": "zhangsan",
    "CreateTime": "1616113198000",
    "UpdateUserName": "lisi",
    "UpdateTime": "1616113198000",
    "Version": 1616113198000,
    "SchemeCheckTypeList": [
      {
        "CheckType": 0,
        "CheckName": "服务规范性检测",
        "SourceScore": 10,
        "Score": 20,
        "Enable": 1,
        "SchemeId": 32
      }
    ],
    "InitScore": "100"
  },
  "RequestId": "96138D8D-8D26-4E41-BFF4-77AED1088BBD",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "Messages": [
    "示例提示:处理完成。"
  ],
  "HttpStatusCode": 200
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.