Can I exit story based on flag in (not user input)

Hi all, hope everyone is well.

I have a story which triggers a custom action that I have, which in turn makes an authentication REST call to an external API, with some credentials.

My question is, am I able to exit the current story Iā€™m in, if the authentication fails (or any other reason).

In simple, is there a programmatic way of exitting my current story path from inside

Help is appreciated :slight_smile:

Many thanks.

You might set a boolean slot based on the outcome and use that to control the flow of the conversation

1 Like

@IgNoRaNt23 Thank you!