修改對話流程
調試
您可以在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. | 指定的話術不存在。 |
訪問錯誤中心查看更多錯誤碼。