Hai i want to generate a new story if user say ‘no’, any solution?
# validate product type
if intent_name == 'intent_no':
# Generate New Story
dispatcher.utter_message(response='utter_offer_help_again')
return {"requested_slot": None, "ENT_FRUIT": None, }
else:
# Continue Story
if fruit in ['apple', 'mango', 'grapes']:
return {"ENT_FRUIT": fruit }
else:
dispatcher.utter_message(response='utter_sorry')
return {"ENT_FRUIT": None}