-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
82 lines (82 loc) · 1.83 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
version: '3.1'
intents:
- affirm
- bot_challenge
- buy_shoes
- cancel_order
- deny
- goodbye
- greet
- help
- hours
- inform
- thanks
entities:
- shoe_size
- shoe_type
slots:
shoe_type:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: shoe_type
shoe_size:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: shoe_size
forms:
simple_shoe_form:
required_slots:
- shoe_type
- shoe_size
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?
- text: Did that answer your questions?
- text: Is that everything?
utter_goodbye:
- text: Bye
- text: Great, carry on!
- text: Have a nice day!
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_hours:
- text: We are open from 8AM to 5PM.
utter_help_response:
- text: I can help you look for shoes or answer questions about our store. Do you have any questions?
utter_offer_help:
- text: How can I help you?
utter_ask_shoe_size:
- text: What size do you need?
utter_ask_shoe_type:
- text: What kind of shoe are you looking for?
utter_submit:
- text: Thank you for ordering with us =)
utter_shoe_slots:
- text: Ok, so you want {shoe_type} in size {shoe_size}.
utter_ask_continue:
- text: Are you sure you want to stop the order? Your input will be lost.
utter_what_else:
- text: What else can I help you with?
actions:
- utter_ask_continue
- utter_ask_shoe_type
- utter_goodbye
- utter_greet
- utter_help_response
- utter_offer_help
- utter_shoe_slots
- utter_submit
- utter_what_else
- validate_simple_shoe_form
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true