
Announcements
You're deploying a Copilot Studio bot on a custom Power Pages site and want to add functionality for minimizing or closing the chatbot—something not included by default in the embed code. This is a common need for improving user experience, especially in public-facing or instructional environments like yours.
The most effective approach is to wrap the Copilot embed code in a custom floating widget that includes minimize and close buttons. This allows you to control visibility and interaction without modifying the bot itself.
A helpful example is shared in the Power Platform Community forum:
Minimizing the Bot on a Website
It shows how to use a custom canvas or static HTML page to render the chatbot as a floating widget with minimize functionality.
You can embed the bot using an <iframe> or <div> and add JavaScript to:
localStorage or sessionStorage to remember user preferencePosition the bot in a corner of the screen and style it with rounded edges, shadows, and transitions to make it feel native to your site.