Docs menu
Integration guide

Shopify

Add the widget to your whole store through your theme's main layout file.

Steps

  1. Copy the embed code from your chatbot's page in the console (what it looks like).
  2. In your Shopify admin, go to Online Store → Themes.
  3. Next to your current theme, click … and choose Edit code.
  4. Open layout/theme.liquid and paste the code just before </body>.
  5. Click Save.
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

  • Every page of your store uses theme.liquid, so the chat shows up store-wide.
  • If you switch to another theme, add the code to that theme too.
  • The widget doesn't show up? See troubleshooting.