对话任务详情
服务描述
此接口获取对话任务详情
开发须知
调用本接口前,请先获取appId
服务地址
GET https://{您的专属域名}/outbound/openapi/v1/engine/admin/flow/subflow/getListing
请求参数
参数 |
位置 |
类型 |
是否必填 |
说明 |
appId |
header |
String |
Y |
应用ID |
timestamp |
header |
String |
Y |
时间戳,毫秒 |
sign |
header |
String |
Y |
签名 |
Content-Type |
header |
String |
Y |
application/json |
mainFlowId |
body |
String |
Y |
主流程ID |
返回结果
参数 |
类型 |
说明 |
code |
String |
结果码 |
message |
String |
结果描述 |
data |
List<SubflowDTO> |
集合对象 |
SubflowDTO
参数 |
类型 |
说明 |
robotId |
String |
机器人ID |
mainFlowId |
String |
所属主流程ID |
flowId |
String |
子流程ID |
flowName |
String |
子流程名称 |
releaseDraftFlowId |
String |
排序编号 |
sortNumber |
Integer |
发布时使用的草稿流程ID |
triggerSubflow |
Boolean |
是否为触发子流程 |
initialized |
Boolean |
标识子流程是否已初始化 |
canvasInfo |
String |
画布信息 |
nodes |
Map |
节点字典:key - nodeId,value - 节点 |
valid |
Boolean |
子流程是否有效 |
nodeInvalidReasons |
Map> |
子流程无效原因:key - nodeId,value - 无效原因列表 |
exportDialogRuntimeNodes |
List |
子流程所有的执行节点数据 - 导入导出 |
hiddenStartNode |
Boolean |
是否需要隐藏开始节点(默认为false) |
返回结果示例:
{
"code": "10000",
"message": "",
"data": [
{
"tenantId": "msxf156724068167373297329",
"mainFlowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"flowName": "触发配置",
"sortNumber": 1,
"triggerSubflow": true,
"initialized": true,
"canvasInfo": "{\"Dwj520DwjO5_START\":{\"id\":\"Dwj520DwjO5_START\",\"x\":4062,\"y\":4083,\"title\":\"开始节点\",\"name\":\"开始节点\",\"type\":\"start\",\"noDeleteItem\":true,\"list\":[{\"id\":\"XHF520DwjO34_INI—POST\",\"name\":\"默认\",\"enabled\":true,\"branchType\":\"START_NODE_DEFAULT\",\"editFlag\":true}],\"nodeRole\":\"HEAD\",\"nodeType\":\"START_NODE\",\"htmlTemplate\":\"\",\"titleHtml\":\"\",\"outputs\":{\"Dwj520DwjO5_START-XHF520DwjO34_INI—POST\":{\"itemId\":\"qxbUO938kKxd-16236374\",\"boxId\":\"Dwj520DwjO5_START-XHF520DwjO34_INI—POST\"}}},\"qxYKopIMaVnV-16235066\":{\"type\":\"goTo\",\"title\":\"跳转节点\",\"name\":\"跳转节点\",\"nodeType\":\"GOTO_NODE\",\"nodeRole\":\"UNKNOWN\",\"desc\":\"<p>不好意思,打扰您了,我们会进行核实,再见!</p>\",\"htmlWidget\":\"<div class=\\\"ui-tips\\\">跳转节点:回复使用者后执行跳转或操作命令<div class=\\\"ui-arrow\\\"></div></div>\",\"htmlTemplate\":\"<div class=\\\"operation-wrap\\\"><span>下一步:</span><p class=\\\"operation\\\">退出场景</p></div>\",\"id\":\"qxYKopIMaVnV-16235066\",\"x\":3929,\"y\":4507,\"titleHtml\":\"<div class=\\\"tagTips user-tags\\\" data-text=\\\"新办理号码\\\"></div>\",\"inputs\":{\"qxbUO938kKxd-16236374-gaDeAN1LwQGnaUcoLs\":{\"itemId\":\"qxbUO938kKxd-16236374\",\"boxId\":\"qxbUO938kKxd-16236374-gaDeAN1LwQGnaUcoLs\"},\"qxbUO938kKxd-16236374-diJmByfitgTLfNMFsB\":{\"itemId\":\"qxbUO938kKxd-16236374\",\"boxId\":\"qxbUO938kKxd-16236374-diJmByfitgTLfNMFsB\"},\"qxbUO938kKxd-16236374-cZRgxUKyj9JTKWvQAS\":{\"itemId\":\"qxbUO938kKxd-16236374\",\"boxId\":\"qxbUO938kKxd-16236374-cZRgxUKyj9JTKWvQAS\"}},\"tags\":{\"id\":7437,\"name\":\"新办理号码\",\"tagId\":\"27759aff5c7d474a876751510289186a\",\"refCount\":0}},\"qxIux6nherHI-16235066\":{\"type\":\"goTo\",\"title\":\"跳转节点\",\"name\":\"跳转节点\",\"nodeType\":\"GOTO_NODE\",\"nodeRole\":\"UNKNOWN\",\"desc\":\"<p>不好意思,打扰您了,我们会进行核实,再见!</p>\",\"htmlWidget\":\"<div class=\\\"ui-tips\\\">跳转节点:回复使用者后执行跳转或操作命令<div class=\\\"ui-arrow\\\"></div></div>\",\"htmlTemplate\":\"<div class=\\\"operation-wrap\\\"><span>下一步:</span><p class=\\\"operation\\\">退出场景</p></div>\",\"id\":\"qxIux6nherHI-16235066\",\"x\":4302,\"y\":4496,\"inputs\":{\"qxbUO938kKxd-16236374-x2DeoJmsGLg6KRsNX6\":{\"itemId\":\"qxbUO938kKxd-16236374\",\"boxId\":\"qxbUO938kKxd-16236374-x2DeoJmsGLg6KRsNX6\"}},\"titleHtml\":\"<div class=\\\"tagTips user-tags\\\" data-text=\\\"非新办理号码\\\"></div>\",\"tags\":{\"id\":7438,\"name\":\"非新办理号码\",\"tagId\":\"6107a41fffae47269ae59dc7edf9fd19\",\"refCount\":0}},\"qxbUO938kKxd-16236374\":{\"type\":\"dialog\",\"name\":\"对话节点\",\"title\":\"对话节点\",\"nodeType\":\"DIALOG_NODE\",\"nodeRole\":\"UNKNOWN\",\"desc\":\"\",\"htmlWidget\":\"<div class=\\\"ui-tips\\\">对话节点:与使用者进行交互对话<div class=\\\"ui-arrow\\\"></div></div>\",\"list\":[{\"id\":\"gaDeAN1LwQGnaUcoLs\",\"name\":\"肯定\",\"enabled\":true,\"branchType\":\"CONDITION\",\"editFlag\":true},{\"id\":\"x2DeoJmsGLg6KRsNX6\",\"name\":\"否定/拒绝\",\"enabled\":true,\"branchType\":\"CONDITION\",\"editFlag\":true},{\"id\":\"diJmByfitgTLfNMFsB\",\"name\":\"恢复词\",\"enabled\":true,\"branchType\":\"CONDITION\",\"editFlag\":true},{\"id\":\"cZRgxUKyj9JTKWvQAS\",\"name\":\"嗯啊哦额/模糊回答\",\"enabled\":true,\"branchType\":\"CONDITION\",\"editFlag\":true},{\"id\":\"COLLECTION983yy301\",\"name\":\"采集成功\",\"enabled\":false,\"branchType\":\"INFO_COLLECTION\",\"editFlag\":true},{\"id\":\"UNKNOWN4331x22\",\"name\":\"未知\",\"enabled\":false,\"branchType\":\"DIALOG_NODE_UNKNOWN\",\"editFlag\":true},{\"id\":\"NOTJUDGED43x1x88\",\"name\":\"不判断\",\"enabled\":false,\"branchType\":\"DIALOG_NODE_NOT_JUDGED\",\"editFlag\":true}],\"id\":\"qxbUO938kKxd-16236374\",\"x\":4102,\"y\":4251,\"inputs\":{\"Dwj520DwjO5_START-XHF520DwjO34_INI—POST\":{\"itemId\":\"Dwj520DwjO5_START\",\"boxId\":\"Dwj520DwjO5_START-XHF520DwjO34_INI—POST\"}},\"htmlTemplate\":\"<p>我们这里登记该号码是由#客户姓名##性别#使用,请问您的号码是否是新办理的呢?</p>\",\"titleHtml\":\"<div class=\\\"tagTips user-tags\\\" data-text=\\\"否定身份\\\"></div>\",\"outputs\":{\"qxbUO938kKxd-16236374-gaDeAN1LwQGnaUcoLs\":{\"itemId\":\"qxYKopIMaVnV-16235066\",\"boxId\":\"qxbUO938kKxd-16236374-gaDeAN1LwQGnaUcoLs\"},\"qxbUO938kKxd-16236374-diJmByfitgTLfNMFsB\":{\"itemId\":\"qxYKopIMaVnV-16235066\",\"boxId\":\"qxbUO938kKxd-16236374-diJmByfitgTLfNMFsB\"},\"qxbUO938kKxd-16236374-cZRgxUKyj9JTKWvQAS\":{\"itemId\":\"qxYKopIMaVnV-16235066\",\"boxId\":\"qxbUO938kKxd-16236374-cZRgxUKyj9JTKWvQAS\"},\"qxbUO938kKxd-16236374-x2DeoJmsGLg6KRsNX6\":{\"itemId\":\"qxIux6nherHI-16235066\",\"boxId\":\"qxbUO938kKxd-16236374-x2DeoJmsGLg6KRsNX6\"}},\"tags\":{\"id\":7416,\"name\":\"否定身份\",\"tagId\":\"7b24eedace3c440d8b0f226c06c4e392\",\"refCount\":0}}}",
"nodes": {
"qxIux6nherHI-16235066": {
"base": {
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxIux6nherHI-16235066",
"nodeName": "跳转节点",
"nodeUniqueId": "3818323335452664d3c96997f1d6758f25864f813df9e9f716f5f3734c1ac317",
"nodeType": "GOTO_NODE",
"nodeRole": "TAIL"
},
"goTo": {
"replyConfig": {
"standardReply": "",
"standardReplies": [
"<p>不好意思,打扰您了,我们会进行核实,再见!</p>"
]
},
"infoCollectionConfig": {
"infoCollectionType": "DIRECT_ASSIGNMENT",
"targetVariantId": "",
"syncToCustomerAttribute": false,
"syncToCustomerAttributeId": "",
"directAssignmentValue": "",
"allowInfoCollection": false
},
"gotoOp": {
"opType": "STOP",
"audioStopOpToHangUp": true,
"fixedSubflowName": "",
"fixedMainFlowName": "",
"transferRobotSceneScopes": [
"AUDIO"
],
"transferToAudioPriority": 1,
"transferToIMWay": "RECOMMEND_BUTTON",
"gotoExternalUrl": ""
},
"extensionConfig": {
"intentTag": {
"tagId": "6107a41fffae47269ae59dc7edf9fd19",
"name": "非新办理号码"
}
}
}
},
"qxbUO938kKxd-16236374": {
"base": {
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"nodeName": "对话节点",
"nodeUniqueId": "7977b726ee96b4f2eb1c629226a83e0c75dd15207483d6607228c5e23c03df54",
"nodeType": "DIALOG_NODE",
"nodeRole": "COMMON"
},
"dialog": {
"branches": [
{
"base": {
"enabled": true,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "gaDeAN1LwQGnaUcoLs",
"branchName": "肯定",
"branchType": "CONDITION",
"targetNodeId": "qxYKopIMaVnV-16235066",
"sortNumber": 4
},
"condition": {
"hasCondition": true,
"conditionGroups": [
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5335"
}
]
]
}
},
{
"base": {
"enabled": true,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "x2DeoJmsGLg6KRsNX6",
"branchName": "否定/拒绝",
"branchType": "CONDITION",
"targetNodeId": "qxIux6nherHI-16235066",
"sortNumber": 5
},
"condition": {
"hasCondition": true,
"conditionGroups": [
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5324"
}
],
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5330"
}
]
]
}
},
{
"base": {
"enabled": true,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "diJmByfitgTLfNMFsB",
"branchName": "恢复词",
"branchType": "CONDITION",
"targetNodeId": "qxYKopIMaVnV-16235066",
"sortNumber": 6
},
"condition": {
"hasCondition": true,
"conditionGroups": [
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5328"
}
]
]
}
},
{
"base": {
"enabled": true,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "cZRgxUKyj9JTKWvQAS",
"branchName": "嗯啊哦额/模糊回答",
"branchType": "CONDITION",
"targetNodeId": "qxYKopIMaVnV-16235066",
"sortNumber": 7
},
"condition": {
"hasCondition": true,
"conditionGroups": [
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5325"
}
]
]
}
},
{
"base": {
"enabled": false,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "COLLECTION983yy301",
"branchName": "采集成功",
"branchType": "INFO_COLLECTION",
"sortNumber": 1
},
"condition": {
"hasCondition": false,
"conditionGroups": [
[
{
}
]
]
},
"infoCollection": {
"infoCollectionResultType": "COLLECTION_SUCCESS"
},
"keyNavigation": {
"navigationKey": "*"
}
},
{
"base": {
"enabled": false,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "UNKNOWN4331x22",
"branchName": "未知",
"branchType": "DIALOG_NODE_UNKNOWN",
"sortNumber": 2
},
"condition": {
"hasCondition": false,
"conditionGroups": [
[
{
}
]
]
},
"infoCollection": {
"infoCollectionResultType": "COLLECTION_FAILURE"
},
"keyNavigation": {
"navigationKey": "*"
}
},
{
"base": {
"enabled": false,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxbUO938kKxd-16236374",
"branchId": "NOTJUDGED43x1x88",
"branchName": "不判断",
"branchType": "DIALOG_NODE_NOT_JUDGED",
"sortNumber": 3
},
"condition": {
"hasCondition": false,
"conditionGroups": [
[
{
}
]
]
},
"infoCollection": {
"infoCollectionResultType": "COLLECTION_FAILURE"
},
"keyNavigation": {
"navigationKey": "*"
}
}
],
"replyConfig": {
"standardReply": "<p>我们这里登记该号码是由#客户姓名##性别#使用,请问您的号码是否是新办理的呢?</p>",
"repeatReplies": [
"<p>请问您的号码是否是新办理的呢?</p>"
],
"resumeReply": "<p>请问您的号码是否是新办理的呢?</p>"
},
"infoCollectionConfig": {
"infoCollectionType": "INFO_EXTRACT",
"targetVariantId": "",
"syncToCustomerAttribute": false,
"syncToCustomerAttributeId": "",
"customExtractExpression": "",
"singleEntityCollectCode": "",
"singleEntityCollectName": "",
"directAssignmentValue": "",
"allowInfoCollection": false
},
"audioConfig": {
"notAllowInterrupt": false,
"allowKeyboardInput": false,
"allowCustomSilentDetectionTime": false,
"customSilentDetectionMilliseconds": 500
},
"gotoConfig": {
"allowGotoOtherMainFlow": true,
"gotoOtherMainFlowWay": "SUSPEND_AND_GOTO"
},
"extensionConfig": {
"allowRepeat": false,
"allowRepeatMaxCount": 2,
"intentTag": {
"tagId": "7b24eedace3c440d8b0f226c06c4e392",
"name": "否定身份"
}
}
}
},
"Dwj520DwjO5_START": {
"base": {
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "Dwj520DwjO5_START",
"nodeName": "开始节点",
"nodeUniqueId": "e479097a354fb0b3e58cb83cba62997865d63dc79957da1b99a1aceaf61a9149",
"nodeType": "START_NODE",
"nodeRole": "HEAD"
},
"start": {
"branches": [
{
"base": {
"enabled": true,
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "Dwj520DwjO5_START",
"branchId": "XHF520DwjO34_INI—POST",
"branchName": "默认",
"branchType": "START_NODE_DEFAULT",
"targetNodeId": "qxbUO938kKxd-16236374",
"sortNumber": 1
},
"condition": {
"hasCondition": true,
"conditionGroups": [
[
{
"firstLevelConditionType": "INTENT",
"conditionOp": "EXISTS",
"referencedConditionValue": "5329"
}
]
]
},
"infoCollection": {
"infoCollectionResultType": "COLLECTION_FAILURE"
},
"keyNavigation": {
"navigationKey": "*"
}
}
]
}
},
"qxYKopIMaVnV-16235066": {
"base": {
"flowId": "9d4bb8ddeb7141d38642c59a9d628af1",
"nodeId": "qxYKopIMaVnV-16235066",
"nodeName": "跳转节点",
"nodeUniqueId": "28701d037da7a856d41386cedb0e80e0a1937bfe59ce339de2c9a00b159258cb",
"nodeType": "GOTO_NODE",
"nodeRole": "TAIL"
},
"goTo": {
"replyConfig": {
"standardReply": "",
"standardReplies": [
"<p>不好意思,打扰您了,我们会进行核实,再见!</p>"
]
},
"infoCollectionConfig": {
"infoCollectionType": "DIRECT_ASSIGNMENT",
"targetVariantId": "",
"syncToCustomerAttribute": false,
"syncToCustomerAttributeId": "",
"directAssignmentValue": "",
"allowInfoCollection": false
},
"gotoOp": {
"opType": "STOP",
"audioStopOpToHangUp": true,
"fixedSubflowName": "",
"fixedMainFlowName": "",
"transferRobotSceneScopes": [
"AUDIO"
],
"transferToAudioPriority": 1,
"transferToIMWay": "RECOMMEND_BUTTON",
"gotoExternalUrl": ""
},
"extensionConfig": {
"intentTag": {
"tagId": "27759aff5c7d474a876751510289186a",
"name": "新办理号码"
}
}
}
}
},
"valid": true
}
]
}
结果码说明
结果码 |
说明 |
10000 |
请求成功 |
10001 |
鉴权失败 |
10002 |
找不到对应的公钥,请先上传公钥 |
20001 |
请求失败 |
20002 |
参数错误 |
20003 |
未查询到符合条件的记录 |