<?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 Live Chat API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359073#M35318</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from other posts that there is no API for Live Chat, beyond manipulation of the chat widget, which I find very strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-to-query-conversations-Live-Chat/td-p/344825" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/API-to-query-conversations-Live-Chat/td-p/344825&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-contact-availability-control-through-API/m-p/269194#M24298" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-contact-availability-control-through-API/m-p/269194#M24298&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have resorted to using a chatbot webhook in a chatflow to retrieve the 'lastInteractionAt' date from the JSON payload. I also need the chat agent (hubspot user), but can't see it in the payload?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 08:15:38 GMT</pubDate>
    <dc:creator>KirstyC</dc:creator>
    <dc:date>2020-08-03T08:15:38Z</dc:date>
    <item>
      <title>Live Chat API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359073#M35318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand from other posts that there is no API for Live Chat, beyond manipulation of the chat widget, which I find very strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-to-query-conversations-Live-Chat/td-p/344825" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/API-to-query-conversations-Live-Chat/td-p/344825&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-contact-availability-control-through-API/m-p/269194#M24298" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-contact-availability-control-through-API/m-p/269194#M24298&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have resorted to using a chatbot webhook in a chatflow to retrieve the 'lastInteractionAt' date from the JSON payload. I also need the chat agent (hubspot user), but can't see it in the payload?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 08:15:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359073#M35318</guid>
      <dc:creator>KirstyC</dc:creator>
      <dc:date>2020-08-03T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Live Chat API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359539#M35352</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/140633"&gt;@KirstyC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, the chatbot webhook payload doesn't contain the chat agent information. &lt;A href="https://legacydocs.hubspot.com/docs/methods/bots/working-with-webhooks-from-bots" target="_blank" rel="noopener"&gt;Here's an example of the request payload&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "userMessage": {
  // Details for the last message sent to your bot
    "message": "100-500",
    // The last message received by your bot, sent by the visitor
    "quickReply": {
    // If the visitor selected any quick reply options, this will be a list of the selected options.
    // Will be 'null' if no options were selected.
      "quickReplies":[
      // A list of quick reply options selected by the visitor
         {
            "value":"100-500",
            "label":"100-500"
         }
      ],
  },
  "session": {
    "vid": 12345,
    // The contact VID of the visitor, if known.
    "properties": {
    // A list of properties collected by the bot in the current session.
      "CONTACT": {
        "firstname": {
          "value": "John",
          "syncedAt": 1534362540592
        },
        "email": {
          "value": "testing@domain.com",
          "syncedAt": 1534362541764
        },
        "lastname": {
          "value": "Smith",
          "syncedAt": 1534362540592
        }
      }
    }
  }
}&lt;/PRE&gt;
&lt;P class="p1"&gt;Moving forward, I can honestly see a use case for this request and if you haven't already, I'd recommend jumping over to the&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage" target="_blank" rel="noopener"&gt;&lt;SPAN class="s1"&gt;HubSpot Ideas Forum&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;and posting this idea there so that it's visible to the&amp;nbsp;HubSpot product team and other&amp;nbsp;HubSpot customers and developers. Hopefully this will gather more interest.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 02:56:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359539#M35352</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-08-05T02:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Live Chat API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359568#M35363</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Webhook aside, please would you confirm there is no&amp;nbsp;&lt;SPAN&gt;API for Live Chat, beyond manipulation of the chat widget?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 07:36:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359568#M35363</guid>
      <dc:creator>KirstyC</dc:creator>
      <dc:date>2020-08-05T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Live Chat API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359835#M35378</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/140633"&gt;@KirstyC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is right. For now, we only support the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/conversation/chat-widget-sdk" target="_blank"&gt;Conversations | Chat Widget SDK&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 02:46:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/359835#M35378</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-08-06T02:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Live Chat API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/398553#M39393</link>
      <description>&lt;P&gt;I have a question regarding the identification API. On one of the sites we have, the identificationToken shows the correct user information in the chat. However, on another site, it shows the incorrect user. We tried to copy and paste theidentificationToken from the correct one to the incorrect one and it's still doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:40:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Live-Chat-API/m-p/398553#M39393</guid>
      <dc:creator>xmrcivicboix</dc:creator>
      <dc:date>2021-01-11T17:40:38Z</dc:date>
    </item>
  </channel>
</rss>

