Integration guide
Shopify
Add the widget to your whole store through your theme's main layout file.
Steps
- Copy the embed code from your chatbot's page in the console (what it looks like).
- In your Shopify admin, go to Online Store → Themes.
- Next to your current theme, click … and choose Edit code.
- Open
layout/theme.liquidand paste the code just before</body>. - 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.