cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThitChoLover
New Member

answering a value based on user input

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

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-autom...

 

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

View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

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-autom...

 

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

View solution in original post

I tried but got this errorboterror.png

Expiscornovus
Super User
Super User

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

it worked! Thank you so much

Helpful resources

Announcements
PVA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Top Kudoed Authors
Users online (2,127)