At the end of a flow, often an API backend call will be configured to perform an action, for example saving the ordered train ticket in a ticket ordering system. Afterwards users should be able to book a ticket again to a different location.
Therefore we need to remove all related session data from the user his session. You can use the Clear Session plugin to accomplish this.
Add an Action
Add a clear session component to this action bot dialog.
Save it and test this in the emulator to confirm that the session variables are removed after the user has been redirected to this bot dialog.
The next tutorial teaches us how to redirect the user to a specific dialog state depending on the conditions on the values in session variables.