for example i have this validate slot action:
def validate_has_ead(
self, slot_value: Any, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict
) -> Dict[Text, Any]:
last_intent_name = tracker.get_intent_of_latest_message()
if last_intent_name == "affirm":
return {"has_ead": True}
elif last_intent_name == "deny":
stop_bot_interaction(dispatcher, tracker)
return {"has_ead": False, "bot_active": False}
return {"has_ead": None}
If the user message a intent that is neither affirm nor deny, the bot asks for ‘has_ead’ again, with its response in yml.
But in this case, I would like the bot not to say it again, but only wait until the user says Yes or No, is this possible?