APIs & Integrations

Mark1
Colaborador(a)

Chat Javascript API - How to tell if agent online?

resolver

Hi,

 

I want to show certain content based on the availaibility of the Chat Agent i.e. if online show content A if offline show content B.

 

I can't see anything in the API so just seeing if anyone has any suggesions?

 

Cheers,

Mark

0 Avaliação positiva
1 Solução aceita
IsaacTakushi
Solução
HubSpot Employee
HubSpot Employee

Chat Javascript API - How to tell if agent online?

resolver

That makes sense, Mark.

 

Unfortunately, I can't think of any workarounds for that use case with the available methods.

The product team certainly wants to make the Conversations JavaScript API more robust and useful, though, so I recommend upvoting and commenting on this feature request. I just threw an upvote on there myself.

Isaac Takushi

Associate Certification Manager

Exibir solução no post original

0 Avaliação positiva
3 Respostas 3
IsaacTakushi
HubSpot Employee
HubSpot Employee

Chat Javascript API - How to tell if agent online?

resolver

Hi, @Mark1.

 

As you noted, the Conversations JavaScript API currently doesn't contain methods relating to agent status or activity. We'll have to think creatively.

 

If you set the chat launcher to hide when all agents are away (see screenshot below) then the widget.status will be false and you can use JavaScript to hide or reveal different content. Would something like that work?

 

Hide chat launcher.jpg

Isaac Takushi

Associate Certification Manager
0 Avaliação positiva
Mark1
Colaborador(a)

Chat Javascript API - How to tell if agent online?

resolver

Thanks for you response. It would technically work however we still want Chat to be available to visitors even if all Agents are offline (so we can capture offline messages for follow up later). Any other Ideas?

0 Avaliação positiva
IsaacTakushi
Solução
HubSpot Employee
HubSpot Employee

Chat Javascript API - How to tell if agent online?

resolver

That makes sense, Mark.

 

Unfortunately, I can't think of any workarounds for that use case with the available methods.

The product team certainly wants to make the Conversations JavaScript API more robust and useful, though, so I recommend upvoting and commenting on this feature request. I just threw an upvote on there myself.

Isaac Takushi

Associate Certification Manager
0 Avaliação positiva