def run(self, dispatcher, tracker, domain):
try:
museum_name = tracker.get_slot("museum_name")
if not museum_name:
dispatcher.utter_message("Which museum would you like to visit?")
else:
dispatcher.utter_message(f"You have chosen {museum_name}.")
return []
except Exception as e:
logger.error(f"Error in action_ask_museum: {e}")
dispatcher.utter_message("An error occurred. Please try again later.")
return []
The webhook issue is also there
class ActionAskMuseum(Action):
def name(self):
return “action_ask_museum”