Articles in this section
Category / Section

How to Add BoldDesk Live Chat Widget to the Customer Portal

1 min read
Updated:

The custom JS option allows you to add the BoldDesk live chat widget to your BoldDesk customer portal.

Go to Admin > Customer Portal > Customization and paste the following custom JS code.

Custom JS Code

 const script = document.createElement("script");
 script.src = `https://{{yourdomain}}/chatwidget-api/widget/v1/{{chatwidgetId}}`;
 document.head.appendChild(script);

For Pre-filling user email address additionally add this block of code

window['boldChatSettings'] = {
   email : localStorage.getItem('loggedUserEmail'),
   maintainIsOpen : false
 }; 
  • You can add your domain in the place of {{yourdomain}}. For example: support.bolddesk.com
  • Replace {{chatwidgetId}} with the actual widget ID in the code.

Where to Find the Chat Widget ID?

Go to Admin > Chat > Live Chat. Click on the widget you want to add and copy the widget ID from the URL. Refer to the following screenshot.

Chat Widget.png

Pasting the Custom JS codes

To learn where to paste the above custom JS codes, refer to this article.

After Customization

After Customization.png

Related Articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied