Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Answered

answering a value based on user input

(0) ShareShare
ReportReport
Posted on by 8

Hi guys I'm trying to use the bot to walk users through a troubleshooting process. It goes something like this

 

does your product have high or low concentration

high/low each leads to a branch with different directions

I can get to this but is there a way for the user to input the amount of product and PVA will give them an answer of what to do?

example:

low concentration>

PVA: what is your product amount in grams

500

PVA does a calculation (500 * 6%) and tells the user to add in that much (30) of a product (6% is a constant number for products with low concentration)

 

thanks

 

  • ThitChoLover Profile Picture
    8 on at
    Re: answering a value based on user input

    it worked! Thank you so much

  • Expiscornovus Profile Picture
    31,797 Most Valuable Professional on at
    Re: answering a value based on user input

    Hi @ThitChoLover,

     

    It looks like you added the expression as regular text instead of into the expression editor. If it is recognized as expression you should see an fx icon in front of it when editing.

     

    Below I have created an example of the same calculation in a topic.

     

    The flow with the same function.

     

    mul_function.png

     

    The bot in the authoring canvas.

     

    example_calcbot.png

  • ThitChoLover Profile Picture
    8 on at
    Re: answering a value based on user input

    I tried but got this errorboterror.png

  • Verified answer
    Expiscornovus Profile Picture
    31,797 Most Valuable Professional on at
    Re: answering a value based on user input

    Hi @ThitChoLover,

     

    You could do the calculations via a Call action and a Power Automate flow. In Power Automate there are functions like div (divide) and mul (multiply).

     

     

    @rishona_elijah recently written a nice blog about calculations. Have a look at that one as a starting point:

    https://powerusers.microsoft.com/t5/Power-Virtual-Agents-Community/Use-Power-Virtual-Agents-to-automate-calculations/ba-p/1264417

     

    If you need any additional help setting it up let us know here.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 132

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 81 Super User 2025 Season 1

#3
Pablo Roldan Profile Picture

Pablo Roldan 61

Featured topics