Your own button
Unless you pass
autoOpen, the chat starts closed, as a button, until a visitor opens it.
Signed-in users
To show agents who a visitor is, callidentify() with a userHash computed on your server. Identify signed-in users shows how.
Signing out
When a user signs out, callFrictionless.reset(). It forgets the visitor on that browser, so the next person to use it starts a new chat and can’t see the last one.
Bookings
With Book tab in the website chat switched on in Integrations → Calendar,open("book") opens it, and on("booking", fn) tells you when someone books. While the Book tab is off, open("book") opens the home screen instead.

