Chat integration in a SPA

Diego_Grasso
Member

We are integrating the conversations caht into our app. It's an SPA developed in Angular.
We would like to inform the chat the current path and the user that's logged in, like with the tracking code api. Is that possible? Is there an api for the chat?
Another feature that we would like to implement is adding the chat only for logged users, but as the url is no really changing it doesn't work. How can we achieve this?
Thanks,
Diego

4 Replies 4
Derek_Gervais
HubSpot Employee

Hi @Diego_Grasso,

There isn't currently a Chat API, and the specific things you mentioned aren't possible with the current functionality of the chat tool. I can totally see the use case for that, though; If you have the inclination, I would encourage you to check out the Ideas Forum on the HubSpot Community. There, you can create a post including your use case that product and other customers can see.

0 Upvotes
ggrgovski
Member

Hi @Derek_Gervais,

 

Any Update on this ?

I'm also looking into integration of the Chat/Conversation in our Angular SPA, but later also on the Mobile App.

Can you please help me with that.

 

Thanks,

Gjorgji

0 Upvotes
Derek_Gervais
HubSpot Employee

Hey @ggrgovski ,

 

Since this post, we've released the Conversations Live Chat Widget API; I'd recommend checking out the documentation for that API to see if it fits the bill for what you're looking to do. Outside of that API, there aren't any other APIs related to conversations live chat.

0 Upvotes
camicase82
Participant

Hi, Im new with HubSpot and having a hard time getting the base integration, Im not sure what I might be missing, I'm working with an angular/ionic app, but I don't manage to get the script imported, already tried pacing the tracking script in different places but never shows on the final HTML, can you explain how you got the chat working?