{ "flowName": "测试", "flowId": "1", "flowJson": { "nodes": [ { "id": "1755743973598277318", "type": "start", "x": 340, "y": 600, "properties": { "name": "开始", "desc": "酒店预订流程开始", "frontend_status": "1" } }, { "id": "1755744073948164528", "type": "intention", "x": 340, "y": 780, "properties": { "name": "用户预定酒店", "desc": "用户发起预定酒店", "frontend_status": "1", "code": "book_hotel", "samples": [ { "text": "我想订酒店", "entities": [] }, { "text": "我想定明天的酒店", "entities": [ { "text": "明天", "label": "check_in_out", "start": 3, "end": 4 } ] }, { "text": "帮我订一间房", "entities": [] } ] } }, { "id": "1755744170948999578", "type": "action", "x": 340, "y": 960, "properties": { "name": "确定开始预定回复", "desc": "回复预定动作", "frontend_status": "1", "code": "confirm_booking", "configText": "好的,我将为您办理酒店预定,请提供一下信息:" } }, { "id": "1755744259460386308", "type": "collection", "x": 340, "y": 1140, "properties": { "name": "酒店预定表单", "desc": "酒店预定表单信息采集", "frontend_status": "1", "code": "hotel", "formFields": [ { "slotName": "", "entityType": "check_in_out", "question": "请问您的入住日期是?", "validation": "date", "customRegex": "", "required": true, "retryMessage": "请输入正确的时间格式" } ], "submitIntent": "", "cancelIntent": "", "completionMessage": "" } }, { "id": "1755744367061997285", "type": "form", "x": 340, "y": 1320, "properties": { "name": "获取会员信息", "desc": "调用接口获取会员信息", "frontend_status": "0", "anchors": [ { "id": "1755744368596992170", "text": "成功", "checked": true, "isDefault": true }, { "id": "1755744368596493642", "text": "失败", "checked": true, "isDefault": true } ], "code": "get_vipinfo", "requestMethod": "GET", "requestUrl": "http://localhost:3400", "headers": [ { "key": "token", "value": "123" } ], "params": [ { "name": "phone", "remark": "手机号", "type": "string", "entity": "event", "required": true, "placeholder": "" } ], "responseMappings": [ { "responseField": "data[0].vip", "targetVar": "is_vip", "defaultValue": "false" } ] } }, { "id": "1755744802261201276", "type": "condition", "x": 240, "y": 1540, "properties": { "name": "判断是否是会员", "desc": "", "frontend_status": "1", "code": "condition_ismember", "configText": "", "entities": [], "conditionGroups": [ { "name": "是会员", "operator": "and", "conditions": [ { "type": "slot", "slotName": "is_vip", "intentName": "", "operator": "==", "value": "true" } ] } ], "anchors": [ { "id": "1755744870669973945", "text": "A", "tooltip": "是会员", "checked": true, "isDefault": true }, { "id": "1755744870669360142", "text": "其他", "tooltip": "未匹配到规则", "checked": true, "isDefault": true } ] } }, { "id": "1755745052943625022", "type": "action", "x": 190, "y": 1740, "properties": { "name": "会员确定预定提醒", "desc": "", "frontend_status": "1", "code": "submit_comfirm_vip", "configText": "尊敬的会员您好,已成功为您预定的房间" } }, { "id": "1755745287568590291", "type": "action", "x": 560, "y": 1710, "properties": { "name": "普通用户确定预定回复", "desc": "", "frontend_status": "1", "code": "submit_confirm_novip", "configText": "好的,已经为您预定成功,感谢您的支持,祝您生活愉快!" } }, { "id": "1755745352034663098", "type": "end", "x": 400, "y": 1980, "properties": { "name": "结束", "desc": "", "frontend_status": "0" } } ], "edges": [ { "id": "1755744156551690020", "type": "myBezier", "sourceNodeId": "1755743973598277318", "targetNodeId": "1755744073948164528", "startPoint": { "x": 340, "y": 650 }, "endPoint": { "x": 340, "y": 730 }, "properties": { "edgeType": "start" }, "pointsList": [ { "x": 340, "y": 650 }, { "x": 340, "y": 750 }, { "x": 340, "y": 630 }, { "x": 340, "y": 730 } ] }, { "id": "1755744175271745566", "type": "myBezier", "sourceNodeId": "1755744073948164528", "targetNodeId": "1755744170948999578", "startPoint": { "x": 340, "y": 830 }, "endPoint": { "x": 340, "y": 910 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 340, "y": 830 }, { "x": 340, "y": 930 }, { "x": 340, "y": 810 }, { "x": 340, "y": 910 } ] }, { "id": "1755744264519257586", "type": "myBezier", "sourceNodeId": "1755744170948999578", "targetNodeId": "1755744259460386308", "startPoint": { "x": 340, "y": 1010 }, "endPoint": { "x": 340, "y": 1090 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 340, "y": 1010 }, { "x": 340, "y": 1110 }, { "x": 340, "y": 990 }, { "x": 340, "y": 1090 } ] }, { "id": "1755744373342277013", "type": "myBezier", "sourceNodeId": "1755744259460386308", "targetNodeId": "1755744367061997285", "startPoint": { "x": 340, "y": 1190 }, "endPoint": { "x": 340, "y": 1270 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 340, "y": 1190 }, { "x": 340, "y": 1290 }, { "x": 340, "y": 1170 }, { "x": 340, "y": 1270 } ] }, { "id": "1755744805233383108", "type": "myBezier", "sourceNodeId": "1755744367061997285", "targetNodeId": "1755744802261201276", "startPoint": { "x": 234, "y": 1370 }, "endPoint": { "x": 240, "y": 1490 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 234, "y": 1370 }, { "x": 234, "y": 1470 }, { "x": 240, "y": 1390 }, { "x": 240, "y": 1490 } ] }, { "id": "1755745059414490384", "type": "myBezier", "sourceNodeId": "1755744802261201276", "targetNodeId": "1755745052943625022", "startPoint": { "x": 126.5, "y": 1590 }, "endPoint": { "x": 190, "y": 1690 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 126.5, "y": 1590 }, { "x": 126.5, "y": 1690 }, { "x": 190, "y": 1590 }, { "x": 190, "y": 1690 } ] }, { "id": "1755745293386979251", "type": "myBezier", "sourceNodeId": "1755744802261201276", "targetNodeId": "1755745287568590291", "startPoint": { "x": 157, "y": 1590 }, "endPoint": { "x": 560, "y": 1660 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 157, "y": 1590 }, { "x": 157, "y": 1690 }, { "x": 560, "y": 1560 }, { "x": 560, "y": 1660 } ] }, { "id": "1755745297779860170", "type": "myBezier", "sourceNodeId": "1755744367061997285", "targetNodeId": "1755745287568590291", "startPoint": { "x": 272, "y": 1370 }, "endPoint": { "x": 560, "y": 1660 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 272, "y": 1370 }, { "x": 272, "y": 1470 }, { "x": 560, "y": 1560 }, { "x": 560, "y": 1660 } ] }, { "id": "1755745356697455012", "type": "myBezier", "sourceNodeId": "1755745052943625022", "targetNodeId": "1755745352034663098", "startPoint": { "x": 190, "y": 1790 }, "endPoint": { "x": 400, "y": 1930 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 190, "y": 1790 }, { "x": 190, "y": 1890 }, { "x": 400, "y": 1830 }, { "x": 400, "y": 1930 } ] }, { "id": "1755745359943951336", "type": "myBezier", "sourceNodeId": "1755745287568590291", "targetNodeId": "1755745352034663098", "startPoint": { "x": 560, "y": 1760 }, "endPoint": { "x": 400, "y": 1930 }, "properties": { "edgeType": "nextStep" }, "pointsList": [ { "x": 560, "y": 1760 }, { "x": 560, "y": 1860 }, { "x": 400, "y": 1830 }, { "x": 400, "y": 1930 } ] } ] } }