Integration guide
WordPress
Add the widget to every page with a header and footer code plugin, or in your theme.
Steps
- Copy the embed code from your chatbot's page in the console (what it looks like).
- From the Plugins menu, install a plugin that adds code to your site's header and footer.
- Paste the code into the plugin's footer (body) section for the whole site, and 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
- On a classic theme you can instead paste the code just before
</body>infooter.php. A theme update replaces that file, so use a child theme. - If you use a caching plugin, clear its cache after adding the code.
- The widget doesn't show up? See troubleshooting.