<?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: two-way live chat experience not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232326#M86007</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1021394"&gt;@sumitkawate&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the HubSpot Community!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you're having trouble sending replies to existing threads using API. I found this existing post in our Community that you may find helpful!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Can-t-send-a-message-back-to-the-user-on-Conversations-API/m-p/1133723" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Can-t-send-a-message-back-to-the-user-on-Conversations-API/m-p/1133723&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;I'd also like to tag in some of our Top Contributors to see if they have any tips and tricks on this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;-- Do you have any suggestions for &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1021394"&gt;@sumitkawate&lt;/a&gt;&lt;/SPAN&gt;?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;Sam, Community Manager&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 14:13:00 GMT</pubDate>
    <dc:creator>SamTassey</dc:creator>
    <dc:date>2025-12-09T14:13:00Z</dc:date>
    <item>
      <title>two-way live chat experience not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232307#M86003</link>
      <description>&lt;DIV class=""&gt;Hello HubSpot Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to build a two-way live chat experience from my own custom chatbot (a Java microservice + HTML frontend). The chatbot successfully sends messages to the user, and I am able to receive agent messages from HubSpot Inbox through webhooks.However, I am unable to send&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;visitor → agent&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;messages back into the same thread using the Conversations API.Here is the request I am calling:&lt;STRONG&gt;Endpoint:&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;POST &lt;A class="" href="https://api.hubapi.com/conversations/v3/conversations/threads/10128928655/messages" target="_blank" rel="noopener noreferrer"&gt;https://api.hubapi.com/conversations/v3/conversations/threads/10128928655/messages&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Request Body:&lt;/STRONG&gt;&lt;BR /&gt;&lt;I&gt;{&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "type": "MESSAGE",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "text": "Hello! This is a test message from my bot.",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "recipients": [&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "actorId": "A-123456"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; ],&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "senderActorId": "V-987654",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "channelId": "1000",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "channelAccountId": "173363"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;}&lt;/I&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;BR /&gt;&lt;I&gt;{&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "status": "error",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "message": "Multiple errors validating request.",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "errors": [&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "subCategory": "ConversationsApiError.UNSUPPORTED_ACTOR_TYPE",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message": "Actor type VISITOR is not supported for sending"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "subCategory": "ConversationsApiError.INVALID_ARGUMENT_TYPE",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message": "Invalid actorId type"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "subCategory": "ConversationsApiError.UNSUPPORTED_ACTOR_TYPE",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message": "Actor type AGENT is not supported for receiving"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; ]&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;}&lt;/I&gt;&lt;STRONG&gt;My Use Case&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;A user is chatting with our AI chatbot (custom-built).&lt;/LI&gt;&lt;LI&gt;If the user asks for additional help, I collect name, email, phone, and create/update a HubSpot contact.&lt;/LI&gt;&lt;LI&gt;I then want to hand off the conversation to a live HubSpot agent.&lt;/LI&gt;&lt;LI&gt;I need&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;two-way messaging&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;between:&lt;UL class=""&gt;&lt;LI&gt;User (from my portal/chatbot)&lt;/LI&gt;&lt;LI&gt;Live agent (HubSpot Inbox)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;Agent → user works correctly via webhooks.&lt;BR /&gt;&amp;nbsp;But visitor → agent fails because the API does not seem to accept&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;VISITOR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as a sender actor.&lt;STRONG&gt;What is the correct actor type and configuration to allow messages originating from my external chatbot to be sent into an existing HubSpot conversation thread?&lt;/STRONG&gt;&lt;BR /&gt;I want to know whether:&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;I must use a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Custom Channel App actor&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(APP-xxx)?&lt;/LI&gt;&lt;LI&gt;HubSpot supports simulating a visitor message via API?&lt;/LI&gt;&lt;LI&gt;Or if there is any supported way to send end-user messages into HubSpot Inbox threads?&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;Any guidance or best practices would be really appreciated.&lt;STRONG&gt;Please help?&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Dec 2025 13:18:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232307#M86003</guid>
      <dc:creator>sumitkawate</dc:creator>
      <dc:date>2025-12-09T13:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: two-way live chat experience not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232326#M86007</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1021394"&gt;@sumitkawate&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the HubSpot Community!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you're having trouble sending replies to existing threads using API. I found this existing post in our Community that you may find helpful!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Can-t-send-a-message-back-to-the-user-on-Conversations-API/m-p/1133723" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Can-t-send-a-message-back-to-the-user-on-Conversations-API/m-p/1133723&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;I'd also like to tag in some of our Top Contributors to see if they have any tips and tricks on this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;-- Do you have any suggestions for &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1021394"&gt;@sumitkawate&lt;/a&gt;&lt;/SPAN&gt;?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:#ffffff;color:#33475b;"&gt;Sam, Community Manager&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 14:13:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232326#M86007</guid>
      <dc:creator>SamTassey</dc:creator>
      <dc:date>2025-12-09T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: two-way live chat experience not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232343#M86009</link>
      <description>&lt;P&gt;Hi Sam,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below one doesn't work as it is Vistor to Agent while the Agent to Vistor works .&amp;nbsp;&lt;BR /&gt;&lt;I&gt;{&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "type": "MESSAGE",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "text": "Hello! This is a test message from my bot.",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "recipients": [&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "actorId": "A-123456"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; ],&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "senderActorId": "V-987654",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "channelId": "1000",&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&amp;nbsp; "channelAccountId": "173363"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;Any help and solutions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 14:42:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1232343#M86009</guid>
      <dc:creator>sumitkawate</dc:creator>
      <dc:date>2025-12-09T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: two-way live chat experience not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1233998#M86094</link>
      <description>&lt;P data-start="273" data-end="720"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1021394"&gt;@sumitkawate&lt;/a&gt;&amp;nbsp;&amp;nbsp;, I’ve bumped into this exact wall. The error you’re getting is basically HubSpot telling you: the Conversations “public messages” endpoint is not meant to impersonate a website visitor. In that API, VISITOR actors aren’t allowed as senders, and AGENT actors aren’t valid as “recipients” in the way you’re modeling it, because that endpoint is oriented around sending messages through an existing channel with supported actor roles.&amp;nbsp;&lt;/P&gt;
