Conversations API - resetting the chatflow on page reload or closed conversation

Highlighted
Regular Contributor | Diamond Partner

I am attempting to to make use of the conversations API on this HubSpot page:

 

https://campaign.bupaglobal.com/test-page

 

I am loading a JS file in which contains some Conversations API logic:

 

https://campaign.bupaglobal.com/hs-fs/hub/2617132/hub_generated/template_assets/12735042137/15729836...

 

Essentially I am trying to ensure that the chatbot is completely cleared and refreshed upon page load and when the user closes the chat.  I feel like the code I have written in the above file should do this according to the Conversations API documentation.  However I am finding two problems:

 

  1. The conversation history is kept on page load (though if I refresh the page more than once, then the conversation history does dissappeear)
  2. The conversationClosed event never seems to fire.  (I am assuming it should fire when a user clicks the X to close the chat window).

Please could someone provide some advice?

 

Reply
0 Upvotes
2 Replies 2
Highlighted
Community Manager

Hey @rowan-reid 

 

I will tag a few of our experts Emoticono feliz     

 

Hey @himanshurauthan @sanka could you please share your knowledge with @rowan-reid   ?

 

Thank you

Sharon



¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuraciones!

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


Highlighted
Occasional Contributor | Partner

I'm sorry couldn't help you here as i'm tied up.

Reply
0 Upvotes