worried-egg-70963
03/10/2025, 8:11 PMwhite-nest-40686
03/11/2025, 5:21 AMlimited-pencil-78283
03/11/2025, 6:40 AMlimited-pencil-78283
03/11/2025, 6:41 AM<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BotPress Webchat</title>
</head>
<body>
<div class="webchat" style="height: 600px; width: 400px;">
<script src="https://cdn.botpress.cloud/webchat/v2.2/inject.js"></script>
<script defer>
window.botpress.on("webchat:ready", (conversationId) => {
botpress.open(); // Opens the chat once ready
});
// BotPress configuration
window.botpress.init({
"botId": "d3aea06d-0f04-4701-bec3-b457caf79902",
"configuration": {
"website": {},
"email": {},
"phone": {},
"termsOfService": {},
"privacyPolicy": {},
"color": "#3B82F6",
"variant": "solid",
"themeMode": "light",
"fontFamily": "inter",
"radius": 1
},
"clientId": "0e772c62-e321-46b5-a9fb-a88c5104e067"
});
</script>
</div>
</body>
</html>limited-pencil-78283
03/11/2025, 6:42 AMlimited-pencil-78283
03/11/2025, 6:47 AMwhite-nest-40686
03/11/2025, 8:01 AMhtml
<div id="webchat-container" style="position: relative; width: 100%; height: 100%;">
<script src="https://cdn.botpress.cloud/webchat/v2.2/inject.js"></script>
<script defer>
window.botpress.on("webchat:ready", (conversationId) => {
botpress.open();
});
window.botpress.on("conversation", (conversationId) => {
botpress.open();
});
</script>
<script src="https://files.bpcontent.cloud/yyyy/mm/dd/hh/yyyymmddhhnnss-XXXXXXXX.js"></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>
It's the same without the copy-and-paste configuration. Copying is unhelpful if you don't need to change anything.limited-pencil-78283
03/11/2025, 8:34 AM