Hi ,
I have different leave type which are captured by NLU, Now I want to create form actions for which i want to map the leave_type with leave_type_ID as below . I have created a slot for it , But as there are 3 parts in form actions 1] required_slots, 2] slot_mappings , 3] validate_cuisine. I am not sure on how to do this.
I am trying to do the below in def validate_leave_type . I am not sure is it right i wan leave_type_id to run a wsdl service
leave_type_maping ={
"earned_leave":"1",
"casual_leave":"2",
"leave_without_pay":"3",
"maternity_leave":"4",
"paid_leave":"5",
"sick_leave":"6",
"paternity_leave":"7",
"short_leave":"8",
}
leave_type_id = leave_type_maping[value]
Also if the above is need to be done in slot_mappings please share the code on how to do
Thank you Aashay