---
title: "How to auto start the new conversation by JavaScript"
canonical: "https://support.appfire.com/space/SUPPORT/153453540/How%20to%20auto%20start%20the%20new%20conversation%20by%20JavaScript"
format: markdown
---
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
```