-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
184 lines (172 loc) · 3.96 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
version: "3.1"
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- weather
- play_song
- inform
- thanks
- request_details
- bye
- disagree
- agree
- FirstName
- LastName
- feedback
- giving_place_type
- giving_radius
- giving_address
- out_of_scope
- ask_purpose
entities:
- address
- place_type
- radius
- city
- song
- query
- number
- firstN
- lastN
- feedback
responses:
utter_greet:
- text: "Hey! How can I help you?"
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?"
utter_happy:
- text: "Great, carry on!"
utter_goodbye:
- text: "Bye"
utter_navigate:
- text: "Navigating to {address}"
utter_thanks:
- text: "You are very welcome."
utter_iamabot:
- text: "I am a bot, powered by Rasa."
utter_ask_firstN:
- text: "Please provide your first name."
utter_ask_lastN:
- text: "Please provide your last name."
utter_ask_feedback:
- text: "Please provide your feedback."
utter_submit:
- text: "These are the values that you provided say yes or no to confirm:\n First name: {Fname}\n Last Name: {Lname}\n Feedback: {fdbk}"
utter_ask_for_feedback:
- text: Would you like to provide a feedback?
utter_ask_address:
- text: Where do you want to search?
utter_ask_radius:
- text: Specify search radius, in km.
utter_ask_place_type:
- text: Do you want to look for restaurants, coffee house, or both?
buttons:
- title: Restaurants
payload: /giving_place_type{{"place_type":"restaurants"}}
- title: Coffee Houses
payload: /giving_place_type{{"place_type":"coffee houses"}}
- title: Both
payload: /giving_place_type{{"place_type":"both restaurants and coffee houses"}}
utter_wrong_address:
- text: Address not found. Check for spelling mistakes.
utter_wrong_radius:
- text: Please use a number for radius
utter_purpose:
- text: I can help you search for restaurants, coffee houses or both.
utter_welcome:
- text: You're welcome.
utter_out_of_scope:
- text: Sorry, but I can't handle that request
utter_please_rephrase:
- text: I'm sorry, I didn't understand that. Please rephrase your request.
utter_default:
- text: Sorry I didn't get that. Can you rephrase?
slots:
feedback:
type: text
influence_conversation: true
mappings:
- type: custom
firstN:
type: text
influence_conversation: true
mappings:
- type: custom
lastN:
type: text
influence_conversation: true
mappings:
- type: custom
lat_lon:
type: text
influence_conversation: false
mappings:
- type: custom
address:
type: list
influence_conversation: true
mappings:
- type: from_entity
entity: address
radius:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: radius
place_type:
type: categorical
influence_conversation: true
mappings:
- type: from_entity
entity: place_type
intent: giving_place_type
values:
- restaurants
- coffee houses
- both restaurants and coffee houses
actions:
- action_weather_api
- action_play_song
- utter_greet
- utter_goodbye
- utter_thanks
- action_last_name
- action_feedback
- action_submit
- utter_ask_firstN
- utter_ask_lastN
- utter_ask_feedback
- utter_ask_for_feedback
- action_places_search
- action_reset_address
- action_beginning_search
- action_validate_slot_mappings
- utter_ask_place_type
- utter_out_of_scope
- utter_purpose
- utter_welcome
- validate_places_search_form
- utter_please_rephrase
forms:
form_info:
required_slots:
- firstN
- lastN
- feedback
place_search_form:
required_slots:
- place_type
- address
- radius
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true