Getting started

This documentation will help customize Cliengo to fit your website

We offer a Javascript API that gives you flexibility and control over the behavior of the Cliengo chatbot, conversion pixels, submit forms, etc. You can decide, how, when and where to display the chatbot on your site, or disable/enabled some features in your website specific pages.

For using Cliengo Javascript API:

  • Make sure you have installed the latest Cliengo Installation code in your website.
  • For specific settings, place cliengoCustoms in your webpage before Cliengo Installation code.

Installation

Your Cliengo Installation Code is a javascript similar to this:

<!-- Cliengo Installation Code -->
<script type="text/javascript">
(function(){
  var cliengo=document.createElement('script'); 
  cliengo.type='text/javascript'; 
  cliengo.async=true;
 cliengo.src='https://s.cliengo.com/weboptimizer/{companyId}/{websiteId}.js';
  var s=document.getElementsByTagName('script')[0];
  s.parentNode.insertBefore(cliengo, s);})();
</script>

Configuration

For specific settings in your webpage, you have to set cliengoCustoms object before the Installation Script. See more details

<script>
/* custom configuration goes here (developers.cliengo.com/docs/javascript-api) */  
window.cliengoCustoms = {someConfig:'value'}
</script>

We encourage developers to write their own JavaScript to extend the Cliengo functionality on their websites. We're very excited when we see examples of the API used in creative ways. Let us know if you have an interesting implementation and we may publish it.

Support

If you have a problem with an API call, such as it not returning the correct value or not performing the intended action, email [email protected] with a link to a page where we can test the functionality and information about the steps that you've taken to debug so far.