Answered

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

  • 30 November 2023
  • 2 replies
  • 79 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!!

icon

Best answer by aykut.aydin 6 December 2023, 06:29

View original

2 replies

Userlevel 2
Badge +3

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!

 

Thanks! That’s helpful! 

Reply