Chatbots often contain prompts to collect information during interactions with users or customers.
One thing to be aware of is that input collected in a prompt is paired against the user and conversation taking place. This means that once data has been collected in a prompt and assigned to a variable, the prompt wont be presented in the conversation.
In this How To, we see how to override this default behaviour to ensure that a prompt will always be presented in a conversation, regardless of whether or not the user has already answered the prompt.
First, let's look at an example of the default behaviour to see the default behaviour in action. In this example you can see a dialog EnsureBotAsksQuestion with in Intent Trigger "OrderDetected".
The utterance order food will trigger this intent. When the intent is detected, the user is asked for their food order. The order is then echoed back to them.
You can see this here:
When we run the above dialog, the interaction will behave as expected. If we supply the utterance order food for a second time however, whilst the intent will be detected, the chatbot won't present the prompt asking for the food order. It will bypass the prompt and echo back the previously input value.
The following video shows the above in action: