GetDialogDetail
Retrieve session details.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. -
API: The API that you can call to perform the action.
-
Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
-
Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
-
Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
dianjin:GetDialogDetail | get | *All Resource
| None | None |
Request syntax
GET /{workspaceId}/api/virtualHuman/dialog/detail HTTP/1.1
Path Parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | Workspace ID | llm-xxxx |
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| sessionId | string | Yes | Session ID | 1906623923815534xxx |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | ResultCode | ||
| success | boolean | Indicates whether the operation succeeded | 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 | |
| totalDialogTurns | integer | Total conversation rounds. Each round counts one exchange between AI and the customer. Multiple consecutive messages from either side count as one round. If the last message is from the AI and is not a hang-up, subtract one from the total round count. | 10 |
| validDialogTurns | integer | Valid conversation rounds. Each valid round counts one question-and-answer pair between AI and the customer. This differs from the total round count method. | 5 |
| dialogueList | array<object> | List of dialogue details | |
object | Dialogue detail | ||
| role | string | Role:
| 0 |
| customerServiceType | string | Agent type:
| 0 |
| customerServiceId | string | Agent ID | BOT |
| customerId | string | Customer ID | 123761283 |
| content | string | Dialogue content | 请问具体怎么操作呢? |
| type | string | Content type: text, audio, or image. Only text is supported. | text |
| id | integer | Unique identifier for this message. Assigned internally. May be empty. Use recordId instead. | 1742869659849 |
| recordId | string | Unique identifier for this message. Assigned internally. String type. | 19387872364736xdhcb |
| intentCode | string | Intent code | 193874634xxx |
| intentName | string | Intent name | 客户询问如何操作 |
| hangUpDialog | boolean | Indicates whether the session ended with this message | true |
| status | string | Session status | COMPLETED |
| gmtCreate | string | Session time | 2024-09-27 11:23:20 |
| requestId | string | Request ID | 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658 |
| cost | integer | Processing time in milliseconds | null |
Examples
Success response
JSON format
{
"success": true,
"dataType": "null",
"time": "2024-04-24 11:54:34",
"errCode": "0",
"message": "ok",
"data": {
"totalDialogTurns": 10,
"validDialogTurns": 5,
"dialogueList": [
{
"role": "0",
"customerServiceType": "0",
"customerServiceId": "BOT",
"customerId": "123761283",
"content": "请问具体怎么操作呢?",
"type": "text",
"id": 1742869659849,
"recordId": "19387872364736xdhcb",
"intentCode": "193874634xxx",
"intentName": "客户询问如何操作",
"hangUpDialog": true
}
],
"status": "COMPLETED",
"gmtCreate": "2024-09-27 11:23:20"
},
"requestId": "5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658",
"cost": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.