dialogflow azure framework composer

Khalil Hakim 0 Reputation points
2025-02-06T09:24:08.7+00:00

I am currently creating a chat bot to assist with dealing with support issues for the portal i am working on. I am currently experiencing i issue with the dialog flow branch if/else command. based on the users response being yes then the response should be ok great. if the users response is no then the response should be please contact OWL support. if i enter yes or no i keeping getting the response ok great, which should only happen if the user enters yes.

User's image

I was wondering if anyone was able to help me with solving this problem?

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
898 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kothapally Snigdha 1,590 Reputation points Microsoft Vendor
    2025-02-07T00:34:31.3066667+00:00

    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:

    1. 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".
    2. 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").
    3. 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.
    4. 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.
    5. 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.