How to pass logged in user info to Intercom

<script>
    if(window['Intercom'] && window['logged_in_user'] && window['logged_in_user']['softr_user_email']) {
      window['Intercom']('update', {
        'email': window['logged_in_user']['softr_user_email'],
        'name': window['logged_in_user']['softr_user_full_name'],
        'user_id': window['logged_in_user']['airtable_record_id']
      });
    }
</script>
2 Likes

Thanks! I put it in the header and it works great

I had an issue:
When a user logs in via Intercom and sends a message, it will recognize his email and name as expected.
But if the user logs out and sends a message, it still recognizes the same email he logged in with previously. In that case, it should recognize him as a Guest

Hi,

I can’t seem to get this to work. Should I use the above header code and setup the integration in the integrations section?

When I add this code the intercom chat bubble doesn’t appear when users are logged in.

thanks

1 Like

Pls share a link and test user via live chat so our team can check

1 Like

Thanks for following up. We have raised a ticket, and the great Suzie has tested and confirmed there is a bug; I believe it’s being worked on.

1 Like

Is there an update on how to best set this up?
The documentation says to just add the workspace ID, but that doesn’t seem to work.

Any better guide on the Intercom setup? Just setting up the tool.

I am also looking for a solution to integrate the Intercom messenger properly. Any updates?

@smnrdt @Tim_ClimatEU can you share a bit what is not working particularly ? the solution Suzie posted should be working