Articles on: Developers

How can I open the chatbox on click on a custom button?

The Crisp chatbox can be opened and closed via your website JavaScript code. This allows you to create custom "Chat with us" buttons on your website, and trigger the Crisp chatbox to open when a visitor clicks on such buttons.

You can use the following JavaScript code to open the Crisp chatbox:

$crisp.push(['do', 'chat:open']);

You can call it directly when an user clicks on a button:

<button onclick="$crisp.push(['do', 'chat:open'])">Click Me!</button>

Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?

Don't forget to subscribe to our Youtube Channel for tips and tricks about Crisp and customer service

Updated on: 13/03/2024

Was this article helpful?

Share your feedback


Thank you!