Hi Khalil Hakim
Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.
I understand that your facing an issue with the conditional logic in your dialog flow for the chatbot. In Bot Framework Composer, you can implement branching logic using the "If/Else" condition to handle user responses correctly.
Here are a few steps you can take to troubleshoot and fix the issue:
- Ensure that the condition for your "If" statement is correctly checking the user's input. It should explicitly compare the user's response to "yes" or "no".
- Make sure you are using the correct method for string comparison. For example, if you're using a variable to capture the user's response, ensure that you are comparing it correctly (e.g.,
userResponse == "yes"
). - Add logging or debugging statements to see what value is being captured in the variable that holds the user's response. This can help you verify if the input is being captured as expected.
- Test the flow with various inputs to see if the issue persists with different responses. This can help you identify if the problem is with specific inputs.
- Ensure that the dialog structure is set up correctly, and that the branches for "yes" and "no" are properly configured.
I hope these helps you. Thank you.