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?
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.
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]
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.
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.