https://discord.gg/botpress logo
Embed Issue
# 🤝help
t
As per the guidelines: 2 a) Objective is to achieve some form of successful html embed b) not entirely sure, because the embed code I doesnt throw any errors. Neither does it show the chatbot. c) -I AM able to insert the chatbot directly via an html however i cannot seem to get the embed codes in the documentation to work. -The popup widget does work. - Ive tried several browsers, sticking with Micro edge because it seems to be the friendliest with botpress. - Currently trying to get the embed function to work at all using the suggested methods with no success. d) Context: I am working within microsoft edge Version 138.0.3351.83 (Official build) (64-bit) with botpress which i have been told is good because its on chromium. Searching through these discord threads i see there is a recurring problem with the html embed function, but what i gather from other threads is "it doesnt work on desktop, but does on mobile" or "it works sometimes on desktop." What i am seeing is blank on both mobile and desktop. This in conjunction with absolutely zero error messages leaves me for a blank on what i can even do. Any advice is much appreciated. Thanks in advance! https://cdn.discordapp.com/attachments/1394385574550442206/1394385574747439104/image.png?ex=68769e43&is=68754cc3&hm=f182b8d85ec30c804c183f1f025f8aabdad2bc4f280075988891193a39624590&
@wooden-beard-40210 Here is the full code from the pic above. Let me know if you can solve the riddle! : Botpress Embedded Webchat /* Make the container fill the viewport (optional) */ html, body { margin: 0; padding: 0; width: 100%; height: 100%; } /* Your chat container */ #webchat-container { position: relative; width: 100%; height: 100%; } /* Hide the floating button */ .bpFab { display: none !important; } /* Force the iframe to fill your container */ .bpWebchat { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; } window.botpress.on('webchat:ready', () => { // Open immediately instead of floating button window.botpress.open(); }); window.botpress.init({ "botId": "6599a15a-0576-4659-bd81-075627511a6e", "configuration": { "version": "v1", "website": {}, "email": {}, "phone": {}, "termsOfService": {}, "privacyPolicy": {}, "color": "#3276EA", "variant": "solid", "headerVariant": "glass", "themeMode": "light", "fontFamily": "inter", "radius": 4, "feedbackEnabled": false, "footer": "[âš¡ by Botpress](https://botpress.com/?from=webchat)" }, "clientId": "b83f5cb1-4a76-4585-a32f-0d8fd7c1c597" });
w
you want to have it in full screen right ?
cannot send the whole code as it it too long
i'm gonna send a file
t
@wooden-beard-40210 I'll test it here a in a minute...
t
@wooden-beard-40210 No luck. Same issue as before, no bot, no error codes firing. It makes it incredibly difficult to troubleshoot. https://cdn.discordapp.com/attachments/1394385574550442206/1394680945701027860/image.png?ex=6877b159&is=68765fd9&hm=72448cd4240c998dbd1b4034dd77f1c5e83421f5c07075629c2380f346880763&
Not even sure what to test next. Maybe move to a different browser with zero plugins? Idk. super frustrating
w
that's weird
t
@wooden-beard-40210 What browser do you use? One of the videos says chromium based works best so ive been using edge. It does trigger less errors in general.
w
i'm on a firefox based browser
i'll test on chromium
maybe it's about DOM loading
let me know if that works for you
4 Views