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

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

#27 move stimulus up in the json file

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