-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
148 lines (124 loc) · 3.11 KB
/
domain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: "3.1"
intents:
# default
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
# fun
- asking_joke
- laughter
# math
- numbering
- add
- subtract
- multiply
- divide
entities:
- first_number
- second_number
- operation
slots:
first_number:
type: float
mappings:
- type: from_entity
entity: first_number
second_number:
type: float
mappings:
- type: from_entity
entity: second_number
operation:
type: text
mappings:
- type: from_intent
value: 'add'
intent: add
- type: from_intent
value: 'subtract'
intent: subtract
- type: from_intent
value: 'divide'
intent: divide
- type: from_intent
value: 'multiply'
intent: multiply
result:
type: float
mappings:
- type: custom
actions:
- record_first_number
- record_second_number
- action_calculate
responses:
utter_greet:
- text: "Hey! How are you?"
- text: "Hi! What's up?"
- text: "Hi :)"
utter_cheer_up:
- text: "Here is something to cheer you up:"
image: "https://i.imgur.com/nGF1K8f.jpg"
utter_did_that_help:
- text: "Did that help you?"
- text: "How do you feel now?"
utter_happy:
- text: "Great, carry on!"
- text: "I am glad to hear you're happy!"
- text: "That's good for you!"
utter_sad_face:
- text: ":("
- text: "i_i"
- text: ":["
- text: ":'("
- text: ":'["
utter_happy_face:
- text: ":)"
- text: ";)"
- text: ":]"
- text: ":D"
- text: "xD"
utter_goodbye:
- text: "Bye"
- text: "Take care"
- text: "See you there!"
- text: "Goodbye!"
utter_iamabot:
- text: "Call me Bob. I am a math bot but I also like to talk with people a lot"
- text: "I am Bob. I do simple math. I am known as simple math Bob!"
- text: "I am Bob. I like doing math!"
- text: "I am Bob the math bot. I can do simple math for you but also feel free to just talk anything"
# fun
utter_joke:
- text: "What is the most shocking city? - Electricity 😂"
- text: "What did the cow say when it wanted to watch a film? - Let's go to the mooooooovies 🐮"
- text: "Why did the letter B felt cold? - Because its between the AC 🥶"
- text: "Why are cricket stadiums cool? - Becuase it has many fans 😂"
- text: "Where do cauliflowers hangout? - The Gobi desert 🌵"
# math
utter_ask_numbers:
- text: "Enter the numbers"
- text: "Enter two numbers"
- text: "Please provide two numbers to continue"
- text: "Which numbers should I {operation}?"
utter_choose_operation:
- text: "I do math. What do you want me to do?"
buttons:
- title: "Add"
payload: "/add"
- title: "Subtract"
payload: "/subtract"
- title: "Multiply"
payload: "/multiply"
- title: "Divide"
payload: "/divide"
utter_fallback_counters:
- text: "I am sorry, I don't quite get you.. let me know if you want to do math!"
- text: "Uh, I don't quite get you.. just let me know if you want to do math!"
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true