CreateDialogAnalysisTask

Updated at:

Creates a session analysis task. After the task is created, use the session ID with GetDialogAnalysisResult to retrieve the results.

Operation description

Make sure that you fully understand the billing methods and pricing of Tongyi Dianjin before you use this operation.

Prerequisites

Alibaba Cloud Model Studio and Tongyi Dianjin are activated.

Obtain the workspaceId: Obtain the workspace identifier.

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:CreateDialogAnalysisTaskcreate
*All resources
*
    None
None

Request syntax

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

Request parameters

Parameter

Type

Required

Description

Example

workspaceId

string

Yes

Workspace ID

llm-xxxxx

body

object

No

The request body.

metaData

object

No

The metadata. It contains business-related properties consumed during session analysis, which the business system passes in in real time when initiating a session analysis task.

{
  "labels": "XXX",  // Tags
  "summaryConstraints": "XXX",   // Summary dimensions
  "sopInfo": "XXX"  // SOP information
}

{ "labels": "XXX", "summaryConstraints": "XXX", "sopInfo": "XXX" }

playCode

string

Yes

The session scenario code, which is associated with the session analysis configuration.

common

analysisNodes

array

No

The list of analysis nodes. The default value is empty, which indicates all nodes. You can specify one or more nodes.

analysisNode

string

No

The analysis node.

Valid values:

  • DIALOG_EXECUTION_PLAN: The execution plan.
  • DIALOG_SUMMARY: The session summary.
  • DIALOG_SOP: The session SOP.
  • DIALOG_LABEL: The session tag.

DIALOG_LABEL

requestId

string

Yes

The request ID.

0FC6636E-380A-5369-AE01-D1C15BB9B254

conversationList

array<object>

Yes

The session content. You can specify multiple sessions.

object

No

The session content.

dialogueList

array<object>

Yes

The list of dialogues.

object

No

A dialogue.

content

string

Yes

The content of the dialogue.

Hello, I am 2001, glad to serve you!

role

string

Yes

The role (0: customer; 1: agent).

1

Response elements

ElementTypeDescriptionExample
object

ResultCode<List

>

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
dataarray

Response data. It is the list of session IDs.

datastring

Session ID

1876540295480209409
requestIdstring

Request ID

EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
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": [
    1876540295480209400
  ],
  "requestId": "EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258",
  "cost": 0
}

Error codes

Visit the Error Center to view more error codes.

Change history

Change timeChange summaryOperation

No change history yet.