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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Customize Chat Bot Sty...
Copilot Studio
Unanswered

Customize Chat Bot Styling with CSS

(0) ShareShare
ReportReport
Posted on by

Hi:

I am new to PVA chat bots.  I have a standard HTML5 page styled with CSS. Our PVA chat bot developer provided the bot HTML/URL:

<!DOCTYPE html><html><body><iframe src="https://web.powerva.microsoft.com/environments/myenvironmentnumber/bots/new_bot_mybotidnumber/webchat" frameborder="0" style="width: 100%; height: 100%;"></iframe></body></html>

I put that iFrame in my HTML and it works, but the styling does not match. We want to override the bot styling with .css to match our company page styling.  I tried following this article from Microsoft:  https://docs.microsoft.com/en-us/power-virtual-agents/customize-default-canvas which uses Javascript and directline to get a token. I added my bot ID and ran the page. The bot launches, but gets an "Unable to Connect" error.  When I take the directline URL+botid from the article code and put it in a browser, I get the following error:

{
"ErrorCode": 4103,
"ErrorMessage": "Bot with id mybotidnumber was not found.",
"DiagnosticsMessage": null,
"ErrorInfo": null
}

Any suggestions?

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hi, hoping this may help someone.  After reaching out to coworkers, we found that the bot id is a GUID missing the dashes. Once we added the dashes in this format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx the bot was found and rendered.

  • mr_dbc Profile Picture
    14 on at

    "We want to override the bot styling with .css to match our company page styling.  "

    are you able to override the default css by defining your own .css file?

  • hhimanshii Profile Picture
    4 on at

    Hi, please tell me from where are we getting the whole code of the pva bot.

     

  • mr_dbc Profile Picture
    14 on at

    Hi @hhimanshii , I'm afraid you can get the whole code of pva bot.

    Can you tell me what exactly do you intend to achieve ?

     

  • hhimanshii Profile Picture
    4 on at

    hello, i need to customize the ui of bot. How can I do that?

     

  • adilei Profile Picture
    on at

    Start by reading here and see if you have any specific follow up questions: https://learn.microsoft.com/en-us/microsoft-copilot-studio/customize-default-canvas?tabs=web

  • mr_dbc Profile Picture
    14 on at

    why did my comment got removed?

  • mr_dbc Profile Picture
    14 on at

    @hhimanshii 

    can you give me your email details , so that i can help  you  out?
    I'm not sure why my comment got removed 

  • rkirk2k Profile Picture
    282 on at

    I've figured out how to embed the bot into SharePoint using an iframe, but has anyone been able to customize the styling of the bot in SharePoint? 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard