<!-- Moment Help Center help center. Full doc index: https://help.pavior.com/llms.txt -->
In some cases, you might want to automatically open the chat.

You can do this by adding `Pavior('open')` after having initialized Pavior. A full example might look something like this:

```
<script src="https://app.pavior.com/embed"></script>
<script>
  Pavior('init', {
    'teamVanityId': '<YOUR_TEAM_ID>',
    'doChat': true,
    'doTracking': true,
  });
  Pavior('open');
</script>
```

You can also do this dynamically based on a url. For example, you might want to include a link in an email that automatically takes you to a support page with the chat already open. In that case, you can do the following:

```
<script src="https://app.pavior.com/embed"></script>
<script>
  Pavior('init', {
    'teamVanityId': '<YOUR_TEAM_ID>',
    'doChat': true,
    'doTracking': true,
  });
  let urlParams = new URLSearchParams(window.location.search);
  if (urlParams.get('openChat')) {
    setTimeout(() => {
      Pavior('open');
    }, 2000);
  }
</script>
```

Then you would send your customers a link to `yoursite.com/contact?openChat=true`. The `/contact` path can be any page that has the chat bubble enabled on it. 

Our client API has a lot more options available, you can find them in our [API Reference](/api-reference/client-api)
