<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Start Chatbot on button click in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/529965#M48922</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/284654"&gt;@EBakker&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As long as you have the HubSpot tracking code installed and can add the link HTML as written this should work on WordPress too.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 13:49:08 GMT</pubDate>
    <dc:creator>MatthewShepherd</dc:creator>
    <dc:date>2021-11-22T13:49:08Z</dc:date>
    <item>
      <title>Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348395#M34155</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a button in my navbar and footer to "book a demo". I want that button to start a chatbot flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried by having the bot available on "all pages". and setting hsConversationsSettings param&amp;nbsp;loadImmediately to false like so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;window.hsConversationsSettings = {
  loadImmediately: false,
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have an onclick function on my button to load the widget like so&lt;/P&gt;&lt;PRE&gt;var DemoButton.onclick = function() {window.HubSpotConversations.widget.load({ widgetOpen: true });};&lt;/PRE&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to trigger a chatflow/bot by onlick?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 02:40:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348395#M34155</guid>
      <dc:creator>Sylg</dc:creator>
      <dc:date>2020-06-19T02:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348797#M34195</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/135859"&gt;@Sylg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, perhaps you could explore the option of creating two chat bot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One chat bot is the default bot that will load by default and another bot is the one that you'd like to load after you click the '&lt;STRONG&gt;&lt;EM&gt;Book a demo&lt;/EM&gt;&lt;/STRONG&gt;' button?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:20:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348797#M34195</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-22T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348931#M34206</link>
      <description>&lt;P&gt;Yes, that sounds good. But how do I call/trigger a specific code with the Javascript SDK?&amp;nbsp; AFAIK, you can only "show the widget" via code.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 16:25:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/348931#M34206</guid>
      <dc:creator>Sylg</dc:creator>
      <dc:date>2020-06-22T16:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349090#M34222</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/135859"&gt;@Sylg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One workaround is that your team can try&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;triggering the chat flow based on a query parameter, and add that query parameter to the URL when a visitor clicks the “request a demo” button.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="c-message_kit__attachments"&gt;
&lt;DIV class="c-message_attachment"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="c-message_attachment"&gt;Within the chatflow target rules, they can set the website page whose URL includes specific query parameters. You can learn more on this article&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/chatflows/create-a-live-chat" target="_blank"&gt;Create a live chat&lt;/A&gt;; specifically under point 2.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:46:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349090#M34222</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-23T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349275#M34242</link>
      <description>&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I do this with code, It still refresh the full page. For example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on /product with the request demo button&lt;/P&gt;&lt;PRE&gt;var footerDemoButton = document.getElementsByClassName("schedule-demo-button-footer")


footerDemoButton.href = "?request-demo-chat=true";
// the chatflow is triggered to pop up with that query param&lt;/PRE&gt;&lt;P&gt;full HREF is correct at /product?request-demo-chat=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if the user click that link, the page will fully refresh and then the chat will pop up. I want to not have to the page refresh. Just pop up the chat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I disable the link (no refresh) with the below code&lt;/P&gt;&lt;PRE&gt;footerDemoButton.addEventListener("click", function(event){
    event.preventDefault()
});&lt;/PRE&gt;&lt;P&gt;then there is no refresh but the chat doesn't pop up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there something I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:21:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349275#M34242</guid>
      <dc:creator>Sylg</dc:creator>
      <dc:date>2020-06-23T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349398#M34248</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/135859"&gt;@Sylg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our team did some testing and you might be able to load the widget without a page refresh by using the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;window.history.pushState({}, 'bot', '?bot=true');
