source: PerfectFit/Dialog/src/main/resources/dialog.json

Last change on this file was 7, checked in by Wouter Pasman, 4 months ago

#124 release PerfectFit sources

File size: 35.3 KB
Line 
1{
2 "specification": {
3 "phases": {
4 "greet and set goal": {
5 "stimulation": {
6 "Textual": {
7 "question": "Hi there 👋, nice to see you here.\nHow are you feeling today?\nPlease choose one"
8 }
9 },
10 "answer": {
11 "SelectFromListAnswer": {
12 "parameter": "mood",
13 "options": {
14 "neutral":"neutral",
15 "afraid":"afraid",
16 "alarmed":"alarmed",
17 "annoyed":"annoyed",
18 "distressed":"distressed",
19 "angry":"angry",
20 "frustrated":"frustrated",
21 "miserable":"miserable",
22 "depressed":"depressed",
23 "gloomy":"gloomy",
24 "tense":"tense",
25 "droopy":"droopy",
26 "sad":"sad",
27 "tired":"tired",
28 "bored":"bored",
29 "sleepy":"sleepy",
30 "content":"content",
31 "serene":"serene",
32 "calm":"calm",
33 "relaxed":"relaxed",
34 "tranquil":"tranquil",
35 "satisfied":"satisfied",
36 "pleased":"pleased",
37 "delighted":"delighted",
38 "happy":"happy",
39 "glad":"glad",
40 "astonished": "astonished",
41 "aroused":"aroused",
42 "excited": "excited"
43 }
44 }
45 },
46 "evaluation": [
47 {
48 "Set": [
49 "phase",
50 [
51 {
52 "txt": "greet and set goal-action answer mood"
53 }
54 ]
55 ]
56 }
57 ]
58 },
59 "greet and set goal-action answer mood": {
60 "preparation": [
61 {
62 "SetFirstMatch": [
63 "action_answer_mood",
64 [
65 {
66 "condition": {
67 "Equal": [
68 "mood",
69 {
70 "txt": "neutral"
71 },
72 1.0
73 ]
74 },
75 "value": [
76 {
77 "txt": "I see, I guess that's not too bad."
78 },
79 {
80 "txt": "Ah, sounds like you're having a pretty average day."
81 },
82 {
83 "txt": "Hm, that's not too bad I guess."
84 },
85 {
86 "txt": "I see, seems like you're doing okay then."
87 },
88 {
89 "txt": "Ah well, could be worse I guess."
90 }
91 ]
92 },
93 {
94 "condition": {
95 "Or": {
96 "conditions": [
97 {
98 "Equal": [
99 "mood",
100 {
101 "txt": "afraid"
102 },
103 1.0
104 ]
105 },
106 {
107 "Equal": [
108 "mood",
109 {
110 "txt": "alarmed"
111 },
112 1.0
113 ]
114 },
115 {
116 "Equal": [
117 "mood",
118 {
119 "txt": "annoyed"
120 },
121 1.0
122 ]
123 },
124 {
125 "Equal": [
126 "mood",
127 {
128 "txt": "distressed"
129 },
130 1.0
131 ]
132 },
133 {
134 "Equal": [
135 "mood",
136 {
137 "txt": "angry"
138 },
139 1.0
140 ]
141 },
142 {
143 "Equal": [
144 "mood",
145 {
146 "txt": "frustrated"
147 },
148 1.0
149 ]
150 }
151 ]
152 }
153 },
154 "value": [
155 {
156 "txt": "I'm really sorry to hear that you're feeling [mood]. I hope you feel better soon!"
157 },
158 {
159 "txt": "Aww I'm so sorry to hear this. Hopefully you feel less [mood] soon!"
160 },
161 {
162 "txt": "Oh that's a shame that you're not having a good day. I hope it gets better soon and that I can distract you a bit."
163 },
164 {
165 "txt": "I hate to hear that today isn't a good day for you. Hopefully you feel better soon and that it's okay to proceed with this session!"
166 },
167 {
168 "txt": "Awww what a shame. Hopefully you feel less [mood] soon!"
169 }
170 ]
171 },
172 {
173 "condition": {
174 "Or": {
175 "conditions": [
176 {
177 "Equal": [
178 "mood",
179 {
180 "txt": "miserable"
181 },
182 1.0
183 ]
184 },
185 {
186 "Equal": [
187 "mood",
188 {
189 "txt": "depressed"
190 },
191 1.0
192 ]
193 },
194 {
195 "Equal": [
196 "mood",
197 {
198 "txt": "gloomy"
199 },
200 1.0
201 ]
202 },
203 {
204 "Equal": [
205 "mood",
206 {
207 "txt": "tense"
208 },
209 1.0
210 ]
211 },
212 {
213 "Equal": [
214 "mood",
215 {
216 "txt": "droopy"
217 },
218 1.0
219 ]
220 },
221 {
222 "Equal": [
223 "mood",
224 {
225 "txt": "sad"
226 },
227 1.0
228 ]
229 },
230 {
231 "Equal": [
232 "mood",
233 {
234 "txt": "tired"
235 },
236 1.0
237 ]
238 },
239 {
240 "Equal": [
241 "mood",
242 {
243 "txt": "bored"
244 },
245 1.0
246 ]
247 },
248 {
249 "Equal": [
250 "mood",
251 {
252 "txt": "sleepy"
253 },
254 1.0
255 ]
256 }
257 ]
258 }
259 },
260 "value": [
261 {
262 "txt": "I hate to hear that you're feeling [mood]. I hope you feel better soon! Meanwhile, maybe this conversation can help to cheer you up a bit."
263 },
264 {
265 "txt": " Aww it doesn't feel good to hear that. Hopefully you feel better soon!"
266 },
267 {
268 "txt": "Oh I'm so sorry that you're not having a good day. I hope it gets better soon and that I can cheer you up a little!"
269 },
270 {
271 "txt": "That's a shame that you're not feeling well today. Hopefully you feel better soon!"
272 },
273 {
274 "txt": "So sorry about that! Feel better soon!"
275 }
276 ]
277 },
278 {
279 "condition": {
280 "Or": {
281 "conditions": [
282 {
283 "Equal": [
284 "mood",
285 {
286 "txt": "content"
287 },
288 1.0
289 ]
290 },
291 {
292 "Equal": [
293 "mood",
294 {
295 "txt": "serene"
296 },
297 1.0
298 ]
299 },
300 {
301 "Equal": [
302 "mood",
303 {
304 "txt": "calm"
305 },
306 1.0
307 ]
308 },
309 {
310 "Equal": [
311 "mood",
312 {
313 "txt": "relaxed"
314 },
315 1.0
316 ]
317 },
318 {
319 "Equal": [
320 "mood",
321 {
322 "txt": "tranquil"
323 },
324 1.0
325 ]
326 }
327 ]
328 }
329 },
330 "value": [
331 {
332 "txt": "Nice, that's good to hear."
333 },
334 {
335 "txt": "Nice, I'm glad to hear that you're feeling [mood]."
336 },
337 {
338 "txt": "Nice, I'm glad to hear that."
339 },
340 {
341 "txt": "Nice, that's always good to hear."
342 }
343 ]
344 }
345 ],
346 [
347 {
348 "txt": "Yay, always good to hear that somebody is feeling [mood]!"
349 },
350 {
351 "txt": "Awesome, you must be having a good day!"
352 },
353 {
354 "txt": "Fantastic, that's very good to hear!"
355 },
356 {
357 "txt": "Great, I'm happy to hear that that you're feeling [mood]!"
358 },
359 {
360 "txt": "text: Fantastic, I'm happy to hear that!"
361 }
362 ]
363 ]
364 }
365 ],
366 "stimulation": {
367 "Textual": {
368 "question": "[action_answer_mood]\nMy name is Jody. I am here to help you set a goal for becoming more physically active.\nBefore we start, let me explain how you can communicate with me.\n Most of the time, you can just click on one of the buttons like you already did. If no buttons appear, just write something in the text field below."
369 }
370 },
371 "answer": {
372 "TextAnswer": {
373 "parameter": "_"
374 }
375 },
376 "evaluation": [
377 {
378 "Set": [
379 "phase",
380 [
381 {
382 "txt": "greet and set goal-overview"
383 }
384 ]
385 ]
386 }
387 ]
388 },
389 "greet and set goal-overview": {
390 "preparation": [
391 {
392 "Set": [
393 "overview",
394 [
395 {
396 "txt": "Alright then, let me give you an overview of what we're going to do:\nWe're going to set a running or walking goal that you would like to achieve.\nFirst, I’ll ask you to think about a running or walking goal that you want to achieve.\nThis is only to make sure that you have a first idea of the goal that you would like to set.\nNext, I will show you some examples of other people to give you an idea of how you can refine your goal.\nI will also ask you some details about your goal to make your goal as complete as possible.\nAnd don't worry, before we finalize your goal, we will look at it together and I will give you the chance to make changes if you would like to.\n"
397 }
398 ]
399 ]
400 }
401 ],
402 "stimulation": {
403 "Textual": {
404 "question": "[overview]Now you should know what to expect. Let's get started!"
405 }
406 },
407 "answer": {
408 "SelectFromListAnswer": {
409 "parameter": "_",
410 "options": {
411 "Sure":"Sure",
412 "Yes":"Yes"
413 }
414 }
415 },
416 "evaluation": [
417 {
418 "Set": [
419 "phase",
420 [
421 {
422 "txt": "greet and set goal-ask goal type"
423 }
424 ]
425 ]
426 }
427 ]
428 },
429 "greet and set goal-ask goal type": {
430 "stimulation": {
431 "Textual": {
432 "question": "As I mentioned earlier, we are going to set a long-term running or walking goal.\nWould you like to set a long-term goal for <b>running</b> or <b>walking</b>?"
433 }
434 },
435 "answer": {
436 "SelectFromListAnswer": {
437 "parameter": "goal_type",
438 "options": {
439 "running":"Running 🏃‍♀️",
440 "walking":"Walking 🚶"
441 }
442 }
443 },
444 "evaluation": [
445 {
446 "Set": [
447 "phase",
448 [
449 {
450 "txt": "running or walking path"
451 }
452 ]
453 ]
454 }
455 ]
456 },
457 "running or walking path": {
458 "stimulation": {
459 "Textual": {
460 "question": "Good, [goal_type] is a great way to become more active! \nLet's think about the [goal_type] goal you want to achieve.\nDon't worry, this is not your final goal yet! We will also look at some examples of other people later to help you make your goal more specific.\nWhat [goal_type] goal would you like to achieve?\n<em>You could for example mention how long, how far, how often, or where you would like to go [goal_type]</em>"
461 }
462 },
463 "answer": {
464 "TextAnswer": {
465 "parameter": "first_goal"
466 }
467 },
468 "evaluation": [
469 {
470 "Set": [
471 "phase",
472 [
473 {
474 "txt": "running path-first example"
475 }
476 ]
477 ]
478 }
479 ]
480 },
481 "running path-first example": {
482 "preparation": [
483 {
484 "SetFirstMatch": [
485 "comment",
486 [
487 {
488 "condition": {
489 "Or": {
490 "conditions": [
491 {
492 "ContainsString": [
493 "first_goal",
494 "step",
495 true
496 ]
497 },
498 {
499 "ContainsString": [
500 "first_goal",
501 "steps",
502 true
503 ]
504 },
505 {
506 "ContainsString": [
507 "first_goal",
508 "km",
509 true
510 ]
511 },
512 {
513 "ContainsString": [
514 "first_goal",
515 "kilometers",
516 true
517 ]
518 },
519 {
520 "ContainsString": [
521 "first_goal",
522 "miles",
523 true
524 ]
525 }
526 ]
527 }
528 },
529 "value": [
530 {
531 "txt": "It's always good to specify the amount that you want to go [goal_type]."
532 }
533 ]
534 },
535 {
536 "condition": {
537 "Or": {
538 "conditions": [
539 {
540 "ContainsString": [
541 "first_goal",
542 "day",
543 true
544 ]
545 },
546 {
547 "ContainsString": [
548 "first_goal",
549 "everyday",
550 true
551 ]
552 },
553 {
554 "ContainsString": [
555 "first_goal",
556 "daily",
557 true
558 ]
559 }
560 ]
561 }
562 },
563 "value": [
564 {
565 "txt": "It's always good to specify how often you want to go [goal_type]."
566 }
567 ]
568 },
569 {
570 "condition": {
571 "ContainsString": [
572 "first_goal",
573 "marathon",
574 true
575 ]
576 },
577 "value": [
578 {
579 "txt": "It's great to train for a marathon."
580 }
581 ]
582 },
583 {
584 "condition": {
585 "Or": {
586 "conditions": [
587 {
588 "ContainsString": [
589 "first_goal",
590 "minutes",
591 true
592 ]
593 },
594 {
595 "ContainsString": [
596 "first_goal",
597 "hour",
598 true
599 ]
600 },
601 {
602 "ContainsString": [
603 "first_goal",
604 "hours",
605 true
606 ]
607 }
608 ]
609 }
610 },
611 "value": [
612 {
613 "txt": "It's always good to specify the duration of your physical activity."
614 }
615 ]
616 },
617 {
618 "condition": {
619 "Or": {
620 "conditions": [
621 {
622 "ContainsString": [
623 "first_goal",
624 "around the house",
625 true
626 ]
627 },
628 {
629 "ContainsString": [
630 "first_goal",
631 "gym",
632 true
633 ]
634 },
635 {
636 "ContainsString": [
637 "first_goal",
638 "grocery store",
639 true
640 ]
641 },
642 {
643 "ContainsString": [
644 "first_goal",
645 "street",
646 true
647 ]
648 }
649 ]
650 }
651 },
652 "value": [
653 {
654 "txt": "It's always good to specify where you want to go "
655 }
656 ]
657 }
658 ],
659 [
660 {
661 "txt": "It is good that you have thought about your [goal_type] goal. "
662 }
663 ]
664 ]
665 },
666 {
667 "Example": [
668 4,
669 "intro1",
670 "goalhow1"
671 ]
672 },
673 {
674 "Time": [
675 "start_time1"
676 ]
677 }
678 ],
679 "stimulation": {
680 "Textual": {
681 "question": "Okay!\n[comment]\nNow that you have an idea of the goal you want to achieve, let me show you two examples of people who achieved a running or walking goal.\nEach person will first introduce themselves 🧍 and then tell you about the goal they achieved 🎯.\nHere is how the person from the first example introduces themselves:\n[intro1]\nThis person achieved the following goal:\n[goalhow1]\nLet me know when you finished reading this example:"
682 }
683 },
684 "answer": {
685 "SelectFromListAnswer": {
686 "parameter": "_",
687 "options": {
688 "I have read the first example":"I have read the first example"
689 }
690 }
691 },
692 "evaluation": [
693 {
694 "TimeDifference": [
695 "start_time1",
696 "read_first"
697 ]
698 },
699 {
700 "Set": [
701 "phase",
702 [
703 {
704 "txt": "running path-second example"
705 }
706 ]
707 ]
708 }
709 ]
710 },
711 "running path-second example": {
712 "preparation": [
713 {
714 "Example": [
715 5,
716 "intro2",
717 "goalhow2"
718 ]
719 },
720 {
721 "Time": [
722 "start_time2"
723 ]
724 }
725 ],
726 "stimulation": {
727 "Textual": {
728 "question": "Here is how the person from the second example introduces themselves:\n[intro2]\nThis person achieved the following goal:\n[goalhow2]\nLet me know when you read the example!"
729 }
730 },
731 "answer": {
732 "SelectFromListAnswer": {
733 "parameter": "_",
734 "options": {
735 "I'm done!":"I'm done!",
736 "I read the example":"I read the example"
737 }
738 }
739 },
740 "evaluation": [
741 {
742 "TimeDifference": [
743 "start_time2",
744 "read_second"
745 ]
746 },
747 {
748 "Set": [
749 "phase",
750 [
751 {
752 "txt": "new goal"
753 }
754 ]
755 ]
756 }
757 ]
758 },
759 "new goal": {
760 "stimulation": {
761 "Textual": {
762 "question": "What can you take away from these examples for yourself?\n<em>Think of your own goal and how you could achieve it.</em>"
763 }
764 },
765 "answer": {
766 "TextAnswer": {
767 "parameter": "opinion2"
768 }
769 },
770 "evaluation": [
771 {
772 "StringLength": [
773 "opinion2",
774 "len"
775 ]
776 },
777 {
778 "SetIfElse": [
779 "phase",
780 {
781 "Less": [
782 "len",
783 {
784 "num": 25.0
785 }
786 ]
787 },
788 [
789 {
790 "txt": "new goal-try again"
791 }
792 ],
793 [
794 {
795 "txt": "new goal-ask goal"
796 }
797 ]
798 ]
799 }
800 ]
801 },
802 "new goal-try again": {
803 "stimulation": {
804 "Textual": {
805 "question": "Hmm, that seems a bit short.\nCould you please elaborate a bit more on that?\n<em>Please make sure to write down your whole goal, even if it's the same as before.</em>"
806 }
807 },
808 "answer": {
809 "TextAnswer": {
810 "parameter": "opinion2"
811 }
812 },
813 "evaluation": [
814 {
815 "Set": [
816 "phase",
817 [
818 {
819 "txt": "new goal-ask goal"
820 }
821 ]
822 ]
823 }
824 ]
825 },
826 "new goal-ask goal": {
827 "stimulation": {
828 "Textual": {
829 "question": "Thank you for sharing that with me!\nNow that you've seen the examples, maybe you have a better idea about what you want to accomplish.\nThis is the goal you wrote down first: <b>[first_goal]</b>\nPlease review your goal and try to make it as specific as possible.\nMaking your goal specific is important, because it helps with understanding what exactly you want to achieve.\n<em>Make sure to write down your whole goal again, even if it's the same goal.</em>"
830 }
831 },
832 "answer": {
833 "TextAnswer": {
834 "parameter": "goal"
835 }
836 },
837 "evaluation": [
838 {
839 "StringLength": [
840 "goal",
841 "len"
842 ]
843 },
844 {
845 "SetIfElse": [
846 "phase",
847 {
848 "Less": [
849 "len",
850 {
851 "num": 25.0
852 }
853 ]
854 },
855 [
856 {
857 "txt": "new goal-ask goal retry"
858 }
859 ],
860 [
861 {
862 "txt": "new goal-intro importance"
863 }
864 ]
865 ]
866 }
867 ]
868 },
869 "new goal-ask goal retry": {
870 "stimulation": {
871 "Textual": {
872 "question": "Hmm, that seems a bit short.\nCould you please elaborate a bit more on that?\n<b>Please make sure to write down your whole goal, even if it's the same as before.</b>"
873 }
874 },
875 "answer": {
876 "TextAnswer": {
877 "parameter": "goal"
878 }
879 },
880 "evaluation": [
881 {
882 "Set": [
883 "phase",
884 [
885 {
886 "txt": "new goal-intro importance"
887 }
888 ]
889 ]
890 }
891 ]
892 },
893 "new goal-intro importance": {
894 "stimulation": {
895 "Textual": {
896 "question": "Alright!\nYou have thought about how to make your goal more specific.\nIt is also important to set goals that are relevant to you.\nTo think more about that, let's now look at why this goal is important to you\nThis goal is important for your:"
897 }
898 },
899 "answer": {
900 "SelectFromListAnswer": {
901 "parameter": "importance",
902 "options": {
903 "family":"Family 👪",
904 "health":"Health 🍎",
905 "relationships":"Relationships 💕",
906 "personal growth":"Personal growth 🌱",
907 "work":"Work 💼",
908 "friends":"Friends 💛"
909 }
910 }
911 },
912 "evaluation": [
913 {
914 "Set": [
915 "phase",
916 [
917 {
918 "txt": "importance"
919 }
920 ]
921 ]
922 }
923 ]
924 },
925 "importance": {
926 "stimulation": {
927 "Textual": {
928 "question": "Ah, good choice.\nI can understand that your [importance] matters to you. Could you tell me more about why is your goal important for your [importance]?\n"
929 }
930 },
931 "answer": {
932 "TextAnswer": {
933 "parameter": "importance_why"
934 }
935 },
936 "evaluation": [
937 {
938 "StringLength": [
939 "importance_why",
940 "len"
941 ]
942 },
943 {
944 "SetIfElse": [
945 "phase",
946 {
947 "Less": [
948 "len",
949 {
950 "num": 25.0
951 }
952 ]
953 },
954 [
955 {
956 "txt": "importance-ask importance retry"
957 }
958 ],
959 [
960 {
961 "txt": "importance-intro achievable"
962 }
963 ]
964 ]
965 }
966 ]
967 },
968 "importance-ask importance retry": {
969 "stimulation": {
970 "Textual": {
971 "question": "Hmm, could you please elaborate a bit more on that?"
972 }
973 },
974 "answer": {
975 "TextAnswer": {
976 "parameter": "importance_why"
977 }
978 },
979 "evaluation": [
980 {
981 "Set": [
982 "phase",
983 [
984 {
985 "txt": "importance-intro achievable"
986 }
987 ]
988 ]
989 }
990 ]
991 },
992 "importance-intro achievable": {
993 "stimulation": {
994 "Textual": {
995 "question": "Thank you for telling me!\nIt's great that you thought about why this goal is important to you.\nWe also want to think about whether your goal is achievable or not, as we want to be sure that you have the time and resources to achieve your goal.\nLet's think about how achievable your goal is.\nHow achievable is your goal <b>[goal]</b> to you? Select a number between 1 and 7 where 1 is not achievable and 7 is easily achievable."
996 }
997 },
998 "answer": {
999 "SelectFromListAnswer": {
1000 "parameter": "achievable",
1001 "options": {
1002 "1":"1 - not achievable",
1003 "2":"2",
1004 "3":"3",
1005 "4":"4",
1006 "5":"5",
1007 "6":"6",
1008 "7":"7 - easily achievable"
1009 }
1010 }
1011 },
1012 "evaluation": [
1013 {
1014 "SetBestMatch": [
1015 "phase",
1016 [
1017 {
1018 "condition": {
1019 "Or": {
1020 "conditions": [
1021 {
1022 "Equal": [
1023 "achievable",
1024 {
1025 "txt": "1"
1026 },
1027 1.0
1028 ]
1029 },
1030 {
1031 "Equal": [
1032 "achievable",
1033 {
1034 "txt": "2"
1035 },
1036 1.0
1037 ]
1038 }
1039 ]
1040 }
1041 },
1042 "value": [
1043 {
1044 "txt": "achievability and deadline-impossible"
1045 }
1046 ]
1047 },
1048 {
1049 "condition": {
1050 "Or": {
1051 "conditions": [
1052 {
1053 "Equal": [
1054 "achievable",
1055 {
1056 "txt": "3"
1057 },
1058 1.0
1059 ]
1060 },
1061 {
1062 "Equal": [
1063 "achievable",
1064 {
1065 "txt": "4"
1066 },
1067 1.0
1068 ]
1069 },
1070 {
1071 "Equal": [
1072 "achievable",
1073 {
1074 "txt": "5"
1075 },
1076 1.0
1077 ]
1078 }
1079 ]
1080 }
1081 },
1082 "value": [
1083 {
1084 "txt": "achievability and deadline-doable"
1085 }
1086 ]
1087 },
1088 {
1089 "condition": {
1090 "Or": {
1091 "conditions": [
1092 {
1093 "Equal": [
1094 "achievable",
1095 {
1096 "txt": "6"
1097 },
1098 1.0
1099 ]
1100 },
1101 {
1102 "Equal": [
1103 "achievable",
1104 {
1105 "txt": "7"
1106 },
1107 1.0
1108 ]
1109 }
1110 ]
1111 }
1112 },
1113 "value": [
1114 {
1115 "txt": "achievability and deadline-easy"
1116 }
1117 ]
1118 }
1119 ]
1120 ]
1121 }
1122 ]
1123 },
1124 "achievability and deadline-impossible": {
1125 "stimulation": {
1126 "Textual": {
1127 "question": "Hmm, if you think your goal is too difficult, it is okay to start with an easier goal.\nYour goal should be realistic to achieve, but challenging enough to keep you motivated.\nDo you want to change your goal, or are you up for the challenge?"
1128 }
1129 },
1130 "answer": {
1131 "SelectFromListAnswer": {
1132 "parameter": "change_goal_achievability",
1133 "options": {
1134 "I want to make my goal more achievable":"I want to make my goal more achievable",
1135 "I want to keep the goal that I set, I can do this":"I want to keep the goal that I set, I can do this"
1136 }
1137 }
1138 },
1139 "evaluation": [
1140 {
1141 "SetBestMatch": [
1142 "phase",
1143 [
1144 {
1145 "condition": {
1146 "Equal": [
1147 "change_goal_achievability",
1148 {
1149 "txt": "I want to make my goal more achievable"
1150 },
1151 1.0
1152 ]
1153 },
1154 "value": [
1155 {
1156 "txt": "change goal (achievability)"
1157 }
1158 ]
1159 },
1160 {
1161 "condition": {
1162 "Equal": [
1163 "change_goal_achievability",
1164 {
1165 "txt": "I want to keep the goal that I set, I can do this"
1166 },
1167 1.0
1168 ]
1169 },
1170 "value": [
1171 {
1172 "txt": "deadline form-almost"
1173 }
1174 ]
1175 }
1176 ]
1177 ]
1178 }
1179 ]
1180 },
1181 "achievability and deadline-doable": {
1182 "stimulation": {
1183 "Textual": {
1184 "question": "That seems good. \nSetting realistic, achievable goals increases the chance of success."
1185 }
1186 },
1187 "answer": {
1188 "SelectFromListAnswer": {
1189 "parameter": "change_goal_achievability",
1190 "options": {
1191 "I agree!":"I agree!",
1192 "Yes":"Yes"
1193 }
1194 }
1195 },
1196 "evaluation": [
1197 {
1198 "Set": [
1199 "phase",
1200 [
1201 {
1202 "txt": "deadline form-almost"
1203 }
1204 ]
1205 ]
1206 }
1207 ]
1208 },
1209 "achievability and deadline-easy": {
1210 "stimulation": {
1211 "Textual": {
1212 "question": "Hmm, it seems like you can easily achieve your goal.\nWhat do you think of challenging yourself a bit more?"
1213 }
1214 },
1215 "answer": {
1216 "SelectFromListAnswer": {
1217 "parameter": "change_goal_achievability",
1218 "options": {
1219 "I want to make my goal more challenging":"I want to make my goal more challenging",
1220 "I want to keep the goal I set, it is challenging enough":"I want to keep the goal I set, it is challenging enough"
1221 }
1222 }
1223 },
1224 "evaluation": [
1225 {
1226 "SetBestMatch": [
1227 "phase",
1228 [
1229 {
1230 "condition": {
1231 "Equal": [
1232 "change_goal_achievability",
1233 {
1234 "txt": "I want to make my goal more challenging"
1235 },
1236 1.0
1237 ]
1238 },
1239 "value": [
1240 {
1241 "txt": "change goal (achievability)"
1242 }
1243 ]
1244 },
1245 {
1246 "condition": {
1247 "Equal": [
1248 "change_goal_achievability",
1249 {
1250 "txt": "I want to keep the goal I set, it is challenging enough"
1251 },
1252 1.0
1253 ]
1254 },
1255 "value": [
1256 {
1257 "txt": "deadline form-almost"
1258 }
1259 ]
1260 }
1261 ]
1262 ]
1263 }
1264 ]
1265 },
1266 "deadline form-almost": {
1267 "stimulation": {
1268 "Textual": {
1269 "question": "We are almost finished! We only need to think of a deadline for you goal 📅.\nWhen would you like to have achieved your goal <b>[goal]</b>?\nPlease write down a date in the following format: <b>dd-mm-yyyy</b>."
1270 }
1271 },
1272 "answer": {
1273 "TextAnswer": {
1274 "parameter": "text"
1275 }
1276 },
1277 "evaluation": [
1278 {
1279 "CheckDeadline": [
1280 "text",
1281 "deadline",
1282 "reason"
1283 ]
1284 },
1285 {
1286 "SetIfElse": [
1287 "phase",
1288 {
1289 "Equal": [
1290 "deadline",
1291 {
1292 "num": -1.0
1293 },
1294 1.0
1295 ]
1296 },
1297 [
1298 {
1299 "txt": "deadline form-retry"
1300 }
1301 ],
1302 [
1303 {
1304 "txt": "deadline form-check"
1305 }
1306 ]
1307 ]
1308 }
1309 ]
1310 },
1311 "deadline form-achievability": {
1312 "stimulation": {
1313 "Textual": {
1314 "question": "Thanks, I hope your goal fits you better now!\nWe are almost finished! We only need to think of a deadline for you goal 📅.\nWhen would you like to have achieved your goal <b>[goal]</b>?\nPlease write down a date in the following format: <b>dd-mm-yyyy</b>."
1315 }
1316 },
1317 "answer": {
1318 "TextAnswer": {
1319 "parameter": "text"
1320 }
1321 },
1322 "evaluation": [
1323 {
1324 "CheckDeadline": [
1325 "text",
1326 "deadline",
1327 "reason"
1328 ]
1329 },
1330 {
1331 "SetIfElse": [
1332 "phase",
1333 {
1334 "Equal": [
1335 "deadline",
1336 {
1337 "num": -1.0
1338 },
1339 1.0
1340 ]
1341 },
1342 [
1343 {
1344 "txt": "deadline form-retry"
1345 }
1346 ],
1347 [
1348 {
1349 "txt": "deadline form-check"
1350 }
1351 ]
1352 ]
1353 }
1354 ]
1355 },
1356 "deadline form-change": {
1357 "stimulation": {
1358 "Textual": {
1359 "question": "Alright, let's change it.\nWhat is the new deadline you would like to set?\nPlease write down a date in the following format: <b>dd-mm-yyyy</b>."
1360 }
1361 },
1362 "answer": {
1363 "TextAnswer": {
1364 "parameter": "text"
1365 }
1366 },
1367 "evaluation": [
1368 {
1369 "CheckDeadline": [
1370 "text",
1371 "deadline",
1372 "reason"
1373 ]
1374 },
1375 {
1376 "SetIfElse": [
1377 "phase",
1378 {
1379 "Equal": [
1380 "deadline",
1381 {
1382 "num": -1.0
1383 },
1384 1.0
1385 ]
1386 },
1387 [
1388 {
1389 "txt": "deadline form-retry"
1390 }
1391 ],
1392 [
1393 {
1394 "txt": "deadline form-check"
1395 }
1396 ]
1397 ]
1398 }
1399 ]
1400 },
1401 "deadline form-retry": {
1402 "stimulation": {
1403 "Textual": {
1404 "question": "[reason]\nCould you please reformulate the goal deadline you want to set?\nPlease write down a date in the following format dd-mm-yyyy."
1405 }
1406 },
1407 "answer": {
1408 "TextAnswer": {
1409 "parameter": "text"
1410 }
1411 },
1412 "evaluation": [
1413 {
1414 "CheckDeadline": [
1415 "text",
1416 "deadline",
1417 "reason"
1418 ]
1419 },
1420 {
1421 "SetIfElse": [
1422 "phase",
1423 {
1424 "Equal": [
1425 "deadline",
1426 {
1427 "num": -1.0
1428 },
1429 1.0
1430 ]
1431 },
1432 [
1433 {
1434 "txt": "deadline form-retry"
1435 }
1436 ],
1437 [
1438 {
1439 "txt": "deadline form-check"
1440 }
1441 ]
1442 ]
1443 }
1444 ]
1445 },
1446 "deadline form-check": {
1447 "stimulation": {
1448 "Textual": {
1449 "question": "[reason], is that correct?"
1450 }
1451 },
1452 "answer": {
1453 "SelectFromListAnswer": {
1454 "parameter": "correct",
1455 "options": {
1456 "That is correct":"That is correct",
1457 "No, I want to set a different deadline":"No, I want to set a different deadline"
1458 }
1459 }
1460 },
1461 "evaluation": [
1462 {
1463 "DateString": [
1464 "deadline",
1465 "deadlinestr"
1466 ]
1467 },
1468 {
1469 "SetBestMatch": [
1470 "phase",
1471 [
1472 {
1473 "condition": {
1474 "Equal": [
1475 "correct",
1476 {
1477 "txt": "That is correct"
1478 },
1479 1.0
1480 ]
1481 },
1482 "value": [
1483 {
1484 "txt": "summarize goal"
1485 }
1486 ]
1487 },
1488 {
1489 "condition": {
1490 "Equal": [
1491 "correct",
1492 {
1493 "txt": "No, I want to set a different deadline"
1494 },
1495 1.0
1496 ]
1497 },
1498 "value": [
1499 {
1500 "txt": "deadline form-change"
1501 }
1502 ]
1503 }
1504 ]
1505 ]
1506 }
1507 ]
1508 },
1509 "summarize goal": {
1510 "stimulation": {
1511 "Textual": {
1512 "question": "You have set the following goal: <b>[goal]</b>, and you want to achieve this goal by <b>[deadlinestr]</b>.Now that you see your whole goal, does this goal reflect on what you want to achieve, or is there something you want to change?"
1513 }
1514 },
1515 "answer": {
1516 "SelectFromListAnswer": {
1517 "parameter": "correct",
1518 "options": {
1519 "That is my goal!":"That is my goal! ✔️",
1520 "I want to change my goal":"I want to change my goal 🎯",
1521 "I want to change the goal deadline":"I want to change the goal deadline 📅"
1522 }
1523 }
1524 },
1525 "evaluation": [
1526 {
1527 "SetBestMatch": [
1528 "phase",
1529 [
1530 {
1531 "condition": {
1532 "Equal": [
1533 "correct",
1534 {
1535 "txt": "That is my goal!"
1536 },
1537 1.0
1538 ]
1539 },
1540 "value": [
1541 {
1542 "txt": "finished"
1543 }
1544 ]
1545 },
1546 {
1547 "condition": {
1548 "Equal": [
1549 "correct",
1550 {
1551 "txt": "I want to change my goal"
1552 },
1553 1.0
1554 ]
1555 },
1556 "value": [
1557 {
1558 "txt": "change goal"
1559 }
1560 ]
1561 },
1562 {
1563 "condition": {
1564 "Equal": [
1565 "correct",
1566 {
1567 "txt": "I want to change the goal deadline"
1568 },
1569 1.0
1570 ]
1571 },
1572 "value": [
1573 {
1574 "txt": "deadline form-change"
1575 }
1576 ]
1577 }
1578 ]
1579 ]
1580 }
1581 ]
1582 },
1583 "change goal (achievability)": {
1584 "stimulation": {
1585 "Textual": {
1586 "question": "Let's do that! What is the new goal you would like to set?"
1587 }
1588 },
1589 "answer": {
1590 "TextAnswer": {
1591 "parameter": "goal"
1592 }
1593 },
1594 "evaluation": [
1595 {
1596 "Set": [
1597 "phase",
1598 [
1599 {
1600 "txt": "deadline form-achievability"
1601 }
1602 ]
1603 ]
1604 }
1605 ]
1606 },
1607 "change goal": {
1608 "stimulation": {
1609 "Textual": {
1610 "question": "Alright, let's change it. What is the new goal you would like to set?"
1611 }
1612 },
1613 "answer": {
1614 "TextAnswer": {
1615 "parameter": "goal"
1616 }
1617 },
1618 "evaluation": [
1619 {
1620 "Set": [
1621 "phase",
1622 [
1623 {
1624 "txt": "summarize goal"
1625 }
1626 ]
1627 ]
1628 }
1629 ]
1630 },
1631 "finished": {
1632 "stimulation": {
1633 "Textual": {
1634 "question": "Congratulations! 🎉 You can be proud of yourself, you have set your long-term [goal_type] goal.\nWe are going to work together to help you achieve this goal.\nI believe we can do it!\nIt was a pleasure to talk to you. Have a nice day! 😊"
1635 }
1636 },
1637 "answer": {
1638 "SelectFromListAnswer": {
1639 "parameter": "goodbye",
1640 "options": {
1641 "Goodbye!":"Goodbye!"
1642 }
1643 }
1644 },
1645 "evaluation": [
1646 {
1647 "Set": [
1648 "phase",
1649 [
1650 {
1651 "txt": "END"
1652 }
1653 ]
1654 ]
1655 }
1656 ]
1657 }
1658 }
1659 },
1660 "parameters": {
1661 "values": {
1662 "phase": {
1663 "txt": "greet and set goal"
1664 }
1665 }
1666 }
1667}
Note: See TracBrowser for help on using the repository browser.