I have a bot that asks a user a series of question and then does a custom action where that action is to do some database query. If there is a result then the bot will display the result to the user and the conversation can continue further.
What I’d like to do is if the query does not have any results, I’d like the bot to utter something like “sorry, no results found” and end the conversation. I’m not sure how to implement this feature. I was thinking of creating a custom slot type that tracks whether the query returned a result and create stories where the value of that slot type is “True” (i.e. the query did return some result) and “False”, similar to this example in the documentation.
Is this the way to go or are there better alternatives?