I’d like to create a button that says something like “Get started” and have visitors who click on it get taken to the chat bot that I’ve setup to guide them through the process instead of using a form. You can see my site here: http://folyo.me
I’m no developer but HubSpot have this working on their ‘talk to sales’ page so it must be possible.
Inspect reveals they have this code on their button:
<a id="click-to-chat__cta--text" class="cta cta--blue" style="margin-top: 20px;" onclick="window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen();">Chat with Sales</a>
Is that any help?
This worked for me thanks man.
Thanks! This worked for me too.
Not sure if this what you are looking for but we were looking for something very similar. We wanted to use a link in an email or button on a page to open up a conversation with a rep with a few lines of text sent by the rep.
Here is how we accomplished it:
- We created a chatflow and configured it with our welcome message and assigned it to come from one of our users.
- The key to making it happen is on the “Target” section. For us, we used the query parameters to trigger the conversation so that we can link to any page on our site and as long as the URL parameters are there, it will trigger the chatflow.
Example - Dropified | Login
You can make up the URL parameter name and value to be anyting you want. - Now that it is setup, we simple use this link in emails, banners, buttons, etc. to start a conversation. You can keep it general or get very specific with your chatflows to start conversations about any topic.
Not sure if this is your solve but posted here for anyone who needed something similar.
This didn’t work out for me.
I solved with this:
onclick="window.HubSpotConversations.widget.open();"
Hi @ABonumore,
Thank you for sharing this with other Community Members ![]()
Have a great day!
Best,
Bérangère