CreateDialogueFlow
This legacy canvas API creates a dialogue flow.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:CreateDialogueFlow |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
174952ab-9825-4cc9-a5e2-de82d7fa4cdd |
| DialogueName |
string |
Yes |
The dialogue flow name. |
主流程 |
| ScriptId |
string |
Yes |
The script ID. |
d0bf93dd-1a54-4f00-819e-c75502d38681 |
| DialogueFlowType |
string |
Yes |
The type of the dialogue flow. Use |
MainFlow |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| DialogueFlowId |
string |
The dialogue flow ID. |
390515b5-6115-4ccf-83e2-52d5bfaf2ddf |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Code |
string |
The status code returned for the request. |
OK |
| Message |
string |
The message returned by the request. |
Success |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"DialogueFlowId": "390515b5-6115-4ccf-83e2-52d5bfaf2ddf",
"Success": true,
"Code": "OK",
"Message": "Success"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDialogueFlowName.Duplicated | The specified DialogueFlowName already exists. | |
| 500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | |
| 404 | NotExist.Instance | The specified Instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.