GetDialogAnalysisResult

Updated at:

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.

Debug

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 resources is 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.

OperationAccess levelResource typeCondition keywordRelated operation
dianjin:GetDialogAnalysisResultnone
*All resources
*
    None
None

Request syntax

POST /{workspaceId}/api/virtualHuman/dialog/analysis HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

Workspace ID

llm-xxxx
bodyobjectNo

Request body parameters.

sessionIdsarrayNo

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.

sessionIdstringNo

Session ID.

183764873624
useUrlbooleanNo

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
startTimestringNo

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
endTimestringNo

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
ascbooleanNo

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

ElementTypeDescriptionExample
object

Response body parameters.

successboolean

Indicates whether the request is successful.

true
dataTypestring

Data type

null
timestring

Timestamp

2024-04-24 11:54:34
errCodestring

Error code

0
messagestring

Error message

ok
dataobject

Response data

dialogAnalysisRespListarray<object>

List of session analysis results

dialogAnalysisRespListobject

Session analysis result

sessionIdstring

Session ID

183764873624
gmtCreatestring

Session creation time

2024-04-24 11:54:34
statusstring

Task execution status of session analysis.

  • init means the task has not started
  • pending means the session analysis task is queued
  • running means the session analysis task is in progress
  • error means the session analysis task failed
  • success means the session analysis task completed successfully
running
ossUrlstring

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
analysisRespobject

Session analysis result

dialogLabelsarray<object>

List of session labels

dialogLabelobject

Session label

namestring

Label name

额度不足
valuestring

Label value

0
dialogSummarystring

Session summary

- 是否有资金需求:不确定,客户未明确表示有无资金需求。\n- 是否有意向:不确定,客户未明确表达意向。\n- 是否可营销:不可营销,客户对客服的多次询问未表现出兴趣,且对话中提到因不适希望减少联系。\n- 待满足需求:客户希望了解具体的预审额度信息。
dialogExecPlanstring

Session execution plan

1. 客服应再次确认客户的疑问是否已解决,特别是关于额度的具体数额。\n2. 如果客户仍有疑问,提供客服热线电话,建议客户直接拨打以获取更详细的帮助。\n3. 提醒客户检查短信中的链接,以便快速查看和操作。\n4. 记录此次通话中客户表现出的任何不适或不便,确保后续跟进时更加体贴。\n5. 发送一条包含操作指南的短信,确保客户能够轻松找到并使用服务。\n6. 结束通话前,再次感谢客户的支持,并表达希望客户早日康复的愿望。
dialogSopstring

Session SOP

产品介绍
dialogProcessAnalysisobject

Session process analysis

{ "dialogues": [ { "round": 1, "result": [ { "key": "客服", "value": "客服回应标签" }, { "key": "客户", "value": "客户回应态度标签" } ] }, { "round": 2, "result": [ { "key": "客服", "value": "客服回应标签" }, { "key": "客户", "value": "客户回应态度标签" } ] } ], "dialogProcessAnalysisStr":"第一轮对话:客服-客服回应标签,客户-客户回应态度标签 第二轮对话:客服-客服回应标签,客户-客户回应态度标签" }
dialogOpenAnalysisobject

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" }
requestIdstring

Request ID

88A006F0-B565-53BA-B38A-DBDF9D0B2935
costlong

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 timeChange summaryOperation

No change history yet.