Retrieves records of real-time conversations and the results of intent analysis.
Operation description
Request description
This API provides conversation records between customers and service agents, as well as the customer intent content obtained through model analysis.
Debug
You can directly run this API in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:
- Action: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is added before them.
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| dianjin:GetDialogLog | none | *All Resources * |
| None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | The workspace ID. | llm-xxxx |
| body | object | No | The request body. | |
| id | string | Yes | The id field in the response parameters of the real-time conversation API. | 175600129454077743fb03ac54955a4be72ec08f9c216 |
| sessionId | string | Yes | The session ID. | 1758010668S001w4paq82azm |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | ResultCode | ||
| success | boolean | Indicates whether the request is successful. | true |
| dataType | string | The data type. | null |
| time | string | The timestamp. | 2024-01-01 00:00:00 |
| errCode | string | The error code. | 0 |
| message | string | The error message. | ok |
| data | object | The response data. | |
| recallList | string | The recall list. | ## Example:\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:暂时没有了。谢谢。\"时,用户意图为:\"客户想要挂断电话\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:哎你好。\"时,用户意图为:\"客户询问来电目的\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:我现在财务状况很好,谢谢关心。\"时,用户意图为:\"客户拒绝贷款\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:不用了,谢谢,不要再打电话了,谢谢。\"时,用户意图为:\"投诉/退订/不要打电话/骂人\"\n- 对话内容为:\"##客服##:您好,请问有什么可以帮到您?\n ##客户##:你好。\"时,用户意图为:\"客户询问来电目的\" |
| intentionList | array<object> | The intent list. | |
| intentionList | object | The intent. | |
| intentionName | string | The intent name. | 客户明确表示拒绝营销 |
| intentionScript | string | The | 非常抱歉,给您带来了不好的体验。如您无需再接受我们的官方来电,请回复“我要退订”四个字! |
| description | string | The | 客户明确表示投诉/退订/不要打电话/骂人等拒绝营销 |
| conversationList | string | The | ##客服##:您好,请问是张三先生是吧?\n ##客户##:人工客服\n ##客服##:您好,我是2804,很高兴为您服务!\n ##客服##:您好,请问有什么可以帮到您?\n ##客户##:好的 谢谢\n |
| hitIntentionList | array<object> | The list of hit intents. | |
| hitIntentionList | object | The hit intent. | |
| intentionName | string | The intent name. | 客户要求转人工 |
| intentionScript | string | The scripted reply provided based on the customer's intent. | 很抱歉,我这里无法直接为您转接,您可以拨打我司客服热线进行咨询。 |
| description | string | The description of the customer's intent. | 客户希望与真人接触,不想和AI客服继续对话。 |
| analysisProcess | string | The analysis process. (This field has a value only when the analysis process switch is enabled during the real-time conversation.) | 客户回答的内容与提供的意图列表描述均不匹配,没有表达出对账单、还款、天气或其他服务的具体需求或问题。 |
| modelCostTime | long | The model processing time, in milliseconds. | 1382 |
| requestId | string | The request ID. | 051EEB18-049A-17FF-A5E0-14A5B127C798 |
| cost | long | The processing time. | null |
Examples
Success response
JSON format
Error codes
Visit the Error Center to view more error codes.
Change history
| Change time | Change summary | Operation |
|---|