Answered

Is it possible to open a post from a JavaScript call?

  • 12 April 2021
  • 2 replies
  • 175 views

Hello! How's it going? 😎

 

According to this doc: https://developers.intercom.com/installing-intercom/docs/intercom-javascript you can start out a tour, using, for example:

 

Intercom('startTour', 123);

 

Also, you can open a message with a pre-populated text, like this:

 

Intercom('showNewMessage', 'pre-populated content');

 

Is it possible to open a post from a JavaScript call in a similar way?

 

Thanks!

 

icon

Best answer by Roy 13 April 2021, 00:08

View original

2 replies

Userlevel 1
Badge

Hello @adrián​ 👋, Afraid open a post via JavaScript call is not possible, but there is one workaround.

 

You can send Event to Intercom to trigger already created post message.

 

1. Create some post message:

PostMessage2. Set up the even rule:

rules-eventSo Once you send event "show-post-event" to Intercom, this will display post message to your customer.

Event sending is supported via JavaScript call:

https://developers.intercom.com/installing-intercom/docs/intercom-javascript#section-intercomtrackevent/p>

 

Let me know if you have any question about this workaround, will be happy to help.

Userlevel 1
Badge

BTW: You can also request post message sending via JavaScript call feature in @Product Wishlist​ group.

Reply