# Chat integration

**URL:** <https://community.hubspot.com/t/chat-integration/78701>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [April 4, 2023, 5:21pm UTC](https://community.hubspot.com/t/chat-integration/78701 "2023-04-04T17:21:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakubquick](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@Jakubquick](https://community.hubspot.com/u/Jakubquick)\
**Post date:** [April 4, 2023, 5:21pm UTC](https://community.hubspot.com/t/chat-integration/78701/1 "2023-04-04T17:21:47Z")

</div>

Hi,  
I wanted to create a chat integration app. I have managed to set up webhooks, but I cannot send a message - I’m not sure about `senderActorId` and `channelAccountId`. I have noticed that I can get this data from init message, but I want to understand meaning of this fields.  
senderActor according to the [docummentation](https://developers.hubspot.com/docs/api/conversations/conversations) is A-user\_id, however it is different than username: numer which I thought to be user\_id - is that true?  
Another question is about `channelAccountId` - what is it and why it is needed? Should I always copy the message from the recently received message?  
Can I somehow detect if this conversation is assigned to the user which token I’m using?

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [April 6, 2023, 8:21pm UTC](https://community.hubspot.com/t/chat-integration/78701/2 "2023-04-06T20:21:33Z")

</div>

Hello, @Jakubquick thank you for posting in our Community!

That’s a great question, let’s invite our top experts to help!

Hey, @tjoyce [@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828) [@Mark\_Ryba](https://community.hubspot.com/t5/user/viewprofilepage/user-id/138856) any recommendations to @Jakubquick matter?

Thank you,

Pam
