Minimise chat when user navigates to new page

Minimise chat when user navigates to new page

When the user is in an active chat (chatbot) and is provide with an internal link, when they click the link to go to the internal page the chat opens again. This is not a good user experience. They have been sent the link to read what is on the page. 

Is there a way so that chat can be minimised when the page loads? Such as some custom JS to always ensure the chat is minimized on a page load? 

Thanks