rasa人机对话脚本生成

flow.json 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. {
  2. "flowName": "测试",
  3. "flowId": "1",
  4. "flowJson": {
  5. "nodes": [
  6. {
  7. "id": "1755743973598277318",
  8. "type": "start",
  9. "x": 340,
  10. "y": 600,
  11. "properties": {
  12. "name": "开始",
  13. "desc": "酒店预订流程开始",
  14. "frontend_status": "1"
  15. }
  16. },
  17. {
  18. "id": "1755744073948164528",
  19. "type": "intention",
  20. "x": 340,
  21. "y": 780,
  22. "properties": {
  23. "name": "用户预定酒店",
  24. "desc": "用户发起预定酒店",
  25. "frontend_status": "1",
  26. "code": "book_hotel",
  27. "samples": [
  28. {
  29. "text": "我想订酒店",
  30. "entities": []
  31. },
  32. {
  33. "text": "我想定明天的酒店",
  34. "entities": [
  35. {
  36. "text": "明天",
  37. "label": "check_in_out",
  38. "start": 3,
  39. "end": 4
  40. }
  41. ]
  42. },
  43. {
  44. "text": "帮我订一间房",
  45. "entities": []
  46. }
  47. ]
  48. }
  49. },
  50. {
  51. "id": "1755744170948999578",
  52. "type": "action",
  53. "x": 340,
  54. "y": 960,
  55. "properties": {
  56. "name": "确定开始预定回复",
  57. "desc": "回复预定动作",
  58. "frontend_status": "1",
  59. "code": "confirm_booking",
  60. "configText": "好的,我将为您办理酒店预定,请提供一下信息:"
  61. }
  62. },
  63. {
  64. "id": "1755744259460386308",
  65. "type": "collection",
  66. "x": 340,
  67. "y": 1140,
  68. "properties": {
  69. "name": "酒店预定表单",
  70. "desc": "酒店预定表单信息采集",
  71. "frontend_status": "1",
  72. "code": "hotel",
  73. "formFields": [
  74. {
  75. "slotName": "",
  76. "entityType": "check_in_out",
  77. "question": "请问您的入住日期是?",
  78. "validation": "date",
  79. "customRegex": "",
  80. "required": true,
  81. "retryMessage": "请输入正确的时间格式"
  82. }
  83. ],
  84. "submitIntent": "",
  85. "cancelIntent": "",
  86. "completionMessage": ""
  87. }
  88. },
  89. {
  90. "id": "1755744367061997285",
  91. "type": "form",
  92. "x": 340,
  93. "y": 1320,
  94. "properties": {
  95. "name": "获取会员信息",
  96. "desc": "调用接口获取会员信息",
  97. "frontend_status": "0",
  98. "anchors": [
  99. {
  100. "id": "1755744368596992170",
  101. "text": "成功",
  102. "checked": true,
  103. "isDefault": true
  104. },
  105. {
  106. "id": "1755744368596493642",
  107. "text": "失败",
  108. "checked": true,
  109. "isDefault": true
  110. }
  111. ],
  112. "code": "get_vipinfo",
  113. "requestMethod": "GET",
  114. "requestUrl": "http://localhost:3400",
  115. "headers": [
  116. {
  117. "key": "token",
  118. "value": "123"
  119. }
  120. ],
  121. "params": [
  122. {
  123. "name": "phone",
  124. "remark": "手机号",
  125. "type": "string",
  126. "entity": "event",
  127. "required": true,
  128. "placeholder": ""
  129. }
  130. ],
  131. "responseMappings": [
  132. {
  133. "responseField": "data[0].vip",
  134. "targetVar": "is_vip",
  135. "defaultValue": "false"
  136. }
  137. ]
  138. }
  139. },
  140. {
  141. "id": "1755744802261201276",
  142. "type": "condition",
  143. "x": 240,
  144. "y": 1540,
  145. "properties": {
  146. "name": "判断是否是会员",
  147. "desc": "",
  148. "frontend_status": "1",
  149. "code": "condition_ismember",
  150. "configText": "",
  151. "entities": [],
  152. "conditionGroups": [
  153. {
  154. "name": "是会员",
  155. "operator": "and",
  156. "conditions": [
  157. {
  158. "type": "slot",
  159. "slotName": "is_vip",
  160. "intentName": "",
  161. "operator": "==",
  162. "value": "true"
  163. }
  164. ]
  165. }
  166. ],
  167. "anchors": [
  168. {
  169. "id": "1755744870669973945",
  170. "text": "A",
  171. "tooltip": "是会员",
  172. "checked": true,
  173. "isDefault": true
  174. },
  175. {
  176. "id": "1755744870669360142",
  177. "text": "其他",
  178. "tooltip": "未匹配到规则",
  179. "checked": true,
  180. "isDefault": true
  181. }
  182. ]
  183. }
  184. },
  185. {
  186. "id": "1755745052943625022",
  187. "type": "action",
  188. "x": 190,
  189. "y": 1740,
  190. "properties": {
  191. "name": "会员确定预定提醒",
  192. "desc": "",
  193. "frontend_status": "1",
  194. "code": "submit_comfirm_vip",
  195. "configText": "尊敬的会员您好,已成功为您预定<date|日期>的房间"
  196. }
  197. },
  198. {
  199. "id": "1755745287568590291",
  200. "type": "action",
  201. "x": 560,
  202. "y": 1710,
  203. "properties": {
  204. "name": "普通用户确定预定回复",
  205. "desc": "",
  206. "frontend_status": "1",
  207. "code": "submit_confirm_novip",
  208. "configText": "好的,已经为您预定成功,感谢您的支持,祝您生活愉快!"
  209. }
  210. },
  211. {
  212. "id": "1755745352034663098",
  213. "type": "end",
  214. "x": 400,
  215. "y": 1980,
  216. "properties": {
  217. "name": "结束",
  218. "desc": "",
  219. "frontend_status": "0"
  220. }
  221. }
  222. ],
  223. "edges": [
  224. {
  225. "id": "1755744156551690020",
  226. "type": "myBezier",
  227. "sourceNodeId": "1755743973598277318",
  228. "targetNodeId": "1755744073948164528",
  229. "startPoint": {
  230. "x": 340,
  231. "y": 650
  232. },
  233. "endPoint": {
  234. "x": 340,
  235. "y": 730
  236. },
  237. "properties": {
  238. "edgeType": "start"
  239. },
  240. "pointsList": [
  241. {
  242. "x": 340,
  243. "y": 650
  244. },
  245. {
  246. "x": 340,
  247. "y": 750
  248. },
  249. {
  250. "x": 340,
  251. "y": 630
  252. },
  253. {
  254. "x": 340,
  255. "y": 730
  256. }
  257. ]
  258. },
  259. {
  260. "id": "1755744175271745566",
  261. "type": "myBezier",
  262. "sourceNodeId": "1755744073948164528",
  263. "targetNodeId": "1755744170948999578",
  264. "startPoint": {
  265. "x": 340,
  266. "y": 830
  267. },
  268. "endPoint": {
  269. "x": 340,
  270. "y": 910
  271. },
  272. "properties": {
  273. "edgeType": "nextStep"
  274. },
  275. "pointsList": [
  276. {
  277. "x": 340,
  278. "y": 830
  279. },
  280. {
  281. "x": 340,
  282. "y": 930
  283. },
  284. {
  285. "x": 340,
  286. "y": 810
  287. },
  288. {
  289. "x": 340,
  290. "y": 910
  291. }
  292. ]
  293. },
  294. {
  295. "id": "1755744264519257586",
  296. "type": "myBezier",
  297. "sourceNodeId": "1755744170948999578",
  298. "targetNodeId": "1755744259460386308",
  299. "startPoint": {
  300. "x": 340,
  301. "y": 1010
  302. },
  303. "endPoint": {
  304. "x": 340,
  305. "y": 1090
  306. },
  307. "properties": {
  308. "edgeType": "nextStep"
  309. },
  310. "pointsList": [
  311. {
  312. "x": 340,
  313. "y": 1010
  314. },
  315. {
  316. "x": 340,
  317. "y": 1110
  318. },
  319. {
  320. "x": 340,
  321. "y": 990
  322. },
  323. {
  324. "x": 340,
  325. "y": 1090
  326. }
  327. ]
  328. },
  329. {
  330. "id": "1755744373342277013",
  331. "type": "myBezier",
  332. "sourceNodeId": "1755744259460386308",
  333. "targetNodeId": "1755744367061997285",
  334. "startPoint": {
  335. "x": 340,
  336. "y": 1190
  337. },
  338. "endPoint": {
  339. "x": 340,
  340. "y": 1270
  341. },
  342. "properties": {
  343. "edgeType": "nextStep"
  344. },
  345. "pointsList": [
  346. {
  347. "x": 340,
  348. "y": 1190
  349. },
  350. {
  351. "x": 340,
  352. "y": 1290
  353. },
  354. {
  355. "x": 340,
  356. "y": 1170
  357. },
  358. {
  359. "x": 340,
  360. "y": 1270
  361. }
  362. ]
  363. },
  364. {
  365. "id": "1755744805233383108",
  366. "type": "myBezier",
  367. "sourceNodeId": "1755744367061997285",
  368. "targetNodeId": "1755744802261201276",
  369. "startPoint": {
  370. "x": 234,
  371. "y": 1370
  372. },
  373. "endPoint": {
  374. "x": 240,
  375. "y": 1490
  376. },
  377. "properties": {
  378. "edgeType": "nextStep"
  379. },
  380. "pointsList": [
  381. {
  382. "x": 234,
  383. "y": 1370
  384. },
  385. {
  386. "x": 234,
  387. "y": 1470
  388. },
  389. {
  390. "x": 240,
  391. "y": 1390
  392. },
  393. {
  394. "x": 240,
  395. "y": 1490
  396. }
  397. ]
  398. },
  399. {
  400. "id": "1755745059414490384",
  401. "type": "myBezier",
  402. "sourceNodeId": "1755744802261201276",
  403. "targetNodeId": "1755745052943625022",
  404. "startPoint": {
  405. "x": 126.5,
  406. "y": 1590
  407. },
  408. "endPoint": {
  409. "x": 190,
  410. "y": 1690
  411. },
  412. "properties": {
  413. "edgeType": "nextStep"
  414. },
  415. "pointsList": [
  416. {
  417. "x": 126.5,
  418. "y": 1590
  419. },
  420. {
  421. "x": 126.5,
  422. "y": 1690
  423. },
  424. {
  425. "x": 190,
  426. "y": 1590
  427. },
  428. {
  429. "x": 190,
  430. "y": 1690
  431. }
  432. ]
  433. },
  434. {
  435. "id": "1755745293386979251",
  436. "type": "myBezier",
  437. "sourceNodeId": "1755744802261201276",
  438. "targetNodeId": "1755745287568590291",
  439. "startPoint": {
  440. "x": 157,
  441. "y": 1590
  442. },
  443. "endPoint": {
  444. "x": 560,
  445. "y": 1660
  446. },
  447. "properties": {
  448. "edgeType": "nextStep"
  449. },
  450. "pointsList": [
  451. {
  452. "x": 157,
  453. "y": 1590
  454. },
  455. {
  456. "x": 157,
  457. "y": 1690
  458. },
  459. {
  460. "x": 560,
  461. "y": 1560
  462. },
  463. {
  464. "x": 560,
  465. "y": 1660
  466. }
  467. ]
  468. },
  469. {
  470. "id": "1755745297779860170",
  471. "type": "myBezier",
  472. "sourceNodeId": "1755744367061997285",
  473. "targetNodeId": "1755745287568590291",
  474. "startPoint": {
  475. "x": 272,
  476. "y": 1370
  477. },
  478. "endPoint": {
  479. "x": 560,
  480. "y": 1660
  481. },
  482. "properties": {
  483. "edgeType": "nextStep"
  484. },
  485. "pointsList": [
  486. {
  487. "x": 272,
  488. "y": 1370
  489. },
  490. {
  491. "x": 272,
  492. "y": 1470
  493. },
  494. {
  495. "x": 560,
  496. "y": 1560
  497. },
  498. {
  499. "x": 560,
  500. "y": 1660
  501. }
  502. ]
  503. },
  504. {
  505. "id": "1755745356697455012",
  506. "type": "myBezier",
  507. "sourceNodeId": "1755745052943625022",
  508. "targetNodeId": "1755745352034663098",
  509. "startPoint": {
  510. "x": 190,
  511. "y": 1790
  512. },
  513. "endPoint": {
  514. "x": 400,
  515. "y": 1930
  516. },
  517. "properties": {
  518. "edgeType": "nextStep"
  519. },
  520. "pointsList": [
  521. {
  522. "x": 190,
  523. "y": 1790
  524. },
  525. {
  526. "x": 190,
  527. "y": 1890
  528. },
  529. {
  530. "x": 400,
  531. "y": 1830
  532. },
  533. {
  534. "x": 400,
  535. "y": 1930
  536. }
  537. ]
  538. },
  539. {
  540. "id": "1755745359943951336",
  541. "type": "myBezier",
  542. "sourceNodeId": "1755745287568590291",
  543. "targetNodeId": "1755745352034663098",
  544. "startPoint": {
  545. "x": 560,
  546. "y": 1760
  547. },
  548. "endPoint": {
  549. "x": 400,
  550. "y": 1930
  551. },
  552. "properties": {
  553. "edgeType": "nextStep"
  554. },
  555. "pointsList": [
  556. {
  557. "x": 560,
  558. "y": 1760
  559. },
  560. {
  561. "x": 560,
  562. "y": 1860
  563. },
  564. {
  565. "x": 400,
  566. "y": 1830
  567. },
  568. {
  569. "x": 400,
  570. "y": 1930
  571. }
  572. ]
  573. }
  574. ]
  575. }
  576. }