Skip to main content

.chat.agentMessage()

This event handler allows you to invoke a method right after the operators respond to the visitor chat requests.

PARAMETERS

visitid: Unique ID generated for the chat.

data: operator message information.

message: The messages sent by the operators of your firm.

Syntax

Copied$zoho.salesiq.chat.agentMessage(function(visitid,data){});
"visitid" : "<Visitor id>","data" : 
{
  "visitid" : "<Visitor id>",
 "message" : "<Chat message>",
}

Example

Copied<script>

$zoho.salesiq.ready=function()

{

   $zoho.salesiq.chat.agentMessage(function(visitid,data)
   {
      TrackinMyApplication(data.visitid,data.message);
   });

}

</script>