web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Bot displaying wrong c...
Copilot Studio
Answered

Bot displaying wrong conditional nodes

(0) ShareShare
ReportReport
Posted on by 221

Hi all,

 

weird situation - I have a bot that in the canvas visibly goes down the right nodes after a condition, but in addition, displays the message from the other branch of the condition:

 

canvas.pngconversation.png

 

Any ideas?

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Kikoger ,

     

    Did you try to reset the test chatbot?

    And after your action calling to Power Automate, which message do you show?

     

     

    ---

    Thanks!

    Renato Romão

    https://www.linkedin.com/in/renatoromao/

  • Kikoger Profile Picture
    221 on at

    Hi @renatoromao,

     

    yes, I did. I also published the bot and tested it in production - same behavior. It's most odd. I could of course just rebuild it, but I kind of rather understand what is happening. 😅

     

    Thanks!

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    😞 @Kikoger 

     

    Take a picture after this action, please.

     

    Annotation 2020-05-05 100051.png

  • Kikoger Profile Picture
    221 on at

    The remainder of the actions are not triggered, because it is waiting on the input for the question. 

     

     

    rest.png

     

    It's stuck here:

     

     
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Yes, the problem is here.

    You cannot call the Power Automate using the variable that not contains a value. Your variables are using in another node, you cannot send to Power Automate in this node.

  • Verified answer
    CleberM Profile Picture
    Microsoft Employee on at

    Hi @Kikoger ,

     

    I believe what's happening here is that the bot is trying to fill in the "VarSearchTerm" variable before passing it as an input to the Action in the last node. The only node that fills that variable is the one it's jumping to. Otherwise the value of "VarSearchTerm" would be undefined, and the bot does not send undefined variables (hence the behavior).

     

    This is a feature of the bot, where we try to fill the variable before using it. If you don't want this to happen, you would have to separate those two branches to call action with different variables, without using "VarSearchTerm" on the right side (the one you have highlighted).

     

    Let us know if this explains the behavior.

  • Kikoger Profile Picture
    221 on at

    Hi CleberM,

     

    thanks for the explanation - looks like thats it 🙂 I just assumed it would leave the variables as null and pass null values to Flow in the next step. A bit unfortunate I need to have a branch for a Flow action that really does the same thing as the other branch, but of course not an issue.

     

    Thanks again!!! 😊 

  • CleberM Profile Picture
    Microsoft Employee on at

    I'm glad to hear that was the issue @Kikoger.

     

    I'll take the feedback that this is not very clear, we might add extra documentation or UI hints about it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 115 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 83

#3
anirudhev Profile Picture

anirudhev 74

Last 30 days Overall leaderboard