window.DeskHoot once the script has loaded. To call one earlier, queue it.
Loading
Loads the chat now, without opening it. Resolves when the chat is ready and rejects if it cannot load. Without this call, the chat loads the first time it opens.
Showing and hiding
See Open and close.Theme
See Light or dark.Customers
Signs the customer out and starts a fresh guest. Call it when the customer signs out of your product.
Returns the IDs of the current customer and conversation session. It holds no messages.
Saves details the browser reports about the customer or the current session. Your team does not see these, because a visitor can change anything their browser sends. For details your team should see, use Verify users.
Events
See Events.More than one chat
Returns the chat loaded with
data-client="name". Each one has all the methods above.Related
Open and close
Control the chat from your own code.
Verify users
Show signed-in customers to your team.
Events
Run your code when something happens.
Light or dark
Match your website’s theme.