| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576 |
- {
- "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": "尊敬的会员您好,已成功为您预定<date|日期>的房间"
- }
- },
- {
- "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
- }
- ]
- }
- ]
- }
- }
|