Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

PVA Clear / Reset Entity Value after use

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I am trying to recreate a bot in PVA from Bot Framework SDK and am stuck in a loop because PVA seems to be hanging onto an Entity.

 

Example to explain the scenario in the Bot Framework SDK:
User enters: "show me the rider details for Bernard Kerr"

  • The bot returns a card with the Bernard's details.

User then enters: "rider details for Aimi Kenyon"

  • The bot returns a card with Aimi's details. 

If the user enters: "show me rider details"

  • The bot returns the question, "What is the name of the rider?"

Creating this in PVA in the Topic I select "Skip the Question" so that the user is not asking "show me the rider details for Bernard Kerr" and then getting the response, "What is the name of the rider?" 

 

The Problem:

In the scenario above, how I have created this in PVA, if I enter:
"show me the rider details for Bernard Kerr" I get that fine.
When I then enter: "rider details for Aimi Kenyon" and I get Bernard's card again.

I assume that PVA is skipping the question the second time as the Entity is already populated, disregarding the fact the user input has changed.

So, how can I clear the variable held in the Entity at the end of the Topic, without showing any other messages from the bot.

Or is this just not possible yet?  

I could set the Topic to 'Ask the question every time', for the name Entity, but that looks horrible when the user has provided the name already.

 

Thanks.

 

Categories:
  • superBruni Profile Picture
    2 on at
    Re: PVA Clear / Reset Entity Value after use

    Hi @Shujaath_Khan apologies for the delay coming back, I have been out. Thanks for that - I did end the conversation but there was no way to do that without a poll, which I do not want, that's not a great user experience,

    show the me the details for rider A:

    > details A. Poll.

    show the me the details for rider B:

    > details B. Poll.

    It's the end of the dialog not the conversation, but I was looking at that as an option if it would reset the entity value, with asking the user other questions. It's a great thing to add at the end of a conversation but this would be at every stage of the engagement.

     

    I know that PVA won't be able to do everything the SDK can, it seems to be that entities / variable handling is one. 

  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at
    Re: PVA Clear / Reset Entity Value after use

    Hi @superBruni ,

    Hope you're ending the conversation once first topic is completed?

    There no method available to delete except set the value again for the entity

    Sample topic for ref. Here I've used built-in entity for person Name. 

     

    If not you can think of implementing using authentication if it's context driven

     

    Shujaath_Khan_0-1662103977393.png

    ref: https://docs.microsoft.com/en-us/power-virtual-agents/authoring-create-edit-topics

    Thanks

     

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