Skip to main content

Notifications

Community site session details

Community site session details

Session Id : IJujwqT7INB+6+Iy5D63eH
Copilot Studio - General
Answered

How to detect entities from trigger phrases

Like (0) ShareShare
ReportReport
Posted on 17 Jul 2020 14:57:58 by Microsoft Employee

Folks, is there a way to do entity detection on trigger phrases in a topic? For example, I would like to be able to ask the agent something like "What is the capital of Peru?", and the agent should detect the entity "Peru" from the trigger phrase.

 

This is something that I am able to do with the Microsoft Bot Framework, but it seems like in Power Virtual Agents you first need to frame your need to the agent, e.g. "I need to know the capital of a country/region", before you can get into a more specific dialog where the agent then prompts "Sure, for which country/region?", and then read the answer from the user .

 

Any tips on how to achieve this are much appreciated, although it looks like it is not supported.

Categories:
  • adafieno Profile Picture
    Microsoft Employee on 10 Feb 2021 at 19:21:45
    Re: How to detect entities from trigger phrases

    @renatoromao, I wonder if you have an actual implementation of your proposed solution that you can share.  It sounds good in theory but, how do you even get the LUIS endpoint information to connect from Power Automate? The topic then needs to be either pretty global or have triggering phrases for every specific item that PVA cannot identify.

  • Community Power Platform Member Profile Picture
    on 22 Sep 2020 at 14:20:37
    Re: How to detect entities from trigger phrases

    Hi @renatoromao 

     

    I have the same issue right now with PVA and I am using power automate to connect to LUIS to find the entity from the trigger phrases. But I am not able to initiate an action with the first statement that the user says to the bot. For example, if you see the below authoring canvas 

    Capture.PNG

    when the user types I need some data, then the topic gets activated and then the questions pops up asking 'what data you want?'. If the user says 'grant data', then power automate will call LUIS app and get the entity 'grant' extracted from the user input. This is a good scenario.

     

    but if the user types in 'I want grant data', I need the bot to directly connect to LUIS app and fetch me the entity 'grant' from the user input. Instead the bot will ask me the question 'what data you want?' again. This is not a good scenario. To avoid this, we need to be able to activate LUIS app with the trigger statement itself and if there is no entity to be found in the statement, then the bot should ask for ' what data you want?'. How do I make this happen? it looks like there is no way to capture the user input that triggers the topic and send it to LUIS app as input.

     

    Please help. 

  • adafieno Profile Picture
    Microsoft Employee on 20 Jul 2020 at 16:16:57
    Re: How to detect entities from trigger phrases

    Thanks again for your help, @renatoromao

    Although a bit convoluted, and perhaps not the best for performance, your workaround solution works. I have used LUIS directly, before, from a bot I created rom scratch using the Microsoft Bot Framework.

     

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on 20 Jul 2020 at 03:06:02
    Re: How to detect entities from trigger phrases

    Hi @adafieno ,

     

    As @AkashJain  said, it's not possible yet. You can create an idea here: https://aka.ms/pva/community/ideas

    And you can use a workaround using PVA calling Power Automate and your workflow connect with https://www.luis.ai/ (LUIS). The LUIS can understand your country and return to Power Automate and after Power Automate sends it to PVA.

  • AJ-22040756-0 Profile Picture
    on 17 Jul 2020 at 16:26:24
    Re: How to detect entities from trigger phrases

    Hi Partner

     

    As far as I know, unfortunately this is not possible for now with PVA

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Ekta Gupta Profile Picture

Ekta Gupta 4

#2
ricardodesouza Profile Picture

ricardodesouza 2

#2
L-1234567-0 Profile Picture

L-1234567-0 2

Overall leaderboard