Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Issue with Condition in Power Virtual Agent

(0) ShareShare
ReportReport
Posted on by 7

Hello Team,

 

I'm new to Power Platform and learning PowerVA

 

My chatbot is not functioning properly.

Please refer the screen shot 

After user choose one option the flow should start

However chatbot is again giving option to the user, instead of going forward.

 

Please refer screenshot

Canvas1.gif

Canvas2.gif

Chat.gif

flow.gif

@Anonymous @Chatbotdev 

Categories:
  • AshishJaiswal Profile Picture
    7 on at
    Re: Issue with Condition in Power Virtual Agent

    Wow !!!

     

    This was superb !! you just made my day @Jcook 

  • nmk Profile Picture
    193 on at
    Re: Issue with Condition in Power Virtual Agent

    Nope, you don't need to create 3 flows. Just one flow and call it in a 3 separate conditions

  • Verified answer
    Jcook Profile Picture
    7,770 Most Valuable Professional on at
    Re: Issue with Condition in Power Virtual Agent

    Hi @AshishJaiswal 

     

    I have found success using separate Topics. This will also improve your Bot.

     

    For example I have created a Main topic where the User chooses the Category, this variable is a Global Variable to allow any topic to use it:

    Jcook_0-1606928705359.png

     

    Then, I have the Branches redirect to a secondary topic depending on the Choice:

    Jcook_1-1606928781658.png

     

    For example, my VM topic looks like this:

    Jcook_2-1606928882085.png

     

    And my Software Topic looks almost the same:

    Jcook_3-1606929019976.png

     

     

    And lastly here is my Flow:

    Jcook_4-1606929108057.png

     

     

    Testing the bot:

    VM--

    Jcook_5-1606929197869.png

     

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Issue with Condition in Power Virtual Agent

    Hi @AshishJaiswal ,

     

    I'm sending this message just to complement the @Jcook  answer. (he is right)

     

    First, it's very import for our community, your vote in this idea: Allow PVA to send 'NULL' values to Power Automate - Power Platform Community (microsoft.com) 

    This idea will fix your issue in the future.

     

    Second, as @Jcook said, you can create 2 variables inside your workflow (Power Automate), UserChoice and Input.

    In your PVA topic, you will call an action for each condition (today you have 3 conditions) using the same workflow but instead of sending all questions to your workflow, you will send only the Choice selected and the respective question above. (Name of Software, etc..)

     

    Today, you cannot send empty variables, so when you will the same way that you created, automatically the chatbot will send the empty question to the user.

  • AshishJaiswal Profile Picture
    7 on at
    Re: Issue with Condition in Power Virtual Agent

    @Jcook ,

     

    That means, I will need to create 3 different flow then

     

    One for each condition that user chooses - correct ?

     

    Or is there a way to fetch answer for all option using one flow ?

  • Jcook Profile Picture
    7,770 Most Valuable Professional on at
    Re: Issue with Condition in Power Virtual Agent

    Hello @AshishJaiswal 

     

    It looks like this is happening because you are passing in all the inputs into Power Automate (User Choice, IP Address, Software Name, Transport Area).

     

    You will need to only have a User Choice, and a Input variable which you can store the users answer to pass into Power Automate.

     

    For example:

    User Choice: IPAddress

    varInput: 192.168.1.1

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard