-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
80 lines (79 loc) · 1.85 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
version: '3.1'
intents:
- affirm
- ask_for_call
- bot_challenge
- deny
- goodbye
- greet
- user_provides_date
- user_provides_email
- user_provides_time
entities:
- email_id
- DATE
- TIME
slots:
email_id:
type: text
influence_conversation: true
mappings:
- type: from_entity
entity: email_id
conditions:
- active_loop: fetch_user_info_form
requested_slot: email_id
date:
type: text
influence_conversation: true
mappings:
- type: custom
# action: validate_fetch_user_info_form
conditions:
- active_loop: fetch_user_info_form
requested_slot: date
time:
influence_conversation: true
type: text
mappings:
- type: custom
# action: validate_fetch_user_info_form
conditions:
- active_loop: fetch_user_info_form
requested_slot: time
forms:
fetch_user_info_form:
required_slots:
- email_id
- date
- time
responses:
utter_greet:
- text: Hi! How Can I Help you Today?
- text: Hey! How Can I Be of Assistance Today?
utter_ask_for_info:
- text: I would need some information from you. I would need the date,time and email address for the connect.
utter_ask_email:
- text: Okay. The email is {email}.
utter_confirm_invite:
- text: Okay. Sent the invite to {email_id} on {date} at {time}. Please be on time
utter_invalid_date:
- text: That is an invalid date. Please try again.
utter_invalid_time:
- text: That is an invalid time. Please try again.
utter_invalid_email_id:
- text: That is an invalid email. Please try again.
actions:
- validate_fetch_user_info_form
- utter_ask_for_info
- utter_invalid_time
- utter_greet
- utter_ask_email
- utter_confirm_invite
- utter_invalid_email_id
- extract_date
- extract_time
- action_default_fallback
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true