Skip to main content
Answered

How do I open Intercom chatbox by query parameter and prefill the selected text?

  • November 30, 2023
  • 2 replies
  • 654 views

Hi,

The situation is like this.

We have a page that is already integrated with Intercom web chat. I would like to know if there’s any way that we can enter this page by URL with some query parameters, and the chatbox can automatically show up and prefill with the specific wording. 

 

Thanks in advance!!

Best answer by aykut.aydin

Hey @Henry Dai 👋

 

You can achieve this by using one of our JS API methods. Here you can find the exact method you can use for this.

 

For example, if you run the below method as soon as your page loads, the user will see the new message section opened automatically with the pre-populated text you provide in the composer. In your case, you can insert the value of pre-filled message from your URL query parameter.

 

Intercom('showNewMessage', 'pre-populated message comes here');

 

Hope this helps!

 

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

2 replies

aykut.aydin
Employee
Forum|alt.badge.img+4
  • Customer Support Engineer
  • 104 replies
  • Answer
  • December 6, 2023

Hey @Henry Dai 👋

 

You can achieve this by using one of our JS API methods. Here you can find the exact method you can use for this.

 

For example, if you run the below method as soon as your page loads, the user will see the new message section opened automatically with the pre-populated text you provide in the composer. In your case, you can insert the value of pre-filled message from your URL query parameter.

 

Intercom('showNewMessage', 'pre-populated message comes here');

 

Hope this helps!

 


  • Author
  • New Participant
  • 1 reply
  • December 7, 2023

Thanks! That’s helpful! 


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