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

Last change on this file since 124 was 118, checked in by wouter, 4 years ago

#49 re-introduced Stimulus object, because we need substitute and type of stimulus.

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