意图识别,支持意图识别(全局+分层)、态度识别、企业识别。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /{workspaceId}/api/recog/intent HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
workspaceId | string | 是 | 业务空间 id | llm-xxxx |
body | object | 否 | 请求体。 | |
analysis | boolean | 否 | 是否分析 | false |
bizType | string | 是 | 业务类型。 枚举值:
| common |
conversation | string | 是 | 对话内容。 | ##客服##:您好,请问是朱杰先生吗?这里是诚信财务的周莉。我们发现您有一项款项昨天是账单日,但您还没还款,这很可能是一个小小的疏忽。来电是提醒您尽快完成还款,避免影响您的信用记录。\n ##客户##:今天天气怎么样呢? |
globalIntentionList | array<object> | 否 | 全局意图列表,当操作类型 opType 为分层 hierarchical 时,必填。 | |
globalIntentionList | object | 否 | 全局意图 | |
description | string | 否 | 意图描述 | 正常付款3 |
intention | string | 否 | 意图名称 | 正常付款3 |
intentionCode | string | 否 | 意图 code | 1810566978021232640 |
hierarchicalIntentionList | array<object> | 否 | 分层意图列表,当操作类型 opType 为分层 hierarchical 时,必填。 | |
hierarchicalIntentionList | object | 否 | 分层意图 | |
description | string | 否 | 意图描述 | 询问股票价格 |
intention | string | 否 | 意图名称 | 询问股票价格 |
intentionCode | string | 否 | 意图 code | 1810929291010150400 |
intentionList | array<object> | 否 | 意图列表,当业务类型不为态度识别时,必填。 | |
intentionList | object | 否 | 意图 | |
description | string | 否 | 意图描述 | 客户表示忘记还款 |
intention | string | 否 | 意图名称 | 客户表示忘记还款 |
intentionCode | string | 否 | 意图 code | 1808766224000262144 |
opType | string | 否 | 操作类型。 枚举值:
| common |
recommend | boolean | 否 | 推荐意图 | false |
返回参数
示例
正常返回示例
JSON
格式
{
"cost": 0,
"data": {
"analysisProcess": "客户回答的内容与提供的意图列表描述均不匹配,没有表达出对账单、还款、天气或其他服务的具体需求或问题。",
"intentionCode": "1",
"intentionName": "其它",
"recommendIntention": "客户试图回避谈论逾期还款的话题",
"recommendScript": "朱先生,理解您可能对天气感兴趣,但更重要的是您的账户情况。请让我们专注于您未偿还的款项,这对您的信用健康至关重要。"
},
"dataType": "null",
"errCode": "0",
"message": "ok",
"requestId": "003D019A-1BB3-53EC-A0D2-CE76DA5D73B1",
"success": true,
"time": "2024-04-24 11:54:34"
}
错误码
访问错误中心查看更多错误码。