How to change the slot or restart the slot in stories.md?

how to change the slot or restart the slot in stories.md? thx

- reset_slots

import this as well from events from rasa_core_sdk.events import AllSlotsReset

ok,thx. @ashukrishna100 ,can be used in stories.md directly? like, ‘’

  • utter_goodbye
  • reset_slots "

yeah it will work provided you import all required modules. Additionally u can create your own slot reset action and then mention in the stories.

`class ActionSlotReset(Action): 	
def name(self): 		
    return 'action_slot_reset' 	
def run(self, dispatcher, tracker, domain): 		
    return[AllSlotsReset()]`

thx~very kind of you ~

1 Like