Skip to main content
Answered

How to use webhook to integrate Intercom with SurveyLab (create contact/email)?


Hi, I want to use webhook to integrate Intercom with SurveyLab. I need to create a contact (email) in SurveyLab each time a conversation in Intercom is closed. How can I do that?

Best answer by Milan

Through the APIs/Webhooks you can get info on that customer who had conversation closed. That info includes mail.

Sorry I'm not a developer to give you exact steps, that's just what I understand from working with some developers :)

 

BTW, if you do not want to code, maybe you can change how you manage this - you can build dynamic URLs that contain intercom user attributes (email) and set it in Intercom messaging, and then after conversation with a user just send out this saved message.

 

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

3 replies

Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • December 7, 2021

Hi @user2548​ you'll need some programing on your side (or SurveyLab side) to do so.

 

You will "listen" to the webhooks from Intercom side, specifically conversation.admin.closed see more here https://developers.intercom.com/building-apps/docs/webhook-model

 

By "listening" I mean you need SurveyLab or your own end-point defined in Intercom's webhooks section. Then you do whatever needed with the data you receive from Intercom, either there is a logic on SurveyLab side (I'm not familiar with it) or you develop your own logic that "listens" to Intercom and then triggers API calls toward SurveyLab to create contact there.


  • Author
  • New Participant
  • 1 reply
  • December 8, 2021

All the logic is in place. I just need to know how to transfer customer email (email=[DYNAMIC_RESPONDENT_EMAIL]) into SurveyLab. Here is an example SurveyLab URL.

 

https://www.surveylab.com/api.php?apiToken=f6434a73b1485c96e413237ebfc2d899&cId=59e1ea3c426264b2272de586028fe05581b3014896&email=[DYNAMIC_RESPONDENT_EMAIL]


Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • Answer
  • December 8, 2021

Through the APIs/Webhooks you can get info on that customer who had conversation closed. That info includes mail.

Sorry I'm not a developer to give you exact steps, that's just what I understand from working with some developers :)

 

BTW, if you do not want to code, maybe you can change how you manage this - you can build dynamic URLs that contain intercom user attributes (email) and set it in Intercom messaging, and then after conversation with a user just send out this saved message.

 


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