ModifyDialogueFlow - 修改对话流程-旧画布接口(废弃)

更新时间:
复制 MD 格式

修改对话流程,旧画布接口。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

实例 id

da37319b-6c83-4268-9f19-814aed62e401

ScriptId

string

话术 id

b0f35dd1-0337-402e-9c4f-3a6c2426950a

DialogueFlowId

string

对话流 id

390515b5-6115-4ccf-83e2-52d5bfaf2ddf

DialogueFlowDefinition

string

对话流程数据

{"transitions":[{"id":"a91c4023","index":1,"source":"cc31e02b","sourceAnchor":0,"target":"946045be","targetAnchor":0}],"nodes":[{"collectedNumberEnabled":false,"content":{"branches":[{"branchId":"f5450420-09ab-11ea-b107-e9059c6a79d8","branchName":"发起对话"}]},"coordinates":{"x":180,"y":134},"id":"cc31e02b","index":0,"interruptible":false,"nodeIndex":0,"shape":"start-html","size":"170*34","type":"start","x":180,"y":134},{"collectedNumberEnabled":false,"content":{"actionParams":"","action":"Hangup"},"coordinates":{"x":487.65625,"y":155},"id":"946045be","index":2,"interruptible":false,"labels":[],"name":"功能节点","nodeIndex":1,"questions":["好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听"],"script":"好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听","shape":"function-html","size":"170*34","type":"transfer","x":500,"y":182}]}

IsDrafted

boolean

是否草稿态

true

返回参数

名称

类型

描述

示例值

object

HttpStatusCode

integer

http 状态码

200

DialogueFlowDefinition

string

对话流程数据

{"transitions":[{"id":"a91c4023","index":1,"source":"cc31e02b","sourceAnchor":0,"target":"946045be","targetAnchor":0}],"nodes":[{"collectedNumberEnabled":false,"content":{"branches":[{"branchId":"f5450420-09ab-11ea-b107-e9059c6a79d8","branchName":"发起对话"}]},"coordinates":{"x":180,"y":134},"id":"cc31e02b","index":0,"interruptible":false,"nodeIndex":0,"shape":"start-html","size":"170*34","type":"start","x":180,"y":134},{"collectedNumberEnabled":false,"content":{"actionParams":"","action":"Hangup"},"coordinates":{"x":487.65625,"y":155},"id":"946045be","index":2,"interruptible":false,"labels":[],"name":"功能节点","nodeIndex":1,"questions":["好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听"],"script":"好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听","shape":"function-html","size":"170*34","type":"transfer","x":500,"y":182}]}

RequestId

string

请求 id

254EB995-DEDF-48A4-9101-9CA5B72FFBCC

Success

boolean

是否成功

true

DialogueFlowId

string

对话流 id

390515b5-6115-4ccf-83e2-52d5bfaf2ddf

Code

string

状态码

OK

Message

string

接口提示消息

Succcess

示例

正常返回示例

JSON格式

{
  "HttpStatusCode": 200,
  "DialogueFlowDefinition": "{\"transitions\":[{\"id\":\"a91c4023\",\"index\":1,\"source\":\"cc31e02b\",\"sourceAnchor\":0,\"target\":\"946045be\",\"targetAnchor\":0}],\"nodes\":[{\"collectedNumberEnabled\":false,\"content\":{\"branches\":[{\"branchId\":\"f5450420-09ab-11ea-b107-e9059c6a79d8\",\"branchName\":\"发起对话\"}]},\"coordinates\":{\"x\":180,\"y\":134},\"id\":\"cc31e02b\",\"index\":0,\"interruptible\":false,\"nodeIndex\":0,\"shape\":\"start-html\",\"size\":\"170*34\",\"type\":\"start\",\"x\":180,\"y\":134},{\"collectedNumberEnabled\":false,\"content\":{\"actionParams\":\"\",\"action\":\"Hangup\"},\"coordinates\":{\"x\":487.65625,\"y\":155},\"id\":\"946045be\",\"index\":2,\"interruptible\":false,\"labels\":[],\"name\":\"功能节点\",\"nodeIndex\":1,\"questions\":[\"好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听\"],\"script\":\"好的同学,您的情况已了解了,稍后我们会安排资深顾问老师给您做更详细的留学评估以及升学指导,请留意电话接听\",\"shape\":\"function-html\",\"size\":\"170*34\",\"type\":\"transfer\",\"x\":500,\"y\":182}]}",
  "RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
  "Success": true,
  "DialogueFlowId": "390515b5-6115-4ccf-83e2-52d5bfaf2ddf",
  "Code": "OK",
  "Message": "Succcess"
}

错误码

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. 指定的实例不存在。
404 NotExist.Script The specified Script does not exist. 指定的话术不存在。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情