Quick tipDeveloperService HubMarketing Hub

Open the chat widget from a link or button

Call the widget SDK from your button.

Subscription
All chat tiers
Permissions
Website code access
Time
3 min · Intermediate
Last verified

Short answer

HubSpot's developer docs: the HubSpotConversations.widget object has methods such as load, open and refresh, and can load the widget in an open state. Query parameters let buttons and links open specific chatflows. inlineEmbedSelector embeds the widget inside a page element.

1. Chatflows

Chatflows in my demo portal.

Chatflows page with Web Chat, Mobile Chat and Facebook Messenger tabs and Create chatflow button
Chat channels (1) and Create chatflow (2).

2. Example

<button onclick="window.HubSpotConversations.widget.open()">Chat with us</button>

3. Related

Visitor identification.

Sources

New field notes by email

One email when a new article publishes.

Still stuck?

If this did not fix it, the problem is probably specific to your setup. Book a call and we will look at it together.

Book a call with Sam