Skip to content

Website Embed

Drop your chatbot straight into your site — either as a floating widget that follows visitors across pages or as an inline iframe placed where you want it. Both options come from the same deploy card.

  1. Open your chatbot dashboard and switch to Deploy. Select the Website Embed card, then click Get Code.

  2. The dialog includes two snippets — one for the chat widget and one for an inline iframe. Copy the option that fits your layout.

  3. Replace {chatbotId} with your chatbot’s ID from the dashboard, then paste the snippet into your site’s HTML or your tag manager.

Use the script snippet to add a floating launcher to every page.

<script type="module">
import Chatbot from "https://cdn.jsdelivr.net/npm/@denserai/embed-chat@1/dist/web.min.js";
Chatbot.init({
chatbotId: "{chatbotId}",
theme: {
button: {
size: "large",
backgroundColor: "black",
color: "white",
bottom: 20,
right: 20,
iconCover: true,
},
},
});
</script>
  • Raw HTML — add the snippet before the closing </body> tag on the pages where you want the chatbot.
  • Tag manager — paste it into a custom HTML tag (for example, Google Tag Manager) to deploy site-wide without editing templates.
  • Page builder — drop it into a custom code block on the page or section that should show the assistant.