📘

Tip:

For more information on installation read this article.

The Javascript SDK is an easy way to install our agent widget.

If you already have an account, get the javascript code here.

Copy and paste this code snippet before the tag on every page you want the agent widget to appear on an allowed domain.

<!-- Start of Glassix Chat Widget -->
  <script>
  var widgetOptions = {
       departments: ["departments ids you want to sign into"],
       userName: "your-user-name",
       snippetId: "your-snipppet-id"
  };
  
  (function(n){var u=function(){GlassixAgentClient&&typeof GlassixAgentClient=="function"?(window.agentClient=new GlassixAgentClient(n),agentClient.attach()):f()},f=function(){r.onload=u;r.src="https://cdn.glassix.net/clients/agent.1.3.min.js";document.body&&document.body.removeChild(t);i.parentNode.insertBefore(r,i)},i=document.getElementsByTagName("script")[0],t=document.createElement("script"),r;(t.async=!0,t.type="text/javascript",t.crossorigin="anonymous",t.id="glassix-agent-widget-script",r=t.cloneNode(),t.onload=u,t.src="https://cdn.glassix.com/clients/agent.1.3.min.js",!document.getElementById(t.id)&&document.body)&&(i.parentNode.insertBefore(t,i),t.onerror=f)})(widgetOptions)
  </script>
<!-- End of Glassix Chat Widget -->