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 / Adding a Bot to ShareP...
Copilot Studio
Answered

Adding a Bot to SharePoint with Custom Styling

(0) ShareShare
ReportReport
Posted on by 282

Through much trial and error, I have found a way to embed my bot into SharePoint without being restricted to an iFrame.

 

I followed instructions at https://learn.microsoft.com/en-us/microsoft-copilot-studio/customize-default-canvas to create a page with the correct code to render my chatbot, then uploaded it as an ASPX page to SharePoint.

I then used the "Embed" web part to render the ASPX page.

The custom color or the header is correct, but the settings under the constant styleOptions don't seem to be working.

 

I have the following section in the page for styling (the upload button IS hidden, but the avatar images I'm referencing are not showing)...

const styleOptions = {
 // Hide upload button.
 hideUploadButton: 'true', 
 botAvatarBackgroundColor: '#FFFFFF',
 botAvatarImage: 'https://myDomain.sharepoint.com/Shared%20Documents/WAlterLogo.png',
 userAvatarImage: 'https://avatars.githubusercontent.com/u/661465'
};

 

Categories:
I have the same question (0)
  • Verified answer
    rkirk2k Profile Picture
    282 on at

    For some reason, the botAvatarImage will not display unless I add the property...

    botAvatarInitials: 'WA',

     

    I got this working by using...

    const styleOptions = {
     // Hide upload button.
     hideUploadButton: 'true', 
     botAvatarBackgroundColor: '#FFFFFF',
     botAvatarImage: 'https://myDomain.sharepoint.com/Shared%20Documents/WAlterLogo.png',
     botAvatarInitials: 'WA',
    };

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 168

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
Arild Aarnes Profile Picture

Arild Aarnes 56 Super User 2026 Season 1

Last 30 days Overall leaderboard