This API allows you the end an open chat using its reference ID.
CopiedZohoSalesIQ.endChat("1001");
ZohoSalesIQ.endChat("1001");