-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdomain.yml
More file actions
100 lines (100 loc) · 2.29 KB
/
domain.yml
File metadata and controls
100 lines (100 loc) · 2.29 KB
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
92
93
94
95
96
97
98
99
100
version: '3.1'
intents:
- affirm
- bot_challenge
- deny
- get_attendance
- get_curriculum
- get_exam
- get_parent_name
- get_student_class
- get_student_name
- get_student_roll
- goodbye
- greet
entities:
- name
- studentclass
- studentroll
responses:
utter_greet:
- text: Hey! I am the bot for the school, here to help you the best way I can. Firstly, i need some info
utter_ask_parent_name:
- text: Can you let me know your full name
utter_ask_student_name:
- text: Please let me know your ward's full name
utter_ask_student_roll:
- text: I need your pupil's roll number
utter_ask_student_class:
- text: I need the class your pupil is studying in
utter_goodbye:
- text: Let me know if you need anything else. Till then, Goodbye.
utter_iamabot:
- text: I am a bot, powered by Rasa.
utter_info_recorded:
- text: Great! I have gathered required info to work :)
utter_select_service:
- text: Please select the service you want to avail
buttons:
- title: View Curriculum
payload: /get_curriculum
- title: View Examination details
payload: /get_exam
- title: View Attendance of your ward
payload: /get_attendance
utter_ask_get_attendance:
- text: BOILER PLATE FOR ATTENDANCE!!
utter_ask_get_exam:
- text: BOILER PLATE FOR EXAM!!
utter_ask_get_curriculum:
- text: BOILER PLATE FOR CURRICULUM!!
utter_post_service:
- text: Do you want to look for other services?
buttons:
- title: Yes
payload: /affirm
- title: No
payload: /deny
slots:
parent_name:
type: text
mappings:
- type: from_entity
entity: name
student_name:
type: text
mappings:
- type: from_entity
entity: name
student_class:
type: any
mappings:
- type: from_entity
entity: studentclass
student_roll:
type: float
mappings:
- type: from_entity
entity: studentroll
forms:
info_form:
required_slots:
- parent_name
- student_name
- student_class
- student_roll
actions:
- action_reset_slots
- action_restart
- action_return_info
- utter_ask_get_attendance
- utter_ask_get_curriculum
- utter_ask_get_exam
- utter_goodbye
- utter_greet
- utter_info_recorded
- utter_post_service
- utter_select_service
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true