.chat.mode()
This API would let you configure a set up in which, whenever a visitor clicks on the chat widget embedded on your website, a chat will be initiated with a pre-defined question which you can configure using .visitor.question().
Note: Do remember that this API would work fine only if the mandatory input fields in the chat windows are auto-populated (which you can achieve using the Visitor APIs).
PARAMETERS
click: Initiate a chat OnClick.
none: To disable a configured OnClick event.
Syntax
Copied$zoho.salesiq.chat.mode("< click | none >");
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.chat.mode("click");
}
</script>