Hello People,
My first post,…
I am trying a develop a bot that will connect to an excel database and answer questions. The excel has hospital ward bed occupancy details. The hierarchy is hospitals >> wards >> bed with their status ( occupied and available) there are three scenarios I am trying to create
-
User asks for occupancy for a hospital then bot will aggregate and return the number of occupied beds
-
Then user might ask for a specific ward ( if he has already queried for the facility then the ward in that facility)
-
User might directly ask for a ward in facility or if he has not queried any facility before then he has to supply both the ward and facility
I am able to achieve scenario 1; can you help me with scenario 2 and 3; Please find nlu the stories that I had created but does not work for scenario 2 and does not work well for scenario 3
NLU:
intent:find_occupancy
- could you tell me the occupancy?
- can you tell me the occupancy?
- can you give me occupancy details
- I want to know the occupancy for a facility
- whats the bed status
- can you give me the bed status details?
- can you give me the bed status?
- I want to know the bed status for a facility
intent:find_occupancy_facility
- I want to know the occupancy details for Al Dhaid
- can you give me the bed status for Al Amal?
- I want to know the bed status for Dibba
- I need to the bed status details for Al Fujairah
- Al Kuwait bed occupancy details
intent:find_occupancy_for_ward
- I want to know the occupancy details for Isolation ward in Al Dhaid?
- for Isolation ward in Al Dhaid I want to know the occupancy details?
- for Al Dhaid can you give me the occupancy details for Isolation details?
- can you give me the bed status for Female ward in Dibba
- I need to the bed status details for Male Detox ward
- get me the ward deatils for Male Medical ward
- Neonatal Intensive Care Unit/Special bed occupancy details
- Neonatal Intensive Care Unit bed occupancy details
- can you give me the ICU occupancy details
- can you give me the Intensive Care Unit occupancy details
- bed occupancy details of Pediatric ward
Story:
greet path
- greet
- utter_greet
say goodbye
- goodbye
- utter_goodbye
user asks for bed status
- greet
- utter_greet
- find_occupancy
- utter_ask_facility
- facility_info
- utter_finding_bed_status
- action_show_bed_status
- thanks
- utter_welcome
- utter_goodbye
user asks for bed status for location
- greet
- utter_greet
- find_occupancy_facility
- utter_finding_bed_status
- action_show_bed_status
- thanks
- utter_welcome
- utter_goodbye
user asks for bed status for ward
- greet
- utter_greet
- find_occupancy_for_ward
- utter_ask_ward
- ward_info
- utter_finding_bed_status_ward
- action_show_bed_status_ward
- thanks
- utter_welcome
- utter_goodbye
user asks for bed status for ward and facility
- greet
- utter_greet
- find_occupancy_for_ward
- utter_finding_bed_status_ward
- action_show_bed_status_ward
- thanks
- utter_welcome
- utter_goodbye