How to use webhook to integrate Intercom with SurveyLab (create contact/email)? | Community
Skip to main content
Answer

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

  • December 7, 2021
  • 3 replies
  • 50 views

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.

 

3 replies

Milan
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert
  • 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
  • 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
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert
  • 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.