-
Notifications
You must be signed in to change notification settings - Fork 18
/
restaurant.yml
92 lines (86 loc) · 2.05 KB
/
restaurant.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
version: "3.1"
intents:
- stop
- request_restaurant
- inform
- list_restaurants
- goodbye
entities:
- cuisine
- number
- time
- location
- restaurant_name
slots:
city:
type: text
mappings:
- type: from_entity
entity: location
cuisine:
type: categorical
values:
- Italian
- Japanese
- Indian
- Mexican
- French
- Chinese
- Mediterranean
- Thai
mappings:
- type: from_entity
entity: cuisine
num_people:
type: any
mappings:
- type: from_entity
entity: number
restaurant_name:
type: text
mappings:
- type: from_entity
entity: restaurant_name
restaurant_time:
type: text
mappings:
- type: from_entity
entity: time
actions:
- action_list_restaurants
- validate_restaurant_form
- action_ask_restaurant_form_cuisine
- action_ask_restaurant_form_restaurant_name
forms:
restaurant_form:
ignored_intents:
- greet
- goodbye
required_slots:
- city
- cuisine
- restaurant_name
- num_people
- restaurant_time
responses:
utter_restaurant_form_submit:
- text: Let me check if the restaurant {restaurant_name} is available on {restaurant_time} for {num_people}.
utter_restaurant_available:
- text: You are lucky, they have a table available for you. The reservation is confirmed.
utter_ask_restaurant_form_num_people:
- text: How many people are you?
utter_ask_restaurant_form_restaurant_time:
- text: What date and time do you want me to make the reservation?
utter_ask_restaurant_form_city:
- text: What city are you in?
buttons:
- title: "Berlin"
payload: '/inform{{"location":"berlin"}}'
- title: "Amsterdam"
payload: '/inform{{"location":"amsterdam"}}'
utter_ask_continue:
- text: Are you sure?
utter_handover:
- text: I'm handing over to a human now. I'm sorry, I could not help.
utter_cannot_handle_other_city:
- text: I'm sorry, but I can only book a restaurant in Berlin or Amsterdam.