<?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: Opening live chat via javascript in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/757998#M61546</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to hide bubble on mobile and only allow users to open with link clicking?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 19:49:07 GMT</pubDate>
    <dc:creator>hakancanada</dc:creator>
    <dc:date>2023-02-17T19:49:07Z</dc:date>
    <item>
      <title>Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/248318#M21111</link>
      <description>&lt;P&gt;We're trying to make it so a button can open the live chat widget via javascript, how could we do this?&lt;/P&gt;
&lt;P&gt;(by live chat, I am referring to the hubspot live chat widget)&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 23:26:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/248318#M21111</guid>
      <dc:creator>chriscardone</dc:creator>
      <dc:date>2018-12-22T23:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/248319#M21112</link>
      <description>&lt;P&gt;Hi, &lt;A class="mention" href="https://community.hubspot.com/u/chris_cardone"&gt;@Chris_Cardone&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Your request seems similar to &lt;A href="https://integrate.hubspot.com/t/autostart-hubspot-bot/13635"&gt;this topic&lt;/A&gt;. If you use JavaScript to append  &lt;STRONG&gt;&lt;CODE&gt;#hs-chat-open&lt;/CODE&gt;&lt;/STRONG&gt;  to the end of the URL, the chat widget will open immediately.&lt;/P&gt;
&lt;P&gt;Check out the documentation &lt;A href="https://knowledge.hubspot.com/articles/kcs_article/conversations/how-to-use-conversations#automatically-open" rel="nofollow noopener"&gt;here &lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This feature was implemented due to feedback on &lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/Possibility-to-open-the-chat-window-by-using-custom-button-js/idi-p/175889" rel="nofollow noopener"&gt;this HubSpot Community request &lt;/A&gt;. The thread includes some helpful code examples from other developers.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 15:03:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/248319#M21112</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-12-27T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/268369#M24171</link>
      <description>&lt;P&gt;You could also do -&lt;/P&gt;
&lt;PRE&gt;hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen()&lt;/PRE&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;tim@belch.io&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 14:45:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/268369#M24171</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2019-05-03T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/268557#M24196</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76064"&gt;@chriscardone&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;, we also just released a &lt;A href="https://developers.hubspot.com/docs/methods/conversations_api/hubspot-conversations-javascript-api" target="_blank" rel="noopener"&gt;Conversations Live Chat Widget API&lt;/A&gt;, where you can use this &lt;A href="https://developers.hubspot.com/docs/methods/conversations_api/widget_open" target="_blank" rel="noopener"&gt;this function&lt;/A&gt; to open the widget:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="line-numbers language-javascript" data-start="0"&gt;&lt;CODE class=" language-javascript"&gt;window&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;HubSpotConversations&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;widget&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;open&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 23:38:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/268557#M24196</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2019-05-05T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/269750#M24355</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We succeed using this javascript call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Open chat
HubSpotConversations.widget.open()

// Close chat
HubSpotConversations.widget.close()&lt;/PRE&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 10:22:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/269750#M24355</guid>
      <dc:creator>peacepostman</dc:creator>
      <dc:date>2019-05-13T10:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/333954#M32418</link>
      <description>&lt;P&gt;This worked for me. Also, is there a way to also type in a default message automatically from the user side when the window opens?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 19:47:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/333954#M32418</guid>
      <dc:creator>rampatra</dc:creator>
      <dc:date>2020-04-23T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Opening live chat via javascript</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/757998#M61546</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to hide bubble on mobile and only allow users to open with link clicking?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:49:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/757998#M61546</guid>
      <dc:creator>hakancanada</dc:creator>
      <dc:date>2023-02-17T19:49:07Z</dc:date>
    </item>
  </channel>
</rss>

