GetDialogAnalysisResult
Retrieve session analysis results. You can retrieve results in batches by specifying a list of session IDs or a time range.
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.
RAM authorization
The following table lists the authorization information of this API, which can be used in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types supported for authorization in the operation. Details:
- For required resource types, the prefix * is added.
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition keyword: the condition keywords defined by the cloud product itself.
-
Related operation: other permissions required to successfully execute the operation. The caller must have the permissions of the related operations to succeed.
| Operation | Access level | Resource type | Condition keyword | Related operation |
|---|---|---|---|---|
| dianjin:GetDialogAnalysisResult | none | *All resources * |
| None |
Request syntax
POST /{workspaceId}/api/virtualHuman/dialog/analysis HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Workspace ID | llm-xxxx |
| body | object | No | Request body parameters. | |
| sessionIds | array | No | Session ID list. When useUrl is true, the response includes OSS URLs. You can specify up to 1000 sessions. If you specify more than 1000, only the first 1000 are processed. When useUrl is false, the response includes full analysis results. You can specify up to 10 sessions. If you specify more than 10, only the first 10 are processed. This parameter is optional. If sessionIds is empty, the API retrieves results for sessions created between startTime and endTime. If sessionIds is not empty, the API retrieves results for the specified sessions. You cannot leave both sessionIds and the time range empty. | |
| sessionId | string | No | Session ID. | 183764873624 |
| useUrl | boolean | No | Whether to return an OSS URL instead of full analysis results. If true, the response includes an OSS URL that expires in one hour. Default is true. Supports up to 1000 sessions. If you specify more than 1000, only the first 1000 are processed. If false, the response includes full analysis results. Supports up to 10 sessions. If you specify more than 10, only the first 10 are processed. | true |
| startTime | string | No | Start time in yyyy-MM-dd HH:mm:ss format. If sessionIds is not empty, you can query the session analysis results using the specified session IDs. | 2024-09-14 09:11:00 |
| endTime | string | No | End time in yyyy-MM-dd HH:mm:ss format. If sessionIds is not empty, you can query the session analysis results using the specified session IDs. | 2024-09-23 09:20:02 |
| asc | boolean | No | Whether to sort in ascending order. Default is true, which sorts by session creation time in ascending order. If false, sorts in descending order. | true |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | Response body parameters. | ||
| success | boolean | Indicates whether the request is successful. | true |
| dataType | string | Data type | null |
| time | string | Timestamp | 2024-04-24 11:54:34 |
| errCode | string | Error code | 0 |
| message | string | Error message | ok |
| data | object | Response data | |
| dialogAnalysisRespList | array<object> | List of session analysis results | |
| dialogAnalysisRespList | object | Session analysis result | |
| sessionId | string | Session ID | 183764873624 |
| gmtCreate | string | Session creation time | 2024-04-24 11:54:34 |
| status | string | Task execution status of session analysis.
| running |
| ossUrl | string | The session analysis result in the form of an ossUrl, which expires in one hour. | https://xxx.oss-cn-beijing.aliyuncs.com/dialog-analysis/2024-12-30/2/1826661605606129665 |
| analysisResp | object | Session analysis result | |
| dialogLabels | array<object> | List of session labels | |
| dialogLabel | object | Session label | |
| name | string | Label name | 额度不足 |
| value | string | Label value | 0 |
| dialogSummary | string | Session summary | - 是否有资金需求:不确定,客户未明确表示有无资金需求。\n- 是否有意向:不确定,客户未明确表达意向。\n- 是否可营销:不可营销,客户对客服的多次询问未表现出兴趣,且对话中提到因不适希望减少联系。\n- 待满足需求:客户希望了解具体的预审额度信息。 |
| dialogExecPlan | string | Session execution plan | 1. 客服应再次确认客户的疑问是否已解决,特别是关于额度的具体数额。\n2. 如果客户仍有疑问,提供客服热线电话,建议客户直接拨打以获取更详细的帮助。\n3. 提醒客户检查短信中的链接,以便快速查看和操作。\n4. 记录此次通话中客户表现出的任何不适或不便,确保后续跟进时更加体贴。\n5. 发送一条包含操作指南的短信,确保客户能够轻松找到并使用服务。\n6. 结束通话前,再次感谢客户的支持,并表达希望客户早日康复的愿望。 |
| dialogSop | string | Session SOP | 产品介绍 |
| dialogProcessAnalysis | object | Session process analysis | { "dialogues": [ { "round": 1, "result": [ { "key": "客服", "value": "客服回应标签" }, { "key": "客户", "value": "客户回应态度标签" } ] }, { "round": 2, "result": [ { "key": "客服", "value": "客服回应标签" }, { "key": "客户", "value": "客户回应态度标签" } ] } ], "dialogProcessAnalysisStr":"第一轮对话:客服-客服回应标签,客户-客户回应态度标签 第二轮对话:客服-客服回应标签,客户-客户回应态度标签" } |
| dialogOpenAnalysis | object | Session open analysis | { "dialogues": [ { "round": 1, "result": [ { "key": "对话主题", "value": "XX" }, { "key": "客户反应", "value": "XXX" }, { "key": "客户反应分析", "value": "XXX" }, { "key": "客服话术", "value": "XXX" }, { "key": "本轮客服话术修改建议", "value": "XXX" } ] }, { "round": 2, "result": [ { "key": "对话主题", "value": "XX" }, { "key": "客户反应", "value": "XXX" }, { "key": "客户反应分析", "value": "XXX" }, { "key": "客服话术", "value": "XXX" }, { "key": "本轮客服话术修改建议", "value": "XXX" } ] } ], "dialogOpenAnalysisStr":"第一轮对话:对话主题-xx##客户反应-xx##客户反应分析-xx##客服话术-xx##本轮客服话术修改建议-xx 第二轮对话:对话主题-xx##客户反应-xx##客户反应分析-xx##客服话术-xx##本轮客服话术修改建议-xx" } |
| requestId | string | Request ID | 88A006F0-B565-53BA-B38A-DBDF9D0B2935 |
| cost | long | Time consumed | null |
Examples
Success response example
JSON format
{
"success": true,
"dataType": null,
"time": "2024-04-24 11:54:34",
"errCode": 0,
"message": "ok",
"data": {
"dialogAnalysisRespList": [
{
"sessionId": 183764873624,
"gmtCreate": "2024-04-24 11:54:34\n",
"status": "running",
"ossUrl": "https://xxx.oss-cn-beijing.aliyuncs.com/dialog-analysis/2024-12-30/2/1826661605606129665",
"analysisResp": {
"dialogLabels": [
{
"name": "额度不足",
"value": 0
}
],
"dialogSummary": "- 是否有资金需求:不确定,客户未明确表示有无资金需求。\\n- 是否有意向:不确定,客户未明确表达意向。\\n- 是否可营销:不可营销,客户对客服的多次询问未表现出兴趣,且对话中提到因不适希望减少联系。\\n- 待满足需求:客户希望了解具体的预审额度信息。",
"dialogExecPlan": "1. 客服应再次确认客户的疑问是否已解决,特别是关于额度的具体数额。\\n2. 如果客户仍有疑问,提供客服热线电话,建议客户直接拨打以获取更详细的帮助。\\n3. 提醒客户检查短信中的链接,以便快速查看和操作。\\n4. 记录此次通话中客户表现出的任何不适或不便,确保后续跟进时更加体贴。\\n5. 发送一条包含操作指南的短信,确保客户能够轻松找到并使用服务。\\n6. 结束通话前,再次感谢客户的支持,并表达希望客户早日康复的愿望。",
"dialogSop": "产品介绍",
"dialogProcessAnalysis": {
"test": "test",
"test2": 1
},
"dialogOpenAnalysis": {
"test": "test",
"test2": 1
}
}
}
]
},
"requestId": "88A006F0-B565-53BA-B38A-DBDF9D0B2935",
"cost": 0
}
Error codes
Visit the Error Center to view more error codes.
Change history
| Change time | Change summary | Operation |
|---|
No change history yet.