How do webhooks work in practice?

How do webhooks work in practice?

Let's take an example of integrating SightMill with Salesforce CRM so that SightMill will generate and send out an NPS email survey when you change your contact settings in Salesforce to show the contact has bought your product. (Note: to send information back to Saleforce from SightMill, we use a REST API that's described next.)

Step 1: define your new event in Salesforce (marking the contact as sold and closing the contact record); in Salesforce, set this event to trigger a webhook.

Step 2: in SightMill, setup the project to receive data via a webhook - go to the integrations page and select receive data via webhook. SightMill displays your unique URL. Select and copy this URL.

Step 3: back in Salesforce, paste the unique URL into Saleforce's event trigger.

Salesforce will now send SightMill data in JSON format whenever the new event is triggered (ie when you have made a new sale and mark the record as sold.
    • Related Articles

    • How to send surveys from a web page - using javascript and webhooks

      You might have a requirement to send an NPS survey directly from an action on your website or software platform. A few examples are when you need to: Send an email survey if a user clicks on a button on your website Send an email survey if a customer ...
    • How to use webhooks to trigger SightMill to send an email survey

      You can link your CRM or application directly to SightMill so that an email survey is sent by SightMill when triggered directly from your application. This is a great way to send an email survey after, for example, a customer service call or when a ...
    • Does SightMill have an API?

      Yes, we support an API concept called webhooks. Webhooks are an industry-standard, lightweight technology used to pass data between platforms in response to events. As more and more applications use real-time information and events, webhooks are ...
    • How to integrate with Salesforce

      We provide all the tools to integrate SightMill with Salesforce using webhooks API to receive information from Salesforce and its Apex REST API to send information back to Salesforce. Note: you will need to be comfortable creating Salesforce scripts ...
    • What is the webhook format?

      Our webhook API is a simple, industry-standard method of linking different systems together to let you send out an NPS survey in response to an event on a different system. For example, you could: Link your helpdesk system to SightMill using webhooks ...