Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Start Chatbot on button click
Member
Jun 18, 2020 10:40 PM
Hi all,
I have a button in my navbar and footer to "book a demo". I want that button to start a chatbot flow.
I tried by having the bot available on "all pages". and setting hsConversationsSettings param loadImmediately to false like so
window.hsConversationsSettings = { loadImmediately: false, }
I then have an onclick function on my button to load the widget like so
var DemoButton.onclick = function() {window.HubSpotConversations.widget.load({ widgetOpen: true });};
This works well but because my default is not to load the chatWidget, all of my other chatflows are not ON by default (for example, on /pricing or /product).
Is there a way to trigger a chatflow/bot by onlick?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content