Newer Version Available
startChat
Use the startChat method to request a chat from a button in a new window.
Usage
Requests a chat from the provided button in a new window.
Optionally, you can route chats from a specific button directly to the agent with the userId you specify. If the agent is unavailable, you can route the chat to additional agents by specifying whether to fallback to the button’s routing rules (true) or not (false).
Syntax
void startChat(String buttonId, (optional) String userId, (optional) Boolean fallback)