⚙️ Copilot Studio Logic Builder

Add Conditions to Topics in Copilot Studio

Build intelligent conversation paths using conditional logic. Learn how to evaluate variables, create branching decisions, and design smarter chatbot experiences that adapt dynamically based on user data and real-time inputs.

Adding Conditional Logic to Topics in Copilot Studio
Conditions in Copilot Studio allow your chatbot to respond differently based on user data, context, or previously captured variables. Instead of a single conversation flow, conditions create dynamic paths that guide users to the most relevant response.
Example Scenario
If Condition
isClubMember = True → Offer discount
Else Condition
Otherwise → Show regular price
Why Use Conditions?
Personalize chatbot responses
Handle multiple user scenarios
Create dynamic conversation paths
Avoid creating duplicate topics
Steps to Add a Condition
Step 1
Open the topic where you want to apply conditional logic.
Step 2
Click the Add Node (+) icon and select Add a condition.
Step 3
Configure the variable, operator, and value for the condition.
Condition Structure
Condition Branch
Runs when the condition evaluates to TRUE.
All Other Conditions
Runs when the condition evaluates to FALSE.
Condition Components
Variable
Data that the chatbot evaluates
Operator
Rule used to compare values
Value
Target value used for comparison
Logical Operators
Equal To
Greater Than
Less Than
Contains
Is Blank / Not Blank
Combining Conditions
AND
All conditions must be true
OR
Any condition can be true
Multiple Branch Example
If number < 10 → Path A
Else If number > 50 → Path B
Else → Path C
Condition Evaluation
Conditions are checked from left to right.
The first condition that evaluates to TRUE is executed.
If none match, the "All Other Conditions" branch runs.
Handling Type Mismatches
If incompatible data types are compared (for example text vs number), Copilot Studio shows an error and provides a Fix Type Mismatch option to automatically generate a conversion formula.
Advanced Logic with Power Fx
You can switch to formula mode to define conditions using Power Fx. The formula must return a Boolean result (True or False).
Best Practices
Rename nodes for clarity
Keep logic simple
Test conversation paths
Use formulas only when needed