文档

ModifyDialogueFlow - 修改对话流程

更新时间:

修改对话流程。

调试

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

授权信息

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

请求参数

名称类型必填描述示例值
InstanceIdstring

实例 id

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

话术 id

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

对话流 id

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

对话流程数据

{"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}]}
IsDraftedboolean

是否草稿态

true

返回参数

名称类型描述示例值
object
HttpStatusCodeinteger

http 状态码

200
DialogueFlowDefinitionstring

对话流程数据

{"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}]}
RequestIdstring

请求 id

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

是否成功

true
DialogueFlowIdstring

对话流 id

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

状态码

OK
Messagestring

接口提示消息

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错误码错误信息描述
400InvalidDialogueFlowName.DuplicatedThe specified DialogueFlowName already exists.对话流名称已经存在。请您更换一个名字。
404NotExist.InstanceThe specified Instance does not exist.指定的实例不存在。
404NotExist.ScriptThe specified Script does not exist.指定的话术不存在。
500InternalErrorAn error occurred while processing your request. Please try again later. Submit a ticket if the error still exists.内部错误。建议重试,如果多次重试报错请提交工单。

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

变更历史

变更时间变更内容概要操作
暂无变更历史