-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
155 lines (129 loc) · 3.26 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.0"
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- bot_challenge
- tell_name
- play_video
- cool_play_video
- out_of_scope
- weather
- city
- bills_payment
- telephone_bill
- insurance_bill
- utility_bill
- hospital
- ICU_Vacant_beds
- Non_ICU_Vacant_beds
- my_name:
use_entities:
- name
- my_mobile_number:
use_entities:
- number
entities:
- name
- number
slots:
name:
type: text
influence_conversation: false
mappings:
- type: from_entity
entity: name
number:
type: text
influence_conversation: false
mappings:
- type: from_entity
entity: number
responses:
utter_greet:
- text: "Hey! How are you?"
utter_welcome:
- text: "Are you looking for vacant beds?"
buttons:
- payload: "/affirm"
title: "YES"
- payload: "/deny"
title: "NO"
utter_beds_type:
- text: "What are you looking for?"
buttons:
- payload: "/ICU_Vacant_beds"
title: "ICU Vacant Beds"
- payload: "/Non_ICU_Vacant_beds"
title: "Non ICU Vacant Beds"
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: "Thanks for the visit. \nWear mask, wash your hands regularly and keep 3m distance from each other. \nStay Home, Stay safe.\n"
utter_iamabot:
- text: "I am a bot, powered by Rasa."
utter_ask_name:
- text: "What is your name?"
utter_ask_number:
- text: "What is your mobile number?"
utter_thanks:
- text: "Thank you for providing information"
utter_sure:
- text: "Sure, let me check..."
utter_details_thanks:
- text: "Thanks for providing the given details \nName: {Name},\nMobile Number: {Mobile_number}"
utter_play_cool_video:
- text: "Enjoy"
attachment: { "type":"video", "payload":{ "src": "https://youtube.com/embed/Ssvu2yncgWU" } }
utter_out_of_scope:
- text: Sorry, I didn't get what you said. Please rephrase what you said.
utter_city:
- text: "which city you want to check for?"
utter_temp:
- text: "Today's temperature is {temp} degree Celsius."
utter_bill_type:
- text: "What would you like to pay?"
buttons:
- payload: "/telephone_bill"
title: "Mobile"
- payload: "/utility_bill"
title: "Utility"
- payload: "/insurance_bill"
title: "Insurance"
utter_select_mobile_provider:
- text: "Select provider"
buttons:
- payload: "/dialog_bill"
title: "Dialog"
- payload: "/slt_bill"
title: "SLT/Mobitel"
utter_select_utility_provider:
- text: "Select provider"
buttons:
- payload: "/telephone_bill"
title: "CEB"
- payload: "/utility_bill"
title: "Water Board"
actions:
- action_submit
- action_video
- action_weather_api
# - action_service
- action_check_icu_vacant_beds
- action_check_non_icu_vacant_beds
forms:
user_details_form:
required_slots:
- name
- number
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true