Manually add Webchat to your website.
<div>
src
script
window.botpress.init({ "botId": "xxxxxxxxxxxxxxxxxxxxxx", "configuration": { "website": {}, "email": {}, "phone": {}, "termsOfService": {}, "privacyPolicy": {}, "variant": "soft", "themeMode": "light", "fontFamily": "inter" }, "clientId": "xxxxxxxxxxxxxxxxxxxxxx" });
<div class="webchat" style="height: 600px; width: 400px;"> <iframe style="height: 100%; width: 100%; border: none;" srcdoc=' <!doctype html> <html lang="en"> <head></head> <body> <script src="https://cdn.botpress.cloud/webchat/v3.0/inject.js"></script> <script defer> window.botpress.on("webchat:ready", () => { botpress.open(); }); // Paste your Webchat config snippet here </script> </body> </html>' ></iframe> </div>
height
width
<div class="webchat" style="height: 100vh; width: 100vw;">
<div id="webchat-container" style="position: relative; width: 100%; height: 100%;"> <script src="https://cdn.botpress.cloud/webchat/v3.0/inject.js"></script> <script> window.botpress.on("webchat:ready", () => { window.botpress.open(); }); // Paste your Webchat config snippet here </script> <style> #webchat-container { position: relative; width: 100%; height: 100%; } .bpFab { display: none; } .bpWebchat { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; } </style> </div>
Was this page helpful?