查询意图列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListIntents |
系统规定参数。取值:ListIntents。 |
InstanceId | String | 是 | af81a389-91f0-4157-8d82-720edd02b66a |
实例id |
PageNumber | Integer | 是 | 1 |
页号 |
PageSize | Integer | 是 | 10 |
个数 |
ScriptId | String | 是 | b9ff4e88-65f9-4eb3-987c-11ba51f3f24d |
话术id |
Keyword | String | 否 | "" |
过滤条件,意图关键字 |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=ListIntents
&InstanceId=af81a389-91f0-4157-8d82-720edd02b66a
&PageNumber=1
&PageSize=10
&ScriptId=b9ff4e88-65f9-4eb3-987c-11ba51f3f24d
&<公共请求参数>
正常返回示例
XML
格式
<Code>OK</Code>
<HttpStatusCode>200</HttpStatusCode>
<Intents>
<CreateTime>1578469042851</CreateTime>
<IntentDescription>同意还款意图</IntentDescription>
<IntentId>a8494b35-eefb-4c8a-887b-b60d2f0fa57a</IntentId>
<Keywords>还款</Keywords>
<IntentName>同意还款</IntentName>
<ScriptId>6ef95fd5-558f-4ee8-af34-b2ede087a87c</ScriptId>
<UpdateTime>1578469042851</UpdateTime>
<Utterances>ok</Utterances>
<Utterances>好的</Utterances>
<Utterances>好吧</Utterances>
<Utterances>好嘞</Utterances>
<Utterances>可以</Utterances>
<Utterances>行啊</Utterances>
<Utterances>行吧</Utterances>
<Utterances>那行</Utterances>
<Utterances>知道了</Utterances>
<Utterances>我看一下</Utterances>
<Utterances>能的</Utterances>
<Utterances>等会吧</Utterances>
<Utterances>等一下</Utterances>
<Utterances>马上还</Utterances>
<Utterances>等一会</Utterances>
<Utterances>过两天</Utterances>
<Utterances>我会想办法处理</Utterances>
</Intents>
<RequestId/>
<Success>true</Success>
JSON
格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Intents": {
"List":[
{
"CreateTime": 1578469042851,
"IntentDescription": "同意还款意图",
"IntentId": "a8494b35-eefb-4c8a-887b-b60d2f0fa57a",
"Keywords": ["还款"],
"IntentName": "同意还款",
"ScriptId": "6ef95fd5-558f-4ee8-af34-b2ede087a87c",
"UpdateTime": 1578469042851,
"Utterances": ["ok","好的","好吧","好嘞","可以","行啊","行吧","那行","知道了","我看一下","能的","等会吧","等一下","马上还","等一会","过两天","我会想办法处理"]
}
],
"PageNumber":1,
"PageSize":10,
"TotalCount":20
},
"RequestId": "",
"Success": true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
404 | NotExist.Instance | The specified Instance does not exist. | 指定的实例不存在。 |
404 | NotExist.Script | The specified Script does not exist. | 指定的话术不存在。 |
访问错误中心查看更多错误码。