Skip to main content

Notifications

Building Copilot Studio Chatbots in Microsoft T...
Answered

answering a value based on user input

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
    ThitChoLover 8 on at
    Re: answering a value based on user input

    it worked! Thank you so much

  • Expiscornovus Profile Picture
    Expiscornovus 29,254 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
    ThitChoLover 8 on at
    Re: answering a value based on user input

    I tried but got this errorboterror.png

  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 29,254 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.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics