修改对话流程
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyDialogueFlow | 系统规定参数。取值:ModifyDialogueFlow。 |
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}]} | 对话流程数据 |
DialogueFlowId | String | 是 | 8a621aa1-d2e7-43f3-b54d-8830af73c468 | 对话流id |
InstanceId | String | 是 | da37319b-6c83-4268-9f19-814aed62e401 | 实例id |
IsDrafted | Boolean | 是 | true | 是否草稿态 |
ScriptId | String | 是 | b0f35dd1-0337-402e-9c4f-3a6c2426950a | 话术id |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | OK | 接口状态码 |
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}]} | 对话流程数据 |
DialogueFlowId | String | 390515b5-6115-4ccf-83e2-52d5bfaf2ddf | 对话流程id |
HttpStatusCode | Integer | 200 | http 状态码 |
Message | String | Succcess | 接口提示消息 |
RequestId | String | 254EB995-DEDF-48A4-9101-9CA5B72FFBCC | 请求id |
Success | Boolean | true | 是否成功 |
示例
请求示例
http(s)://[Endpoint]/?Action=ModifyDialogueFlow
&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}]}
&DialogueFlowId=8a621aa1-d2e7-43f3-b54d-8830af73c468
&InstanceId=da37319b-6c83-4268-9f19-814aed62e401
&ScriptId=b0f35dd1-0337-402e-9c4f-3a6c2426950a
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>254EB995-DEDF-48A4-9101-9CA5B72FFBCC</RequestId>
<Message>Succcess</Message>
<HttpStatusCode>200</HttpStatusCode>
<DialogueFlowId>390515b5-6115-4ccf-83e2-52d5bfaf2ddf</DialogueFlowId>
<Code>OK</Code>
<Success>true</Success>
<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}]}</DialogueFlowDefinition>
JSON
格式
{
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Message": "Succcess",
"HttpStatusCode": 200,
"DialogueFlowId": "390515b5-6115-4ccf-83e2-52d5bfaf2ddf",
"Code": "OK",
"Success": true,
"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}]}"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
400 | InvalidDialogueFlowName.Duplicated | The specified DialogueFlowName already exists. | 对话流名称已经存在。请您更换一个名字。 |
404 | NotExist.Instance | The specified Instance does not exist. | 指定的实例不存在。 |
404 | NotExist.Script | The specified Script does not exist. | 指定的话术不存在。 |
访问错误中心查看更多错误码。