创建对话流程,旧画布接口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
outboundbot:CreateDialogueFlow |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 id |
174952ab-9825-4cc9-a5e2-de82d7fa4cdd |
| DialogueName |
string |
是 |
对话流程名字 |
主流程 |
| ScriptId |
string |
是 |
话术 id |
d0bf93dd-1a54-4f00-819e-c75502d38681 |
| DialogueFlowType |
string |
是 |
流程类型,子流程类型 SubFlow, 主流程类型 MainFlow |
MainFlow |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
http 状态码 |
200 |
| RequestId |
string |
请求 id |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| DialogueFlowId |
string |
对话流 id |
390515b5-6115-4ccf-83e2-52d5bfaf2ddf |
| Success |
boolean |
是否成功 |
true |
| Code |
string |
状态码 |
OK |
| Message |
string |
接口提示信息 |
Success |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"DialogueFlowId": "390515b5-6115-4ccf-83e2-52d5bfaf2ddf",
"Success": true,
"Code": "OK",
"Message": "Success"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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. | 指定的实例不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。