What I’m trying to do is something like this:
class ActionCustomFallback(Action):
def name(self) -> Text:
return "action_default_ask_affirmation"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
last_intent_name = tracker.latest_message['intent']['name']
if last_intent_name == "A":
message = "Did I get this right? You want A?"
elif last_intent_name == "B":
message = "Did I get this right? You want B?"
dispatcher.utter_message(message)
return [UserUtteranceReverted()]
But when I return to last UserUtterance, the user will affirm/deny but the fallback will not be called of course. So isn’t there a possibility to ask affirmation within the customized fallback action?