I am trying to print a slot type of list in bot utterance, it is printing successfully. But I need to format it.
Slot
slots:
hospital_list:
type: list
utter_list_of_hospital:
- text: Here are the available hospitals {hospital_list}
In the shell it prints,
Here are the available hospitals ['Oasis Hospital', 'Mediclinic Al Jowhara']
I am setting the slot hospital_list
using a custom action.
actions.py
def run(self,dispatcher,tracker,domain):
data_lst = ['Oasis Hospital', 'Mediclinic Al Jowhara']
return [SlotSet("hospital_list",data_lst)]
I need to print like
Here are the available hospitals:
* Oasis Hospital
* Mediclinic Al Jowhara
How can i do this?