How to auto start the new conversation by JavaScript

By applying this JavaScript at the external webpage, Chat can start the new-conversation automatically.

$('.new-conversation').trigger('click')

With this condition checking before executing the above code, customer can start the new-conversation automatically whenever there's no existing Chat at the list.

$('.chat-conversation').length > 0