cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Manar
Level: Power Up

Embed chatbot in Powerapps portal as collapsible window

Hey there,
The only option the chatbot can be displayed in website is as ifrmae which is very poor experience as I see advanced websites has collapsible bar that stick to the window. How can I modify it to make it modern?

I am using Powerapps portal and added chatbot to it page but it looks silly and need to code it to be useful.
Thanks
4 REPLIES 4
micchow
Level: Powered On

Re: Embed chatbot in Powerapps portal as collapsible window

Thank you for the suggestion!  We are aware iFrame comes with its limitation and will look into an improved no-code experience.  

 

For the time being, it will require custom code on your website for a collapse/expand chat window experience.

renatoromao
Level: Powered On

Re: Embed chatbot in Powerapps portal as collapsible window

Ashish2012
Level 8

Re: Embed chatbot in Powerapps portal as collapsible window

jpirelli
Level: Powered On

Re: Embed chatbot in Powerapps portal as collapsible window

I was able to get working but needs a but of tidying up. If you use the code there but alter this div, you can get your chat to work in the popup (correct the guid for your bot also)

 

<div class="chat-popup" id="myForm">
  <iframe src="https://powerva.microsoft.com/webchat/bots/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" frameborder="1" width="300px" height="350px" onresize="this.style.height=this.contentDocument.body.scrollHeight +'px';" target="assets">
</iframe><br> <form class="form-container">
    <button type="button" class="btn cancel" onclick="closeForm()">Close</button>
</div>

 

The rest of the code is default from the link. I think the bottom line is that the bot can be embedded in many ways as you see fit.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,617)