how will the bot able to return specific replies based on values of the same slot?
for example:-
story :-
##happy path service center enquiry
*greet
-utter_greet
*Service_Center_OR_Factory
-utter_city_name
*city_name
-utter_Service_Center_OR_Factory
the flow goes like this(after the initial greet):-
Customer :- where is the nearest service center?
Bot :- Which city are you from?
Customer :- I am from Bangalore.
Bot :- List of service centers in Bangalore :- <gives a list of service center based on customer’s city> .
relevant slots,entities,actions and templates in my domain.yml file :-
slots:-
customer_location:
type: text
workshop_location:
type: text
entities:-
- customer_location
- workshop_location
actions:-
- utter_greet
- utter_city_name
- utter_Service_Center_OR_Factory
templates:
utter_greet:
- text: “Hey, {PERSON}!This is Ollie,your assistant.How may I help you?”
- text: “Hi {PERSON}!I am here to help.Shoot!”
- text: “Hi,how can I help you?”
utter_city_name:
- text: “Which city are you from?”
- text: “Name of the city please?”
utter_Service_Center_OR_Factory:
- text: “Workshop is located at <relevant workshop locations based on customer’s city>”
relevant intents in my nlu.md file :-
intent:Service_Center_OR_Factory
- Where is your workshop?
- workshop located at
- location of workshop?
- where is your workshop located?
- May i know about your workshop location?
- where is the workshop situated?
- where is your service center located at?
- location of oppo’s service center?
- address of your service center?
- workshop near to me
- service center near to me
- service center nearby me
##intent:city_name
- I live in Delhi
- Kolkata
- My city is Gurgaon
- Lucknow is my city
- city is Faridabad
- The city where I live is Bangalore
- MY CITY MUMBAI
- I am from CHENNAI
How can i make the bot return a list of service centers based on the customer’s city?
Is there a way to map between the value of the customer_location slot and the relevant workshop_location ?
PS :- service center and workshop are same entity(workshop_location)