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 / answering a value base...
Copilot Studio
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

 

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,742 Most Valuable Professional on at

    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.

  • ThitChoLover Profile Picture
    8 on at

    I tried but got this errorboterror.png

  • Expiscornovus Profile Picture
    33,742 Most Valuable Professional on at

    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

    it worked! Thank you so much

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 123

#3
chiaraalina Profile Picture

chiaraalina 33 Super User 2026 Season 1

Last 30 days Overall leaderboard