Widget Installation

The chat widget must be embedded in an environment accessible through the public Internet.

Include the installation script before the </body> tag on every page you want Adam to show, replacing CLIENT_ID with the relevant community ID:

<script src="https://adam-widget.travtus.com/main.js"></script>
<script>
  (function () {
    window.onload = function () {
      AdamChat.init('adam-bot', {
        clientId: "CLIENT_ID",
        source: "website"
      });                
    }
  })()
</script>

Widget API

The below describe the options and methods that can be called in the Widget API to customize behaviour of the chat widget.

Methods

The below methods can be called:

Available Options

These values enable you to tailor the widget to your requirements.

Example with all options passed:

AdamChat.init('adam-bot', { 
  clientId: "CLIENT_ID", 
  source: "portal", 
  clientInfo: { 
      firstName: "Adam", 
      lastName: "Bot", 
      phoneNumber: "123456789", 
      email: "[email protected]", 
      unit: "unit 3", 
      address: "Summer 5 Rd", 
  },
  colors: {
    background: "#94E087",
    foreground: "#000000",
    text: "#000000",
  },
  breakpoint: 641,
  hideLauncherOnMobile: false,
  hideFooter: false,
});