Skip to main content

CreateDialog

Creates an outbound call session.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: the specific permission point.
  • Access level: the access level of each action. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the action. Details are as follows:
    • For required resource types, an asterisk (*) is added as a prefix.
    • For actions that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
ActionAccess levelResource typeCondition keyRelated action
dianjin:CreateDialogcreate
*All resources
*
    None
None

Request syntax

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

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

The workspace ID.

llm-xxxxx
bodyobjectNo

The request body.

playCodestringYes

The playbook code.

live_broadcast_qa
channelstringYes

The channel.

taobao
metaDataobjectNo

Other information.

null
qaLibraryListarrayNo

A list of Q&A library IDs.

qaLibraryListstringNo

The Q&A library ID.

d86a4b9cd3
requestIdstringYes

The request ID.

ebf83826-dc1c-46f8-9759-0fb6da4c8xxx
enableLibrarybooleanNo

Specifies whether to enable the intent library.

false
selfDirectedbooleanNo

Specifies whether to enable autonomous Q&A.

false

Response parameters

NameTypeDescriptionExample value
object

ResultCode

successboolean

Indicates whether the request was successful.

true
dataTypestring

The data type.

null
timestring

The timestamp.

2024-01-01 00:00:00
errCodestring

The error code.

0
messagestring

The error message.

ok
dataobject

The response data.

sessionIdstring

The session ID.

1728545917713234
openingRemarksstring

The opening remarks.

Hello, I am an XX customer service agent.
requestIdstring

The request ID.

003D019A-1BB3-53EC-A0D2-CE76DA5D73B1
costlong

The time consumed.

null

Examples

Success response JSON format
{
  "success": true,
  "dataType": null,
  "time": "2024-01-01 00:00:00",
  "errCode": 0,
  "message": "ok",
  "data": {
    "sessionId": 1728545917713234,
    "openingRemarks": "你好,我是XX客服人员。"
  },
  "requestId": "003D019A-1BB3-53EC-A0D2-CE76DA5D73B1",
  "cost": 0
}

Error codes

Visit the Error Center to view more error codes.

Change history

TimeChange summaryOperation
No change history yet.