Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Power Virtual Agents: is there a way to end the chat so that customers cannot enter additional inputs in the chatbot to continue the conversation?

(0) ShareShare
ReportReport
Posted on by 40

Hello Community,

 

Is there a way to configure a Topic or something in Power Virtual Agents, so that after the customer has provided the information to the chatbot, the chatbot will end and close the conversation automatically, and the customer won't be able to enter anything in the chat again?

 

I found this similar post here (https://powerusers.microsoft.com/t5/General/Ending-a-chat-no-more-inputs/td-p/1723473), but without any suggested solutions. Wondering if this is even possible?

 

Thanks!

Categories:
  • MattJimison Profile Picture
    577 Most Valuable Professional on at
    Re: Power Virtual Agents: is there a way to end the chat so that customers cannot enter additional inputs in the chatbot to continue the conversation?

    I'm not sure you'd want to do this, but if you wanted to ensure certain users couldn't use the bot, yet you couldn't handle that via the Share permissions, you could do something like this:

     

    1. Create a new topic called "EnsureUserIsNotBanned"
    2. In that topic call a Power Automate Flow called "IsUserBanned", passing the user's ID or email address, to check a list of banned users (i.e. maybe you store them in Dataverse or SharePoint Online) and return true or false to indicate if they're banned (wherever in your bot you want to ban a user, you'll also need a Flow call to add the user to the banned list)
    3. Set a Global variable "IsBanned" bounded to the output of the Power Automate flow
    4. Add a condition after the flow saying if the user is banned, to "End all Topics"
    5. Call this topic via "Go to another topic" at the top of all of your topics so that no matter what a user does, this check runs and you kill the conversation when they've been banned.
    6. To reduce unnecessary calls during the session, do a condition at the top of this topic to see if IsBanned is blank, so that if you already know they're banned or not, you don't have to check and call the Power Automate flow
    7. Users who aren't banned continue to use the bot; those that are banned cannot

    Having said all of the above, while its workable, again, I'm not sure if you'd want to do it 😜

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • Mai_Nguyen Profile Picture
    on at
    Re: Power Virtual Agents: is there a way to end the chat so that customers cannot enter additional inputs in the chatbot to continue the conversation?

    You can end the conversation or reset the conversation by using system topics; please refer to https://learn.microsoft.com/en-us/power-virtual-agents/authoring-system-topics?tabs=webApp#end-of-conversation for more information. As for blocking the customer from entering anything in the chat window, this is not a feature of 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

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
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard