-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
66 lines (51 loc) · 1.21 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
version: "2.0"
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- get_coffee
- give_email
- give_type_coffee
entities:
- coffee
- email
slots:
coffee: #if slot has same name as entity it is automatically saved when extracted.
type: text
email:
type: any
responses:
utter_greet:
- text: "Hey!"
- text: "Hellooo !"
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_iamabot:
- text: "I am a bot, powered by Rasa."
utter_give_coffee:
- text: "Here's the {coffee} you ordered !"
- text: "You are going to love this {coffee} !"
utter_get_email:
- text: "I need your email adress for the order."
- text: "Can you give me your email adress for finalizing order ?"
utter_get_coffee_type:
- text: "What type of coffee do you want ?"
utter_print_email:
- text: "Your email is {email}."
actions:
- action_coffee_list
- action_coffee_mail
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true