Skip to main content
Answered

Can I send an in-app message to a visitor via api?


Is it possible to send a in-app message to a visitor via api? Before they become a lead or a user.

 

Or, is it possible to convert a visitor to a lead or a user via api then send them an in-app message?

 

I'm trying to trigger an in-app message to a visitor after they fill out a form on my website.

 

We are able to retrieve the Visitor ID using the provide JS and it looks something like this:

 

IntercomVisitorId:

[0dd41354-f701-4648-94ca-e24df88dadcc]

 

But I don't know how to use this ID to target the visitor with an in-app message.

 

Thanks!

Best answer by User517

Looks like another way to do this is to Create a conversation with a visitor.

 

Sending for vistitors

You can also send a message from a visitor by specifying their user_id or id value in the from field, along with a type field value of contact. This visitor will be automatically converted to a contact with a lead role once the conversation is created.

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

3 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • January 3, 2021

Hello @user517​ , why just not send an outbound in-app message once they fill the form?


  • Author
  • New Participant
  • 3 replies
  • January 3, 2021

I just want to make sure they get it while on the page. The issue is that they only provided their email in our form (not Intercom), so Intercom still doesn't know the visitor is the person filling out the form.

 

I suppose I can convert the visitor to a lead using this endpoint: https://developers.intercom.com/intercom-api-reference/reference#convert-a-visitor-to-a-user/p>

 

Then either update or tag the lead to trigger an in-app message or send the in-app msg via api.

 

But I thought since Intercom has the ability to send outbound messages to visitors there would be a mechanism to send in-app messages to visitors via api.


  • Author
  • New Participant
  • 3 replies
  • Answer
  • January 3, 2021

Looks like another way to do this is to Create a conversation with a visitor.

 

Sending for vistitors

You can also send a message from a visitor by specifying their user_id or id value in the from field, along with a type field value of contact. This visitor will be automatically converted to a contact with a lead role once the conversation is created.


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