Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Prc5GEKSqJddwxPXsFX8Im
Copilot Studio - Topic Creation & Management
Suggested answer

Clear chat history for fresh chat

Like (0) ShareShare
ReportReport
Posted on 9 Dec 2024 10:09:59 by 43

Hi everyone,

I hope you're all doing well! We've recently created a copilot agent and have a query regarding its functionality. Currently, the bot is integrated with Teams, and while it's great to have a history of the questions asked, we were wondering if it's possible to clear the chat once the user doesn't have any more questions or wants to start a new question/topic. At the moment, there's no icon or button that allows the user to refresh and have a fresh start.

We believe it would be beneficial to tailor the experience for users who prefer a clean start when asking another question. Any insights or suggestions on how to implement this feature would be greatly appreciated!

Thank you!

Categories:
  • Sebbi3 Profile Picture
    43 on 10 Dec 2024 at 08:04:01
    Clear chat history for fresh chat
    @SaiRT14 Perfect thank you very much for this.
    Will look into it now.
  • Suggested answer
    Artur Stepniak Profile Picture
    1,521 Super User 2025 Season 1 on 10 Dec 2024 at 07:34:52
    Clear chat history for fresh chat
    Hello Sebbi3!
     
    That's the thing which I'd also like to have. Unfortunately the only option to implement it is like @SaiRT14 mentioned, so by creating a button from an adaptive card, for example with a topic redirect to start over. It's not the best approach as you'd need to know when the bot should sent a message like that.
    Moreover, the thing is that Teams chat is created so that it retains the chat history - bot is using the same interface so when you'd like to delete everything and start over, you'd need to drop previous chat and start over. Maybe in the future they'd alter the chat with bots and add a new chat button or something like that. But that's not a minor change - the API stores each chat as a separate entity with unique id, with history connected etc. So let's be paitient!
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
  • SaiRT14 Profile Picture
    1,966 Super User 2025 Season 1 on 09 Dec 2024 at 20:21:26
    Clear chat history for fresh chat

    I implemented a Reset Button option for the user, providing a clear and simple way to start fresh. This includes adding a specific command or button to the bot interface, such as: Command: "Start Over" or "Reset." Button: A prominently labeled button like "Clear Chat" or "New Session."

    Try the approach and let me know how it goes for you. 

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Loading started