How to Send Custom Messages into Chatlog
Articles related to customization are written for a technical audience who have experience in web development. Knowledge of HTML, CSS, and JavaScript are required.
You can enable Instant Chat to send custom system messages into the chatlog to notify support technicians of customer actions.
In the below example, you can see the custom implementation of sending a system message into the chatlog when the customer clicks the Instant Chat Print/Save button.
var ic_hic_demo_timer = null;
ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
if ((ICObject != null) && (ICObject.pChatLog != null) && (ICObject.pMainContentArea != null))
{
ICObject.sendCustomMessage("custom system message");
}
}
Article last updated: 27 September, 2022