forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook_restaurant.yml
91 lines (87 loc) · 2.58 KB
/
book_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
version: "3.1"
actions:
- check_restaurant_availability
slots:
book_restaurant_offered_alternative_dates:
type: list
initial_value: [ ]
mappings:
- type: custom
book_restaurant_is_date_flexible:
type: bool
initial_value: true
mappings:
- type: custom
book_restaurant_has_alternative_restaurant:
type: bool
mappings:
- type: custom
book_restaurant_alternative_dummy:
type: text
mappings:
- type: custom
book_restaurant_given_alternative:
type: text
mappings:
- type: custom
book_restaurant_confirmation:
type: bool
mappings:
- type: custom
book_restaurant_reservation_name:
type: text
mappings:
- type: custom
is_restaurant_available:
type: bool
mappings:
- type: custom
book_restaurant_name_of_restaurant:
type: text
mappings:
- type: custom
book_restaurant_number_of_people:
type: text
mappings:
- type: custom
book_restaurant_date:
type: text
mappings:
- type: custom
book_restaurant_time:
type: text
mappings:
- type: custom
responses:
utter_ask_book_restaurant_alternative_dummy:
- condition:
- type: slot
name: book_restaurant_has_alternative_restaurant
value: true
text: "{book_restaurant_name_of_restaurant} looks pretty packed these days, how about going to {book_restaurant_given_alternative} instead? They have a lot of space."
- text: "How about {book_restaurant_given_alternative}, instead?"
utter_restaurant_not_available:
- text: Unfortunately, that time isn't available.
utter_cancel_book_restaurant:
- text: booking cancelled
utter_confirm_restaurant_booking:
- text: booking successful
utter_ask_book_restaurant_confirmation:
- text: A table for {book_restaurant_number_of_people} at {book_restaurant_name_of_restaurant} for {book_restaurant_date}, {book_restaurant_time}. Do you confirm the booking?
buttons:
- payload: yes
title: Yes
- payload: no
title: No, Cancel
utter_restaurant_available:
- text: They have a table available for you at that time.
utter_ask_book_restaurant_reservation_name:
- text: what name should I make the reservation for?
utter_ask_book_restaurant_time:
- text: And what time?
utter_ask_book_restaurant_date:
- text: For which day do you want to book?
utter_ask_book_restaurant_number_of_people:
- text: How many people are we talking?
utter_ask_book_restaurant_name_of_restaurant:
- text: What's the name of the restaurant you are interested in?