web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Power Virtual Agents: ...
Copilot Studio
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:
I have the same question (0)
  • Mai_Nguyen Profile Picture
    on at

    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. 

  • MattJimison Profile Picture
    577 Most Valuable Professional on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard