Views:

Applies to Product - Microsoft Copilot Studio

What’s happening?
Customers are unable to filter out variables with no values in a chatbot, leading to unnecessary prompts for input and looping back through the chatbot.
 

Reason:
This is recognized as a by-design behavior of the chatbot, particularly related to the handling of choice data types and the conditions set within the chatbot's flow.
 

Resolution:

  1. Implement a "Set variable value" action in the branch where the variable is expected to be blank. This action should be placed before the question in the branch.
  2. In the question node that asks for the value of the variable in the Yes branch, set the question node behavior to "Ask every time."
  3. Use the following formula to handle the variable:
  4. If(IsBlank(Topic.Var2), "NA", Text(Topic.Var2))
  5. Ensure that the variable is set to Blank() before the question is asked to avoid unnecessary prompts for input.
This workaround allows the chatbot to handle cases where variables may not have been set, thus preventing the looping behavior.