Answered

Is there a way that I can use a URL to open the messenger and prefill a message for my users to send?

  • 6 August 2021
  • 1 reply
  • 973 views

I was wondering, Is there is a way I can use a URL to prefill a message that my users can send to me in the messenger? I want to be able to add a URL to my email marketing campaigns and have users click a button. That button takes the user to my website and opens the messenger with a prefilled message so they just click send.

 

 

icon

Best answer by Roy 6 August 2021, 15:16

View original

1 reply

Userlevel 1
Badge

Hello @user760​ 👋,

 

Yes, you can do that by using JavaScript API "Pre-Populate Message".

 

More information can be found here.

 

You should add Intercom messenger on this URL, let's say: domain.com/roy

Then use the following Javascript code to display a prefilled message:

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

Let me know if you have any additional questions on this topic, more than happy to help.

 

Looking forward.

Reply