Docs menu
Integration guide

Any website

For a site you build yourself, or any platform that lets you edit its HTML.

Steps

  1. Copy the embed code from your chatbot's page in the console (what it looks like).
  2. Paste it just before the closing </body> tag on every page where the chat should appear.
  3. If your pages share a layout or footer template, paste it there once instead.
  4. Publish the change and reload your site.
Embed code
<!-- DeepFountain Widget -->
<script>
  (function() {
    const script = document.createElement('script');
    script.src = 'https://saas.deep-fountain.com/widget-v3/YOUR_CHATBOT_IDENTIFIER/loader.js?api_key=YOUR_API_KEY';
    script.setAttribute('data-api-key', 'YOUR_API_KEY');
    script.async = true;
    script.defer = true;
    document.head.appendChild(script);
  })();
</script>
<!-- End DeepFountain Widget -->

Good to know

  • The <head> works too: the widget waits until the page has loaded.
  • On sites that change pages with Turbo, the widget comes back after each page change.
  • The widget doesn't show up? See troubleshooting.