Skip to product menu
Skip to main content

.chat.start()

This API can be used to initiate a chat automatically on the visitor's behalf, but this method can be invoked only from inside a JavaScript OnClick event handler.

Note: 

  • It is mandatory to use the visitor.question() API and set the visitor question before initiating the chat. 
  • If the name, email, and phone fields are marked as mandatory in your brand settings (Settings > Brands > Select your brand > Flow Controls > Online/Offline fields), ensure to set these required fields using visitor.name(), visitor.email(), and visitor.contactnumber() API. 
  • Additionally, the .chat.department() API can be used to display the departments before the call is initiated. 

Syntax

Copied$zoho.salesiq.chat.start();

Example

Copied<span  onclick="javascript:$zoho.salesiq.chat.start()" > Thank you for contacting us!  </span>