API command to send a message

I want to use the agent join chat API to send an automated message when the agent joins the chat.

What would go in the place your code here section?

window.Tawk_API = window.Tawk_API || {};
window.Tawk_API.onAgentJoinChat = function(data){
//place your code here
};

1 Like

Hey did you figure how to do this? I’m looking at solving this as well.
Even if it’s via custom JS

1 Like

Nope. Nobody has replied here.