source: dialogmanager/src/main/resources/dialogdemo.json@ 26

Last change on this file since 26 was 26, checked in by wouter, 5 years ago

moving dialogmanager to utilities project for easy re-use

File size: 3.2 KB
RevLine 
[26]1{
2 "specification": {
3 "phases": [
4 {
5 "label": "START",
6 "options": [
7 {
8 "OptionForParameters": {
9 "question": {
10 "NumberQuestion": {
11 "question": "Please enter a random number between 0 and 9.",
12 "parameter": "random",
13 "min": -1000,
14 "max": 1000,
15 "stepsize": 1
16 }
17 },
18 "param": {
19 "values": {
20 }
21 }
22 }
23 },
24 {
25 "OptionForParameters": {
26 "question": {
27 "NumberQuestion": {
28 "question": "Can you give a random number, at least 0 and at most 9.",
29 "parameter": "random",
30 "min": -1000,
31 "max": 1000,
32 "stepsize": 1
33 }
34 },
35 "param": {
36 "values": {
37 }
38 }
39 }
40 }
41 ],
42 "next": {
43 "gotoif": [
44 {
45 "label": "goodnum",
46 "condition": {
47 "values": {
48 "random": {
49 "num": 4.5
50 }
51 }
52 }
53 },
54 {
55 "label": "badnum",
56 "condition": {
57 "values": {
58 "random": {
59 "num": -4.5
60 }
61 }
62 }
63 },
64 {
65 "label": "badnum",
66 "condition": {
67 "values": {
68 "random": {
69 "num": 13.5
70 }
71 }
72 }
73 }
74 ]
75 }
76 },
77 {
78 "label": "goodnum",
79 "options": [
80 {
81 "OptionForParameters": {
82 "question": {
83 "Bool": {
84 "question": "Yes, [random] is between 0 and 9. Do you want to retry?",
85 "parameter": "retry"
86 }
87 },
88 "param": {
89 "values": {
90 }
91 }
92 }
93 },
94 {
95 "OptionForParameters": {
96 "question": {
97 "Bool": {
98 "question": "[random] is correct. Try again??",
99 "parameter": "retry"
100 }
101 },
102 "param": {
103 "values": {
104 }
105 }
106 }
107 }
108 ],
109 "next": {
110 "gotoif": [
111 {
112 "label": "END",
113 "condition": {
114 "values": {
115 "retry": {
116 "bool": false
117 }
118 }
119 }
120 },
121 {
122 "label": "START",
123 "condition": {
124 "values": {
125 "retry": {
126 "bool": true
127 }
128 }
129 }
130 }
131 ]
132 }
133 },
134 {
135 "label": "badnum",
136 "options": [
137 {
138 "OptionForParameters": {
139 "question": {
140 "Bool": {
141 "question": "Nah, [random] is outside 0 to 9. Do you want to retry?",
142 "parameter": "retry"
143 }
144 },
145 "param": {
146 "values": {
147 }
148 }
149 }
150 },
151 {
152 "OptionForParameters": {
153 "question": {
154 "Bool": {
155 "question": "That was not a correct answer. Try again??",
156 "parameter": "retry"
157 }
158 },
159 "param": {
160 "values": {
161 }
162 }
163 }
164 }
165 ],
166 "next": {
167 "gotoif": [
168 {
169 "label": "END",
170 "condition": {
171 "values": {
172 "retry": {
173 "bool": false
174 }
175 }
176 }
177 },
178 {
179 "label": "START",
180 "condition": {
181 "values": {
182 "retry": {
183 "bool": true
184 }
185 }
186 }
187 }
188 ]
189 }
190 }
191 ]
192 },
193 "parameters": {
194 "values": {
195 "dialog.PhaseLabel": {
196 "txt": "START"
197 }
198 }
199 }
200}
Note: See TracBrowser for help on using the repository browser.