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:
- 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.
- 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."
- Use the following formula to handle the variable:
- If(IsBlank(Topic.Var2), "NA", Text(Topic.Var2))
- Ensure that the variable is set to Blank() before the question is asked to avoid unnecessary prompts for input.