window.HubSpotConversations.clear({resetWidget:true});
&lt;/PRE&gt;
&lt;P&gt;and ensure that the chatflow is setup to display with "open the chat widget" in the display options.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 03:53:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/349398#M34248</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-06-24T03:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/411543#M40767</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;! Stumbled on your message and this is exactly what I am trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I direct a button to load a different chat bot than the default one for the page?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 22:55:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/411543#M40767</guid>
      <dc:creator>ScottKiessig</dc:creator>
      <dc:date>2021-02-22T22:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/459691#M45074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/168698"&gt;@ScottKiessig&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using the above method would allow you to create a number of different chatflows that are tied to trigger based on query parameters and not actual page URLs/paths. As such you could have a number of different links/buttons on your page that would push different parameter values into your URL and therefore load different chat widgets,&lt;BR /&gt;&lt;BR /&gt;e.g.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="MatthewShepherd_4-1626340603233.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/46322i2CD016C487BB4B21/image-size/large?v=v2&amp;amp;px=999" role="button" title="MatthewShepherd_4-1626340603233.png" alt="MatthewShepherd_4-1626340603233.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="MatthewShepherd_5-1626340624176.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/46323i2BA0D1F017728BC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="MatthewShepherd_5-1626340624176.png" alt="MatthewShepherd_5-1626340624176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;lt;a href="#" onclick="window.history.pushState({}, 'bot', '?bot=salesbot');window.HubSpotConversations.clear({resetWidget:true});"&amp;gt;Chat with Sales&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;a href="#" onclick="window.history.pushState({}, 'bot', '?bot=supbot');window.HubSpotConversations.clear({resetWidget:true});"&amp;gt;Chat with Support&amp;lt;/a&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 09:17:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/459691#M45074</guid>
      <dc:creator>MatthewShepherd</dc:creator>
      <dc:date>2021-07-15T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/478144#M45898</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1377"&gt;@MatthewShepherd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;That sounds cool and I'm planning to give it a try on my HS landing page. However...I'm no web-dev. I'm wondering if anyone could kindly provide instructions on how I would embed&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a href="#" onclick="window.history.pushState({}, 'bot', '?bot=salesbot');window.HubSpotConversations.clear({resetWidget:true});"&amp;gt;Chat with Sales&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;into a HS landing page button? Thank you so much!&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 12:28:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/478144#M45898</guid>
      <dc:creator>PatrickSu</dc:creator>
      <dc:date>2021-08-12T12:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/478186#M45902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101821"&gt;@PatrickSu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can paste this code into the source code of a &lt;A href="https://knowledge.hubspot.com/website-pages/edit-content-in-a-rich-text-module" target="_blank" rel="noopener"&gt;rich text module&lt;/A&gt;&amp;nbsp;on your landing page.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="hs-lp-rich-text.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/48123iB90F97962683610C/image-size/large?v=v2&amp;amp;px=999" role="button" title="hs-lp-rich-text.png" alt="hs-lp-rich-text.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="hs-lp-rich-text-source.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/48124i98A390B4D55909F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="hs-lp-rich-text-source.png" alt="hs-lp-rich-text-source.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="hs-lp-rich-text-source-edit.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/48125i9A5202188256DF08/image-size/large?v=v2&amp;amp;px=999" role="button" title="hs-lp-rich-text-source-edit.png" alt="hs-lp-rich-text-source-edit.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 13:18:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/478186#M45902</guid>
      <dc:creator>MatthewShepherd</dc:creator>
      <dc:date>2021-08-12T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/529864#M48921</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would this work on a wordpress site?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It typically has 2 CTAs per page that should start 2 different bots&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:02:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/529864#M48921</guid>
      <dc:creator>EBakker</dc:creator>
      <dc:date>2021-11-22T10:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/529965#M48922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/284654"&gt;@EBakker&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As long as you have the HubSpot tracking code installed and can add the link HTML as written this should work on WordPress too.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 13:49:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/529965#M48922</guid>
      <dc:creator>MatthewShepherd</dc:creator>
      <dc:date>2021-11-22T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/561677#M50306</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1377" target="_self"&gt;&lt;SPAN class=""&gt;MatthewShepherd&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works for me. I got it to work as a hyperlink by adding it in a rich text sourcecode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But is it also possible to make this work in a button?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only add cta's in a rich text module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My buttons have limited option&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2022-01-24 om 11.41.16.png" style="width: 344px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/57956i884EEF1912C3BE76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2022-01-24 om 11.41.16.png" alt="Schermafbeelding 2022-01-24 om 11.41.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:23:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/561677#M50306</guid>
      <dc:creator>Jelmert</dc:creator>
      <dc:date>2022-01-24T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/561697#M50308</link>
      <description>&lt;P&gt;I made it work by adding the styling to your code. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:23:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/561697#M50308</guid>
      <dc:creator>Jelmert</dc:creator>
      <dc:date>2022-01-24T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/713093#M58366</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/137717"&gt;@Jelmert&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling the same as you had here but just do not know how to solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You said adding the styling to the code worked for you but I could not find this anywhere. Could you please show me in more detail where I can find the styling you were referring to? And how did you configure it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 04:29:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/713093#M58366</guid>
      <dc:creator>maile</dc:creator>
      <dc:date>2022-11-02T04:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/713185#M58372</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/463494"&gt;@maile&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To be honest, I can't really remember what I did exactly. I used a rich text to add a hyperlink and styled it as a button, I think. This is the code i used:&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&amp;lt;a href="#hs-chat-open" class="button button--secondary button--icon-right" id="button_widget_1632141043737" onclick="window.history.pushState({}, 'bot', '?bot=true');window.HubSpotConversations.clear({resetWidget:true});"&amp;gt;Open chat&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just make sure you do the steps&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61679"&gt;@gmat&lt;/a&gt;&amp;nbsp;showed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:14:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/713185#M58372</guid>
      <dc:creator>Jelmert</dc:creator>
      <dc:date>2022-11-02T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/727781#M59448</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1377"&gt;@MatthewShepherd&lt;/a&gt;&amp;nbsp;- we have an external website and I'd like to configure a chatflow bot to appear on button click - would this code work in that situation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="#" onclick="window.history.pushState({}, 'bot', '?bot=supbot');window.HubSpotConversations.clear({resetWidget:true});"&amp;gt;HELP&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I assume 'supbot' the name of the bot?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 13:28:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/727781#M59448</guid>
      <dc:creator>alisongraham</dc:creator>
      <dc:date>2022-12-07T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Start Chatbot on button click</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/731871#M59735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/487560"&gt;@alisongraham&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes, as long as you have your &lt;A href="https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code" target="_blank" rel="noopener"&gt;HubSpot tracking code&lt;/A&gt; installed on that external site and a chatflow configured to &lt;A href="https://knowledge.hubspot.com/forms/use-targeting-rules-in-pop-up-forms-and-chatflows#website-urls" target="_blank" rel="noopener"&gt;trigger based on the query parameter&lt;/A&gt; as detailed above (you change the query parameter and value to whatever you like as long as it matches your chatflow trigger) e.g. &lt;A href="https://msyite.com?bot=salesbot," target="_blank"&gt;https://msyite.com?bot=salesbot,&lt;/A&gt; this should work.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 12:08:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Start-Chatbot-on-button-click/m-p/731871#M59735</guid>
      <dc:creator>MatthewShepherd</dc:creator>
      <dc:date>2022-12-16T12:08:27Z</dc:date>
    </item>
  </channel>
</rss>

