Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

How to Handle Different Input Types in Power Virtual Agents

(0) ShareShare
ReportReport
Posted on by 392

Hello everyone,

I'm currently working on a feedback flow in Power Virtual Agents and need some assistance.

 

Jupyter123_0-1694497203583.png

In my flow, I'm asking the user a question: "Does that answer your question? If it does, please provide feedback on a scale of 1 (low) to 5 (best)."

If the user provides an integer value as feedback, the bot should respond with "Thanks for your feedback." and save the int value in a variable.

However, if the user inputs a string (for example, if they ask a question instead of providing feedback), I want to save the feedback as 0 score and then restart the flow from the top.

Could anyone guide me on how to implement this? Any help would be greatly appreciated.

Thank you in advance!

 

  • adilei Profile Picture
    on at
    Re: How to Handle Different Input Types in Power Virtual Agents

    In your question node, you can extract "user's entire response", and then check whether the response is numeric using a PowerFX formula.

     

    adilei_0-1696107764948.png

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard