Skip to main content
Answered

Set lead email, name and a few custom attributes?

  • June 9, 2022
  • 1 reply
  • 288 views

Hey there,

 

I'm using the Intercom JS messenger widget. I'd like to pre-populate it with information from my app (name, email and a few custom fields).

 

I see a few possible ways to kind of do what I'm looking to do, but they all require a `user_id`, which I believe is the intercom user ID.

 

Is there a way to configure the Messenger without knowing the intercom user ID? Ideally something like โ€”

window.intercomSettings = {
app_id: YOUR_APP_ID,
user: {
email: THE_EMAIL
user_id_on_my_app: THE_ID
custom_attribute: SOMETHING
}
}

Is that possible?

Best answer by Evan P

Hi @connor m12โ€‹ ๐Ÿ‘‹ thanks for reaching out! I'm one of the Support Engineers here @ Intercom! ๐Ÿ‘

 

So this user_id is actually set by yourselves when creating the user in Intercom. This isn't required when creating your users however it is recommended.

 

You can use the email address as the unique identifier for the user, the only caveat is that there can multiple users with the same email address which can cause confusion or errors to be thrown when trying to login as one of these users.

 

We have developer docs here which run through this installation type. Although these docs mention user_id you aren't required to pass it over as I mentioned. The email address will be used to identify the user.

 

Hope this helps! Let me know if you have any questions๐Ÿ‘

 

 

 

 

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

1 reply

  • Active User
  • 32 replies
  • Answer
  • June 16, 2022

Hi @connor m12โ€‹ ๐Ÿ‘‹ thanks for reaching out! I'm one of the Support Engineers here @ Intercom! ๐Ÿ‘

 

So this user_id is actually set by yourselves when creating the user in Intercom. This isn't required when creating your users however it is recommended.

 

You can use the email address as the unique identifier for the user, the only caveat is that there can multiple users with the same email address which can cause confusion or errors to be thrown when trying to login as one of these users.

 

We have developer docs here which run through this installation type. Although these docs mention user_id you aren't required to pass it over as I mentioned. The email address will be used to identify the user.

 

Hope this helps! Let me know if you have any questions๐Ÿ‘

 

 

 

 


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