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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / On custom website page...
Copilot Studio
Unanswered

On custom website page refresh, the chatbot messages is not getting cleared

(0) ShareShare
ReportReport
Posted on by 71

On custom website page refresh, in the embedded chatbot from copilot studio, chatbot's messages are not getting cleared and holding all the previous chat flow. How to clear it up?

I have the same question (0)
  • remidyon Profile Picture
    Microsoft Employee on at

    Hi @Karishma2805998 

    Page refresh does not create a new chatbot session, you have to end the session within your custom implementation (default chatbot canvas does not support clearing the session).

    See doc: Add a copilot to mobile and web apps - Microsoft Copilot Studio | Microsoft Learn

  • amitmitra14 Profile Picture
    6 on at

    How to show copilot chat bot as a collapsible window on the bottom right corner?

     

    Is there a way to show the chatbot on the bottom right corner and in collapsed mode.

  • remidyon Profile Picture
    Microsoft Employee on at

    Hi @amitmitra14 

    You will have to write your own custom javascript and use the iframe sample here: Configure a copilot for a live or demo website (contains video) - Microsoft Copilot Studio | Microsoft Learn

     

    You can also check out this documentation page: Add a copilot to mobile and web apps - Microsoft Copilot Studio | Microsoft Learn

  • amitmitra14 Profile Picture
    6 on at

    Thank you for your quick reply.

     

    can you please provide sample custom javascript code snippet for us to start with? We are new to this copilot studio.

     

    another question, we have a similar bot created through omnichannel and it is providing the embedded code with javascript. Why there are difference between omnichannel and copilt?

  • remidyon Profile Picture
    Microsoft Employee on at

    Hello @amitmitra14 

    If you are new, I recommend you start by reading the documentation: there are plenty of code examples there and on our github repo: microsoft/CopilotStudioSamples (github.com)

     

     

  • amitmitra14 Profile Picture
    6 on at

    another question, we have a similar bot created through omnichannel and it is providing the embedded code with javascript. Why there are difference between omnichannel and copilt?

  • remidyon Profile Picture
    Microsoft Employee on at

    @amitmitra14 Omnichannel widget support hand off to live chat where Copilot Studio widget is just for chat. 


    Copilot studio also provide the integration code sample (in the website channel) - it just does not include the code to minimize / maximize but this is fairly easy to do for any javascript developer during integration.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 410

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 160 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 63 Super User 2026 Season 1

Last 30 days Overall leaderboard