&lt;P data-start="722" data-end="1201"&gt;For your use case (external chatbot UI that can escalate to agents in the HubSpot Inbox), the supported pattern is to implement a Custom Channel, and then post messages as INCOMING/OUTGOING over that channel. That’s the product that’s designed to bridge an external messaging surface into the inbox while keeping a single thread for the agent. Start with the Custom Channels API guide here: &lt;A class="" href="https://developers.hubspot.com/docs/api-reference/conversations-custom-channels-v3/guide" target="_blank" rel="noopener" data-start="1113" data-end="1201"&gt;https://developers.hubspot.com/docs/api-reference/conversations-custom-channels-v3/guide&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="1203" data-end="1701"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1203" data-end="1701"&gt;Once the channel is registered and connected, your “visitor -&amp;gt; agent” message should be sent as an incoming external message on the custom channel, not as a VISITOR actor on the public thread endpoint. The endpoint you’ll end up using is the Custom Channels “Publish a message” route (it supports messageDirection and delivery identifiers): &lt;A class="" href="https://developers.hubspot.com/docs/api-reference/conversations-custom-channels-v3/external-messages/post-conversations-v3-custom-channels-channelId-messages" target="_blank" rel="noopener" data-start="1544" data-end="1701"&gt;https://developers.hubspot.com/docs/api-reference/conversations-custom-channels-v3/external-messages/post-conversations-v3-custom-channels-channelId-messages&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="1703" data-end="1977"&gt;One quick clarifying question: are you trying to keep using HubSpot’s native Live Chat channel, or are you OK with the inbox showing your integration as its own channel (your custom chatbot) for the agent handoff? That answer determines whether you can stay fully supported.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 15:31:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/two-way-live-chat-experience-not-working/m-p/1233998#M86094</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-12-15T15:31:33Z</dc:date>
    </item>
  </channel>
</rss>

