Skip to main content

Notifications

Copilot Studio - General
Answered

Condition Failed with Entity

Posted on by

So I customized an entity with two choices and use the condition "All other condition" as a "else" in my PVA.

However, when I type anything other than the two choices I have, it never execute the branch of  "All other condition."

Is there a reason for this??

 

Chia

Categories:
  • Verified answer
    renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: Condition Failed with Entity

    Yes, I got it!

    For example:

     

    Entity 1 - Products - rice, bread,..

    Entity 2  - Money - $1000, $5000,...

     

    Question 1 - What is the product? (entity 1)

    Question 2- Ok, how many you will expend? (entity 2)

    Message - Thanks, you selected VarProduct and VarMoney

     

    Bot: "What is the product? "

    User: "I want a rice less than $1000"

    Bot: "Thanks, you selected rice and $1000"

     

    The PVA bot will recognize these two questions.

    @Anonymous 

  • Re: Condition Failed with Entity

    @renatoromao 

    Thank you, but I mean that STEM is another customized entity, not a different predifine phrase under the same entity with Bio.

  • renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: Condition Failed with Entity

    @Anonymous ,

     

    You're welcome! 🙂

     

    You can categorize two categories at the same time, but not one behind another.

    Follow the documentation to understand better about the two entities in the same message: Create and use entities - Power Virtual Agents | Microsoft Docs

  • Re: Condition Failed with Entity

    Thank you very much, but I have one more question to ask here:

    Is there a way that I can use one entity to categorize another entity?

    For example,

    Biochem is under Bio(entity1) and Bio is under STEM(entity2).

    @renatoromao 

  • Verified answer
    renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: Condition Failed with Entity

    I recommend you to create all options (5, 6, ...10, or how many you want) that your user maybe will say when will talk to the bot, but display 2 or 3 options in the chat.

    Create a condition for your 2 or 3 options that you display, and create "all conditions" to other options.

     

    @Anonymous 

  • Re: Condition Failed with Entity

    @renatoromao 

    So in my case, I need to predifine all other majors as "other majors" in my entity, in order to do the filter job? Is there any other options?

  • Re: Condition Failed with Entity

    Oh, it couldn't execute the "all other condition."

    @renatoromao 

  • renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: Condition Failed with Entity

    Hi @Anonymous ,

     

    When you are working with an entity, you define some fixed values to the user.

    Also, you can use conditions for each option, but it's not available yet to receive a different value than options pre-defined.

     

    You can create an artificial intelligence in your bot adding some similar options, this intelligence will help you to simulate some different scenarios. Take a look at a Money entity (is defined by Microsoft)

    Also, you can see this documentation: Create and use entities - Power Virtual Agents | Microsoft Docs

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard