Skip to main content
Answered

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

  • August 6, 2021
  • 1 reply
  • 1304 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.

 

 

Best answer by Roy

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.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • August 6, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings