GetQualityCheckScheme - 获取质检方案详情

更新时间:
复制为 MD 格式

对应前端功能位置:质检方案管理-查询。专有云URL:ip:port/api/qcs/GetQualityCheckScheme.json。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

jsonStr

string

入参 JSON,具体参考请求参数补充说明。

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

BaseMeAgentId

integer

baseMeAgentId

123456

属性值类型是否必须描述示例
schemeIdLong质检方案 ID187
ruleRequireInfosList所需信息["BusinessNameInfo","RuleCategory"]
ruleRequireInfos.itemString可选项:ConditionInfo(条件信息),OperatorInfo(算子信息)GraphFlowInfos(高级流程信息),GraphFlowInterruptRule(中断规则信息),BusinessNameInfo(业务类型信息),ScoreInfo(得分信息),RuleCategory(规则类型信息),SchemeNames(质检方案名)

返回参数

名称

类型

描述

示例值

object

PlainResult

Data

object

QualityCheckScheme 质检方案的 Json,具体参考文档《质检任务对象说明

SchemeId

integer

质检方案 ID。

112**

Name

string

质检方案名称。

xxx

Description

string

描述信息。

售前使用

SchemeTemplateId

integer

质检方案模板 ID。

1

DataType

integer

质检方案的数据类型,可能值:0 文本;1 音频。

1

Type

integer

质检方案类型,可能值:0 系统内置;1 自定义创建。

1

TemplateType

integer

质检方案模板的类型,可能值:1 系统内置;2 自定义创建。

1

Status

integer

状态:0:已删除,1:已发布,2:未发布,3:已更新未发布,默认 2

1

RuleIds

array

关联的规则 ID 列表。

string

规则 ID。

1302493

RuleList

array

规则列表

RulesInfo

规则的 JSON,具体参考文档《规则对象说明

CreateUserName

string

创建用户名

xxx

CreateTime

string

任务创建时间。

1616113198000

UpdateUserName

string

上次更新用户名

xxx

UpdateTime

string

最后更新时间。

1616113198000

Version

integer

版本号。

1616113198000

SchemeCheckTypeList

array<object>

质检维度列表

object

质检维度

CheckType

integer

质检维度类型 Id

0

CheckName

string

质检维度名称。

服务规范性检测

SourceScore

integer

原始得分。

10

Score

integer

质检维度分数。

20

Enable

integer

启用状态,可能值:0(禁用);1(启用)。

1

SchemeId

integer

质检方案 ID。

32

InitScore

string

质检方案总分

100

RequestId

string

请求 ID

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

Success

boolean

请求是否成功,调用方可根据此字段来判断请求是否成功:true 表示成功;false/null 表示失败。

true

Code

string

结果代码,200 表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。

200

Message

string

出错时表示出错详情,成功时为 successful

successful

Messages

array

返回提示信息列表

string

返回提示信息

xxx

HttpStatusCode

integer

HTTP 状态码。

200

示例

正常返回示例

JSON格式

{
  "Data": {
    "SchemeId": 0,
    "Name": "xxx",
    "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": "xxx",
                    "ActualValue": "xx",
                    "ExpressionMetaDesc": {
                      "LeftFieldType": 0,
                      "LeftOperand": "",
                      "Operator": "",
                      "RightFieldType": 0,
                      "RightOperand": "",
                      "RoundingMode": ""
                    }
                  },
                  "Keywords": [
                    "你好"
                  ],
                  "Regex": "质疑.*",
                  "NotRegex": "优秀.*",
                  "Phrase": "你好,请问",
                  "References": [
                    "你好.{0,10}"
                  ],
                  "Interval": 1,
                  "IntervalEnd": 2,
                  "Threshold": 90,
                  "In_sentence": true,
                  "Target": 1,
                  "From_end": true,
                  "Different_role": true,
                  "Target_role": "客服",
                  "RoleId": 1,
                  "Velocity": 111,
                  "VelocityInMint": 1,
                  "KeywordExtension": 1,
                  "Synonyms": {
                    "key": [
                      "售卖"
                    ]
                  },
                  "Case_sensitive": true,
                  "Near_dialogue": true,
                  "MinWordSize": 1,
                  "Hit_time": 2,
                  "Excludes": [
                    "负向"
                  ],
                  "From": 0,
                  "CheckFirstSentence": true,
                  "Average": true,
                  "BeginType": "1",
                  "EndType": "2",
                  "CompareOperator": "gt",
                  "Pkey": "xx",
                  "Poutput_type": 1,
                  "SimilarlySentences": [
                    "我要购买"
                  ],
                  "LgfSentences": [
                    "你好{1}"
                  ],
                  "Score": 70,
                  "ContextChatMatch": true,
                  "KeywordMatchSize": 1,
                  "MaxEmotionChangeValue": 3,
                  "CheckType": 1,
                  "KnowledgeTargetId": "1",
                  "CategoryPathCode": "xx",
                  "KnowledgeTargetType": 1,
                  "KnowledgeTargetName": "订单",
                  "QuestionThreshold": "90",
                  "AnswerThreshold": "90",
                  "KnowledgeSentenceNum": 1,
                  "KnowledgeInfo": "下单",
                  "BotId": "chatbot-cn-xxx",
                  "UseEasAlgorithm": true,
                  "Pvalues": [
                    ""
                  ],
                  "Similarity_threshold": 90,
                  "AntModelInfo": {
                    "key": "xxx"
                  },
                  "DelayTime": 10,
                  "Knowledges": "",
                  "LlmModelCode": "",
                  "HitCondition": "",
                  "SceneName": "",
                  "Dimensions": [
                    {
                      "Dimension": "",
                      "Desc": "",
                      "ExcludeCondition": "",
                      "IncludeCondition": ""
                    }
                  ]
                },
                "Name": "a",
                "UserGroup": "xxx",
                "QualityCheckType": 0
              }
            ],
            "Lambda": "a",
            "Exclusion": 0,
            "Name": "xx",
            "UserGroup": "xxxx"
          }
        ],
        "Rules": [
          {
            "Status": 1,
            "IsDelete": 1,
            "StartTime": "1641277321000",
            "EndTime": "1641277321000",
            "Weight": "1",
            "IsOnline": 1,
            "CreateEmpid": "1",
            "CreateEmpName": "张三",
            "CreateTime": "1641277321000",
            "LastUpdateTime": "1641277321000",
            "LastUpdateEmpid": "1",
            "LastUpdateEmpName": "张三",
            "Comments": "违规",
            "Deny": 1,
            "ScoreSubId": 1,
            "ScoreName": "违规",
            "ScoreSubName": "1",
            "ScoreNum": 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": "xx",
                  "TaskFlowId": 1,
                  "TaskFlowName": "xx",
                  "ScoreType": 1,
                  "ScoreNumType": 0,
                  "ScoreNum": 1,
                  "ScoreRuleHitType": 0
                }
              ],
              "TaskFlowScoreInfoList": [
                {
                  "TaskFlowId": 1,
                  "TaskFlowName": "xx",
                  "TaskFlowType": 1,
                  "SchemeScoreInfoList": [
                    {
                      "Rid": 1,
                      "Name": "xx",
                      "TaskFlowId": 1,
                      "TaskFlowName": "xx",
                      "ScoreType": 1,
                      "ScoreNumType": 0,
                      "ScoreNum": 11,
                      "ScoreRuleHitType": 0
                    }
                  ]
                }
              ]
            },
            "TargetType": 10,
            "ConfigType": 1,
            "ScoreNumType": 1,
            "ScoreRuleHitType": 0,
            "SchemeId": 1,
            "SchemeRuleMappingId": 1,
            "SchemeName": "通用方案",
            "ModifyType": 1,
            "SortIndex": 1,
            "RuleType": 1,
            "Rid": "1",
            "Name": "开头语规则",
            "TaskFlowId": 111111111,
            "Lambda": "a&&b",
            "ExternalProperty": 1,
            "Type": 2,
            "RuleCategoryName": "正向规则",
            "AutoReview": 1,
            "RuleScoreType": 3,
            "ScoreId": 1,
            "PreqRule": {
              "Rid": ""
            },
            "BusinessCategoryNameList": [
              "全部"
            ],
            "Dialogues": [
              {
                "Id": 1,
                "Content": [
                  {
                    "HourMinSec": "00:00:00",
                    "Role": "客户",
                    "Identity": "客户",
                    "EmotionValue": 1,
                    "SpeechRate": 100,
                    "Words": "方便",
                    "End": 1360,
                    "SilenceDuration": 100,
                    "BeginTime": 350,
                    "Begin": 360
                  }
                ],
                "Name": "xx",
                "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": "xx",
            "UserGroup": "xx"
          }
        ],
        "Count": 100,
        "PageSize": 10,
        "PageNumber": 1
      }
    ],
    "CreateUserName": "xxx",
    "CreateTime": "1616113198000",
    "UpdateUserName": "xxx",
    "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": [
    "xxx"
  ],
  "HttpStatusCode": 200
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情