Webflow
Webflow has a detailed guide to integrating third-party code into your website, located here. To get started, you'll need the below code snippet, making sure to replace INSERT_API_KEY_HERE with your own API Key, found in the Cohere dashboard under Settings.
<script>!function(){var e=window.Cohere=window.Cohere||[];if(e.invoked)console.error("Tried to load Cohere twice");else{e.invoked=!0,e.snippet="0.2",e.methods=["init","identify","stop","showCode","getSessionUrl","makeCall","addCallStatusListener","removeCallStatusListener","widget","addSessionUrlListener","removeSessionUrlListener",],e.methods.forEach(function(o){e[o]=function(){var t=Array.prototype.slice.call(arguments);t.unshift(o),e.push(t)}});var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://static.cohere.so/main.js",o.crossOrigin="anonymous";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(o,t)}}();</script>
<script>window.Cohere.init("INSERT_API_KEY_HERE");</script>
Insert the above snippet (with your API key) into the "Head code" section of Custom Code of your Webflow website.
And that's it! Once you publish, every person who visits your site will appear on the Cohere dashboard.
Copy link