-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdomain.yml
85 lines (57 loc) · 1.19 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
version: "3.1"
intents:
- greet
- goodbye
- affirm
- bot_challenge
- ask_order
- ask_order_number
- ask_program
- ask_number
- ask_email
entities:
- tracking_number
- program_number
slots:
email:
type: text
mappings:
- type: from_entity
entity: email
tracking_number:
type: text
mappings:
- type: from_entity
entity: tracking_number
program_number:
type: text
mappings:
- type: from_entity
entity: program_number
results:
type: text
mappings:
- type: custom
action: action_show_program
actions:
- action_order_details
- action_show_program
- action_show_details
- action_verify_email
responses:
utter_greet:
- text: "Hey! How are you?"
utter_ask_email:
- text: "Please enter your email?"
utter_ask_order_number:
- text: "Sure, What is your order number?"
utter_cheer_up:
- text: "Here is something to cheer you up:"
image: "https://i.imgur.com/nGF1K8f.jpg"
utter_goodbye:
- text: "Bye"
utter_iamabot:
- text: "I am a bot, powered by Rasa."
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true