Set Conversation settings

Last updated April 2, 2020

hsConversationsSettings = { :settings: }

hsConversationsSettings can be used to provide configuration options to the Conversations API before it initializes.

Usage of this is entirely optional. This object must be set before the Conversations API is loaded. This will have no effect if set after window.HubSpotConversations is loaded.


Optional Parameters How to use Description
Load Immediately "loadImmediately": true Whether the widget should implicitly load or wait until the widget.load() method is called. Defaults to true.
Inline embed selector "inlineEmbedSelector": Where the widget should be embedded in the page. If a selector (e.g. #some-id) is provided, the widget will be embedded inline within that DOM node. It will always be open until it is removed via widget.remove
Enable cookie banner "enableWidgetCookieBanner":true Whether or not the cookie banner will be enabled for all chatflows on the page.
Defaults to false.
Disable attachements "disableAttachment":true Whether or not the upload attachment button should be hidden in the chat widget.
Defaults to false.