There's a new version of the HubSpot API

We're also working on a new documentation website, you're invited to check it out and give us your feedback.

Load the chat widget

Last updated June 17, 2020

HubSpotConversations.widget.load()

Load the widget for the first time on the page. If the widget is currently loaded, subsequent calls to this method are no-ops.

This method is only necessary if you set the loadImmediately flag to false in hsConversationsSettings. Otherwise, the widget will load itself automatically.

Note: This is not the same as opening the widget. See window.open if you want to manually open the widget after it's loaded.


Optional Parameters How to use Description
Open widget "widgetOpen": false Whether the widget should load in an open state. Defaults to false.