Answered

Is there a Javascript API method for receiving messages? Something like: Intercom('onMessageReceived', function(){ //Do stuff... }

  • 23 February 2023
  • 1 reply
  • 46 views

Basically when the messenger is closed and the user receives a message via the borderless frame I want to trigger a function. 

 

Thanks

icon

Best answer by Daniel M15 27 February 2023, 16:42

View original

1 reply

Userlevel 2

Hey @user1434​! Daniel from Customer Support Engineering here 🔧 

 

We don't specifically have a way to track if the Messenger is in a closed state, but you might find the conversation.admin.replied webhook useful to you. This will allow you to perform an action whenever an admin sends a reply to your users, or it can be just useful for returning a conversation model at the instance of the reply.

 

Hope it helps! 😁

Reply