API to send and receive messages
Dear Support,
I have installed the zoho salesiq plugin on wordpress, and modified the following line to be able to display agent's messages into a html placeholder using
.chat.agentMessage()
$ldcode_str .= '$zoho.salesiq.chat.agentMessage(function(visitid,data)
{
document.getElementById("demo").innerHTML = data.message;
});
That was successful.
I want also to grab the visitor's messages in a standard html text box and send it across to the salesiq agent. (my goal is to bypass the embedded floating box to display the conversation on the html page itself.) I was looking for a API JS function for this, but couldn't figure out a way to do it.
Let me know if you have a specific function, or if there is a way to achieve this in another way.
Many Thanks
Denis