.chat.complete()
This API can be used to end an ongoing chat, but this method can be invoked only from inside a JavaScript OnClick event handler.
Syntax
Copied$zoho.salesiq.chat.complete();
Example
Copied<span onclick="javascript:$zoho.salesiq.chat.complete()" > Thank you for contacting us! </span>