I have a slot that loan_type and also have FormValidation. Here check with DB and return slot_valueif form success or return utterance utter_no_resultif the form fails and here if form validation fails it should ignore re-asking the slot and utter another utterance after the utter_no_result
yes! I am able to fetch the values from loan_db. But this code didn’t work.
requirement:
If the slot value in loan_db (if validation success) it should return the slot value return {"loan_type": slot_value} and if the slot value not in list(loan_db().keys()) (if the validation fail) the bot should say utter_no_result and utter_goodbye and bot should avoid asking to fill the slot again i.e., it should avoid utter_ask_{slot}.