<?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: How to check if chat widget is available (timeframe set)? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/750128#M61013</link>
    <description>&lt;P&gt;Thanks for your reply,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;Unfortunately, it's not solving my issue. The var `hubspot_live_messages_running` also returns `true` if the chat is hidden (= off hours as defined in HubSpot).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the object `HubSpotConversations`, I can't see anything that really helps me since the chat-widget itself is loaded in the background but not shown since it's off-hours.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 16:21:43 GMT</pubDate>
    <dc:creator>jpfaller</dc:creator>
    <dc:date>2023-02-01T16:21:43Z</dc:date>
    <item>
      <title>How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/746622#M60698</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have a chat widget on our website which works totally fine. In the HubSpot settings, we've set a specific timeframe in which this widget is visible on our website (09:00 - 17:00). Outside of this timeframe, the widget is hidden.&lt;BR /&gt;Now, we've built custom buttons we're using on our website that opens the chat on button press, via the open()-function. But if a visitor visits our website in the evening, for example at 19:00, the chat is not available and so a button has no functionality.&lt;BR /&gt;Unfortunately, I can't find any possibility to check the timeframe set in HubSpot with which I could hide the buttons in case the chat widget is hidden (= outside of set time the chat is available).&lt;BR /&gt;Is there any way for doing that? Or is there any way I could check if the widget itself is loaded and really visible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 11:56:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/746622#M60698</guid>
      <dc:creator>jpfaller</dc:creator>
      <dc:date>2023-01-25T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747615#M60773</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/510281"&gt;@jpfaller&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249367"&gt;@CMcKay&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/92197"&gt;@albertsg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;, do&amp;nbsp;you have any thoughts here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, thank you for taking time to lay out what you've tried and the roadblocks and limitations you are facing. It helps the community so much when trying to offer suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 18:37:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747615#M60773</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-01-26T18:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747617#M60774</link>
      <description>&lt;P&gt;So you also don't want to show the Button in the off hours? Or you want to show the button in the off hours and popup the chat?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 18:41:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747617#M60774</guid>
      <dc:creator>CMcKay</dc:creator>
      <dc:date>2023-01-26T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747875#M60803</link>
      <description>&lt;P&gt;I would like to not show the button during the off hours.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 08:10:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747875#M60803</guid>
      <dc:creator>jpfaller</dc:creator>
      <dc:date>2023-01-27T08:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747899#M60807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/510281"&gt;@jpfaller&lt;/a&gt;&amp;nbsp;, you could use the javascript variable that is available like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;console.log(hubspot_live_messages_running);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This returns the value true of false depending on if the chat is currently running.&lt;BR /&gt;&lt;BR /&gt;Other options include the javascript available object&amp;nbsp;&lt;CODE&gt;HubSpotConversations&lt;/CODE&gt; which you can console log to see available functions.&lt;BR /&gt;&lt;BR /&gt;If you need any further help don't hesitate to write here.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;&lt;EM&gt;If my answer was helpful please mark it as a solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:11:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/747899#M60807</guid>
      <dc:creator>miljkovicmisa</dc:creator>
      <dc:date>2023-01-27T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if chat widget is available (timeframe set)?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/750128#M61013</link>
      <description>&lt;P&gt;Thanks for your reply,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;Unfortunately, it's not solving my issue. The var `hubspot_live_messages_running` also returns `true` if the chat is hidden (= off hours as defined in HubSpot).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the object `HubSpotConversations`, I can't see anything that really helps me since the chat-widget itself is loaded in the background but not shown since it's off-hours.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:21:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-check-if-chat-widget-is-available-timeframe-set/m-p/750128#M61013</guid>
      <dc:creator>jpfaller</dc:creator>
      <dc:date>2023-02-01T16:21:43Z</dc:date>
    </item>
  </channel>
</rss>

