What is a Webhook?
A webhook is a way for one application to provide other applications with real-time information. In Drip, webhooks automatically pass data via JSON from Drip to an outbound source. Webhooks are a great way to leverage the data and information you know about a person outside of Drip.
Webhooks contain a message- or a payload -that is sent to a unique URL.
There are two methods within Drip to create webhooks: global webhooks and automation webhooks.
Global webhooks are helpful when you want to trigger off of an action within your entire Drip account. Whether that is someone opening an email, getting a tag applied/removed, updating their lifetime value, or visiting a specific page on your website. No matter where someone is in the customer journey, Drip will send data to your outbound source so you can leverage that data.
Email sends, opens, and clicks can be delivered to a platform like Tableau or Looker for visualizing data across multiple sources to see how email sends, opens, and clicks impact other areas of your business.
Automation webhooks are helpful when you need data connected to a particular action and something very specific has been done by a person. This helps supplement what you know of that person’s journey by taking the data you have about them within Drip and sending it to a third-party source.
There is an expiring offer within your store, but that offer is unique to each individual. Sending a webhook with the person’s data to a tool like Deadline Funnel helps create a sense of urgency on a unique, individualized level.
Create a Webhook
To create a global webhook:
- Go to Settings > Webhooks
- Click + New Webhook
- Enter your webhook URL
- Select the events that should trigger the webhook
- Click Save (new webhooks will be toggled ON by default)
You will see the URL of the webhook on the Webhook Settings page.
Zapier webhooks do not appear on the Webhook Settings page. When you add a non-Zapier webhook, you will see a message that says "Zapier webhooks can only be modified from your Zapier account."
To create an automation webhook:
- Go to Workflows > Workflows
- Select the workflow where you'd like to add a webhook
- Under the node to send a webhook, click + > Action
- Select Send an HTTP post
- Enter the Endpoint URL
- Click Update Action
Webhook Example Data
For global webhooks when the webhook is sent from Drip you can expect a payload of data formatted like this:
Received an Email
Opened an Email
Clicked a link
List of Actions for Global Webhooks
Our API reference contains a complete list of all global actions which can trigger a webhook. An example of an option to choose from is when a person opens an email.