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 / Bot icon is not visibl...
Copilot Studio
Unanswered

Bot icon is not visible on published website.

(0) ShareShare
ReportReport
Posted on by 110

Hi,

we implemented a virtual agent on our website based on the concept that the bot automatically starts the conversation when it is opened (https://docs.microsoft.com/en-us/power-virtual-agents/configure-bot-greeting). This work's fine.

The problem we have is that the bot's icon is not visible on our website, but in contrast to that it's showing just fine on the demo-website or in the virtual agent  

Website (live)Website (live)Preview in Virtual AgentsPreview in Virtual Agents

 

Any solutions or hints for this problem?

Thanks in advance!
Julian

Categories:
I have the same question (0)
  • Monkeyman Profile Picture
    325 on at

    Hey, where have you hosted the image? Is the image accessible from anywhere?

  • julianhoewel_95 Profile Picture
    110 on at

    The icon is hosted directly in virtual agents, nowhere else.
    As you see in my screenshots the icon is showing in the preview, but not on our website where the bot is embedded. 
    Unfortunately I don't have access to the HTML-Code, because our website is managed by an external company.
    Is it necessary to also upload the bot's icon into the website's html files?


  • Monkeyman Profile Picture
    325 on at

    Yes, I would try this.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @julianhoewel_95 ,

     

    If you use a custom canvas like the one in this page: https://docs.microsoft.com/en-us/power-virtual-agents/customize-default-canvas

    you can customize the bot and user bot.

     

    This is what I did:

     

     const styleSet = window.WebChat.createStyleSet({
    
     // Add styleOptions to customize Web Chat canvas
     bubbleBackground: 'rgba(250, 250, 250, 1)',
     bubbleFromUserBackground: 'rgba(250, 250, 250, 1)',
     rootHeight: '100%',
     rootWidth: '100%',
     backgroundColor: 'white',
     hideUploadButton: false,
     userAvatarBackgroundColor: 'white',
     botAvatarBackgroundColor: 'white',
    
     });
    
    // Set the avatar options. 
     const avatarOptions = {
     backgroundColor: 'white',
     botAvatarBackgroundColor: 'rgba(255, 255, 255, 1)',
     // accent: 'rgba(255, 255, 255, 1)',
     botAvatarImage: '../../chatbot/images/chatboticon.png',
     botAvatarInitials: 'Bot',
     userAvatarImage: '../../chatbot/images/chatboticonuser.png',
     userAvatarInitials: 'User',
    
     };
    
    fetch(theURL)
     .then(response => response.json())
     .then(conversationInfo => {
     window.WebChat.renderWebChat({
     directLine: window.WebChat.createDirectLine({
     token: conversationInfo.token,
     }),
     // webSpeechPonyfillFactory: window.WebChat.createBrowserWebSpeechPonyfillFactory(),
     // store: store,
     styleSet,
     styleOptions: avatarOptions
     },
     document.getElementById('webchat')
     );
     })
     .catch(err => console.error("An error occurred: " + err));

     

    I hope it helps.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 802

#2
Vish WR Profile Picture

Vish WR 331

#3
Haque Profile Picture

Haque 292

Last 30 days Overall leaderboard