查看实例下的对话
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListConversationDetails |
接口名称 |
ConversationId | String | 是 | a2c26e67-5984-4935-984e-bcee52971993 |
会话id |
InstanceId | String | 是 | 82b2eaae-ce5c-45f8-8231-f15b6b27e55c |
实例id |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ConversationDetails | Array |
对话列表 |
|
Action | String | Dialogue |
动作 |
ActionParams | String | {} |
动作参数 |
ConversationId | String | af81a389-91f0-4157-8d82-720edd02b66a |
会话id |
CreateTime | Long | 1582266750353 |
创建时间 |
SequenceId | String | af81a389-91f0-4157-8d82-720edd02b66a |
本轮次会话交互的序列号 |
Speaker | String | Chatbot |
讲述人 Customer = 客户,Chatbot = 机器人 |
Utterance | String | 你好 |
用户表述 |
RequestId | String | 14C39896-AE6D-4643-9C9A-E0566B2C2DDD |
请求id |
示例
请求示例
http(s)://[Endpoint]/?Action=ListConversationDetails
&ConversationId=a2c26e67-5984-4935-984e-bcee52971993
&InstanceId=82b2eaae-ce5c-45f8-8231-f15b6b27e55c
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>14C39896-AE6D-4643-9C9A-E0566B2C2DDD</RequestId>
<ConversationDetails>
<ConversationId>abcde</ConversationId>
<Speaker>Customer</Speaker>
<Utterance>你好</Utterance>
<Action>Dialogue</Action>
<ActionParams>{}</ActionParams>
<CreateTime>2018-07-02 20:37:40</CreateTime>
<SequenceId>2</SequenceId>
</ConversationDetails>
JSON
格式
{
"RequestId": "14C39896-AE6D-4643-9C9A-E0566B2C2DDD",
"ConversationDetails": [
{
"ConversationId": "abcde",
"Speaker": "Customer",
"Utterance": "你好",
"Action": "Dialogue",
"ActionParams": "{}",
"CreateTime":"2018-07-02 20:37:40",
"SequenceId":"2"
}
]
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
404 | InvalidConversationId.NotFound | The specified ConversationId does not exist in our record. | 指定的会话ID不存在。 |
404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | 指定的实例ID不存在。 |
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。