Skip to content
Docs

Website chatFor admins

Add chat to your website

Make a bot, put its chat window on your pages, and steer it from your page's script.

A customer-service bot answers your website's visitors from what you give it: questions and answers, pages of your site, files and skills. It reaches your own systems only through the tools you give it.

Add the chat window#

  1. In the console, open Customer serviceCustomer service, make a bot and give it your website's address. Only pages on the addresses you list can open its chat.
  2. Copy the install line from the bot's Settings and put it on every page that should show the chat, before the closing </body>.
<script async src="https://chat.example/loader.js" data-bot="YOUR_BOT_ID"></script>

The line from the console carries the real address and your bot's id. The script adds a chat button in the corner and opens the window over the page. Everything the window loads comes from that one address, so your site's content security policy needs to allow only it.

Talk to the window from your page#

Calls can be made before the script has loaded; they wait in a queue:

window.TigerlessChat = window.TigerlessChat || function () {
  (window.TigerlessChat.q = window.TigerlessChat.q || []).push(arguments);
};
TigerlessChat("open");
CallWhat it does
TigerlessChat("open"), TigerlessChat("close")Opens or closes the window, for a button of your own.
TigerlessChat("page", {...})Tells the bot about the page the visitor is on, such as a product id, as flat names and values.
TigerlessChat("identity", ...)Signs the visitor in. See Sign your visitors in.
TigerlessChat("tokens", ...)Hands over the visitor's own token for a system of yours. See Connect your own systems.