smartsupp logo
  • HTML API
  • Chat API
  • Use cases
  • Smartsupp Homepage
Get Started Configurable parts

API

Overview Visitor Chat Theme Banner Recording Events

Banner

Chat bubble API allows customization of chat bubble. E.g. you can set different chat bubble for every domain.

Methods

NameDescription
banner:setSet new chat bubble
banner:updateChange setup of current chat bubble

banner:set

Set new chat bubble

Example: Change banner to: arrow, bubble, image.

<script> function setArrowBanner() { smartsupp('banner:set', 'arrow'); } function setBubbleBanner() { smartsupp('banner:set', 'bubble'); } function setImageBanner() { smartsupp('banner:set', 'image', { src: 'http://www.smartsupp.com/assets/banners/chat_en.png' }); } </script> <a href="javascript:setArrowBanner()">arrow</a>, <a href="javascript:setBubbleBanner()">bubble</a>, <a href="javascript:setImageBanner()">image</a>.

banner:update

Change setup of current chat bubble

Example: Change banner to: Welcome, This chat is awesome.

<script> function updateBannerText(text) { smartsupp('banner:set', 'bubble'); smartsupp('banner:update', { text: text }); }); </script> <a href="javascript:updateBannerText('Welcome')">Welcome</a>, <a href="javascript:updateBannerText('This chat is awesome')">This chat is awesome</a>,