Stop rasa shell (/stop) when intent bye is recognized

Hi everyone, I am working on a rasa chatbot project. I’m just wondering is there a way that we can stop rasa shell (instead of typing /stop) after the intent bye is recognized and the bot respone the utter_bye back. Thank you everyone so much!

Hey @lamnguyendnvncn , one way to do it would be that you create a custom action that is action_stop_rasa and in it you can define to exit the rasa shell in python, then you can register that action in your domain file and at the end you can then call that action in a story. Story can be something like

- story: close the shell
  steps:
  - intent: bye
  - action: action_stop_rasa
1 Like

Thank you!!