https://discord.gg/botpress logo
Botpress Webchat Not Loading Inside HTML <div>
# šŸ¤help
m
Hi, I’m trying to embed the Botpress webchat directly into a webpage using the instructions provided in the documentation here: https://botpress.com/docs/webchat/embedding-webchat#in-an-html-div , but I’m encountering an issue where the chat simply shows a blank screen. The floating action button and popup window modes work fine, so the webchat itself is functioning. The problem only occurs when I attempt to load it inside a on the page. Could you help me troubleshoot this issue? Thanks in advance!
p
I just reproduced the docs instructions and it works fine for me. Attached is my test file. If it still doesn't work, could you share your code or modify mine in the way you're doing it? Hope this helps! https://cdn.discordapp.com/attachments/1374105787713982536/1374389955857748018/test_website.html?ex=682ddfe4&is=682c8e64&hm=ec26e8813d2819082dbc0667cb63ce9db0f91b3634dd08ca8f02d88cad259495&
f
@User It doesn't show up on localhost; could that be the problem? Does it have to be uploaded to a cloud host? I also can't view it from an Azure blob (the chatbot). https://cdn.discordapp.com/attachments/1374105787713982536/1374417527060430908/image.png?ex=682df991&is=682ca811&hm=2c473cbaa9be926713da77e7a4a14aa7d07c0c25e855c7e64e7387bec8b2b8dd&
p
Ohh really? When you open the html in browser preview mode it shows up but not when running it on a server? If that's the case, I'll test further...
f
I have the same problem, wanting to implement the bot in a div, following the instructions. In the browser (F12) I don't see any errors... it’s as if everything loads correctly, but it’s not visible. I tried with your HTML code and with mine: Uploading the HTML to a blob in Azure Hosting it in the cloud Running it locally. I ran it through Chat GPT and it says everything is correct. I don’t understand what the problem is. Thanks!
m
@prehistoric-airplane-85682 i copied this code and opened it, it doesnt work, the only way i was able to get it to work is first remove the css styling reload the page open the chatbot by clicking the floating button, then add the styling back and reloaded. you can repoduce it by opening the html you sent in an incognito window. it will not show you the chatbot
l
having the same issue
doesn't run in Wordpress unless I am logged in no matter how I configure it
you have to click the button to launch it or run the open command in console, will not auto-open in a div for me
extremely frustrating
m
Any solution for this case ?
3 Views