1
+ [
2
+ {
3
+ "description" : " flow with webhook split on result" ,
4
+ "original" : {
5
+ "uuid" : " 25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0" ,
6
+ "name" : " Test Flow" ,
7
+ "spec_version" : " 14.0.0" ,
8
+ "language" : " eng" ,
9
+ "type" : " messaging" ,
10
+ "localization" : {},
11
+ "nodes" : [
12
+ {
13
+ "uuid" : " 4eab7a66-0b55-45f6-803f-129a6f49e723" ,
14
+ "actions" : [
15
+ {
16
+ "uuid" : " c766e805-da3a-46f4-97c4-7ce54b16bf71" ,
17
+ "headers" : {},
18
+ "type" : " call_webhook" ,
19
+ "url" : " http://temba.io/" ,
20
+ "method" : " GET" ,
21
+ "result_name" : " Call 2"
22
+ }
23
+ ],
24
+ "router" : {
25
+ "type" : " switch" ,
26
+ "operand" : " @results.call_2.category" ,
27
+ "cases" : [
28
+ {
29
+ "uuid" : " ff810df6-23c2-4dff-9be1-eebffae2bb9d" ,
30
+ "type" : " has_only_text" ,
31
+ "arguments" : [
32
+ " Success"
33
+ ],
34
+ "category_uuid" : " be4ad508-3afb-4c4a-80ba-86b61518411c"
35
+ }
36
+ ],
37
+ "categories" : [
38
+ {
39
+ "uuid" : " be4ad508-3afb-4c4a-80ba-86b61518411c" ,
40
+ "name" : " Success" ,
41
+ "exit_uuid" : " 24493dc0-687e-4d16-98e5-6e422624729b"
42
+ },
43
+ {
44
+ "uuid" : " 501fc0c1-28a8-45b2-84f1-b6f9ea17d551" ,
45
+ "name" : " Failure" ,
46
+ "exit_uuid" : " 09f2e979-e6d2-4d0c-b28d-88a836a41d2e"
47
+ }
48
+ ],
49
+ "default_category_uuid" : " 501fc0c1-28a8-45b2-84f1-b6f9ea17d551"
50
+ },
51
+ "exits" : [
52
+ {
53
+ "uuid" : " 24493dc0-687e-4d16-98e5-6e422624729b"
54
+ },
55
+ {
56
+ "uuid" : " 09f2e979-e6d2-4d0c-b28d-88a836a41d2e"
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ },
62
+ "migrated" : {
63
+ "uuid" : " 25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0" ,
64
+ "name" : " Test Flow" ,
65
+ "spec_version" : " 14.1.0" ,
66
+ "language" : " eng" ,
67
+ "type" : " messaging" ,
68
+ "localization" : {},
69
+ "nodes" : [
70
+ {
71
+ "uuid" : " 4eab7a66-0b55-45f6-803f-129a6f49e723" ,
72
+ "actions" : [
73
+ {
74
+ "uuid" : " c766e805-da3a-46f4-97c4-7ce54b16bf71" ,
75
+ "headers" : {},
76
+ "type" : " call_webhook" ,
77
+ "url" : " http://temba.io/" ,
78
+ "method" : " GET" ,
79
+ "result_name" : " Call 2"
80
+ }
81
+ ],
82
+ "router" : {
83
+ "type" : " switch" ,
84
+ "operand" : " @results.call_2.category" ,
85
+ "cases" : [
86
+ {
87
+ "uuid" : " ff810df6-23c2-4dff-9be1-eebffae2bb9d" ,
88
+ "type" : " has_number_between" ,
89
+ "arguments" : [
90
+ " 200" ,
91
+ " 299"
92
+ ],
93
+ "category_uuid" : " be4ad508-3afb-4c4a-80ba-86b61518411c"
94
+ }
95
+ ],
96
+ "categories" : [
97
+ {
98
+ "uuid" : " be4ad508-3afb-4c4a-80ba-86b61518411c" ,
99
+ "name" : " Success" ,
100
+ "exit_uuid" : " 24493dc0-687e-4d16-98e5-6e422624729b"
101
+ },
102
+ {
103
+ "uuid" : " 501fc0c1-28a8-45b2-84f1-b6f9ea17d551" ,
104
+ "name" : " Failure" ,
105
+ "exit_uuid" : " 09f2e979-e6d2-4d0c-b28d-88a836a41d2e"
106
+ }
107
+ ],
108
+ "default_category_uuid" : " 501fc0c1-28a8-45b2-84f1-b6f9ea17d551"
109
+ },
110
+ "exits" : [
111
+ {
112
+ "uuid" : " 24493dc0-687e-4d16-98e5-6e422624729b"
113
+ },
114
+ {
115
+ "uuid" : " 09f2e979-e6d2-4d0c-b28d-88a836a41d2e"
116
+ }
117
+ ]
118
+ }
119
+ ]
120
+ }
121
+ }
122
+ ]
0 commit comments