-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
195 lines (172 loc) · 4.72 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
version: "3.1"
intents:
- greet
- goodbye
- tell_name
- tell_order
- tell_place
- affirm
- deny
- system_scenario_one
entities:
- name
- order
- places
actions:
- action_clear_slots
- action_fallback_response
- validate_simple_order_form
forms:
simple_order_form:
required_slots:
- order
- places
- confirmation
slots:
name:
type: text
initial_value: "None"
influence_conversation: false
mappings:
- type: from_entity
entity: name
order:
type: text
initial_value: "None"
influence_conversation: true
mappings:
- type: from_entity
entity: order
places:
type: text
initial_value: "None"
influence_conversation: true
mappings:
- type: from_entity
entity: places
confirmation:
type: bool
mappings:
- type: from_intent
intent: affirm
value: true
conditions:
- active_loop: simple_order_form
requested_slot: confirmation
responses:
utter_greet:
- custom:
text: "conversation_ongoing"
data:
response: "Hello! I am a Lucy, here to serve you."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_goodbye:
- custom:
text: "conversation_session_end"
data:
response: "Bye! Have a nice day."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_interruption_at_start:
- custom:
text: "conversation_ongoing"
data:
response: "Hello! I am Lucy. Sorry for the interruption, but can I get you anything?"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_greet_by_name:
- custom:
text: "conversation_ongoing"
data:
response: "Hello, {name}! I am a bot."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_call_if_you_need_anything:
- custom:
text: "conversation_ongoing"
data:
response: "Okay! call my name if you need anything"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_ask_order:
- custom:
text: "conversation_ongoing"
data:
response: "What would you like to have? Give me the name of the object and the place where I can find it."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_ask_places:
- custom:
text: "conversation_ongoing"
data:
response: "Where can I find the {order}?"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_will_bring_order:
- custom:
text: "conversation_session_end"
data:
response: "Okay! I will bring you {order} from {places}."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_processing_order:
- custom:
text: "conversation_ongoing"
data:
response: "I am processing your order."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_sorry_for_inconvenience:
- custom:
text: "conversation_ongoing"
data:
response: "Sorry for the inconvenience."
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_ask_confirmation:
- custom:
text: "conversation_ongoing"
data:
response: "You ordered {order} from {places}. Is that correct?"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_fallback:
- custom:
text: "conversation_ongoing"
data:
response: "Sorry, I didn't understand that. Can you please rephrase your message"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_ask_order_again:
- custom:
text: "conversation_ongoing"
data:
response: "Sorry but I cannot recognize that object. Can you name anything else you would like to have?"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
utter_ask_places_again:
- custom:
text: "conversation_ongoing"
data:
response: "Sorry but I cannot recognize that place. Can you name any other place where I can find it?"
object: "{order}"
location: "{places}"
confirmation: "{confirmation}"
session_config:
session_expiration_time: 0
carry_over_slots_to_new_session: false
#TODO: can also use /session_start and /stop to control the session. Need to check if memory is saved.