For the complete documentation index, see llms.txt. This page is also available as Markdown.

Performance

Rep.ai can be loaded asynchronously in order to improve page speed performance.

You can always grab your CLIENT_KEY from the Widget Install directions in your Organization's Widget Settings page.

var scriptsLoaded = false;

var loadScripts = function () {
  if (scriptsLoaded) { return }
  scriptsLoaded = true;
  !function(w,d){function e(e,n){w.RepAI.q=w.RepAI.q||[],w.RepAI.q.push([e,n])}if(!w.RepAI){var i=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),c=1;c<i;c++)r[c-1]=arguments[c];e(n,r)};["init","identify","dial","alert","bookMeeting","hide","show","expand","collapse","connect","disconnect"].forEach((function(r){i[r]=function(){for(var i=arguments.length,r=new Array(i),c=0;c<i;c++)r[c]=arguments[c];e(n,r)}})),w.RepAI=i}var s=d.createElement("script");s.id="service-bell-script",s.src="https://cdn.rep.ai/main.js",s.async=1;var r=d.getElementsByTagName("script")[0];r.parentNode.insertBefore(s,r)}(window,document);
  RepAI("init", "<YOUR_CLIENT_KEY_HERE>", { mode: "iframe-jit" });
}

setTimeout(function () {
  loadScripts()
}, 7000);
window.addEventListener('scroll', function () {
  loadScripts()
}, {once: true});

Last updated