How to use webhooks with Zapier

If you are not a developer, many apps like Zapier or Make can connect the Unit21 app to thousands of apps like Google Sheets, Asana and more.

For example, when someone assigns you a Unit21 alert or case to work on, you can use Zapier to automatically generate an Asana task for the day.

Another example could be using Zapier to automatically generate a report in Google Sheets when a case is closed.

There are thousands of possibilities to automate your workflow. Let's start with an example.

🚧

Unit21 has no relationship with any of the tools mentioned in this example.

Please note that Zapier webhooks require a Zapier paid upgrade. There is a free 14 day trial at the time of this writing.

In this example, an email will be sent to the compliance team manager when an alert has over 1000 hits to ask him/her to review the rule that generated the alert.

First, create a Zapier account by going to: https://zapier.com/ and Getting started for free.

2726

To connect Zapier to Unit21, you'll make a new Zap—Zapier's automated app workflows—and choose Webhooks by Zapier as the trigger app.

2830

Select Catch Hook, which can receive a GET, POST, or PUT request from another app. Zapier will give you a unique webhooks URL—copy that, so you can use it in the next steps for Unit12's webhooks URL setting.

2830 2830

📘

GET requests ask the server for data. POST requests send data to a computer. PUSH requests ask the server for specific data, typically to update it.

2826 2830

Click Test Trigger:

3098

Ok, Zapier is now waiting for webhook messages from Unit21. And now that we have the URL from Zapier, let's head back to the Unit21 Dashboard.

Head over to Workflows > Webhooks in the Dashboard:

3070

Select + Create webhook and enter the Zapier URL and the Alert generation limit reached action:

3070

Select add endpoint:

3070

Click the Send Test button to test the webhook:

3098

Go back to the Zapier window, you'll see data from the webhook listed in Zapier. Make sure you click Test trigger again if it doesn't appear:

3098

The test worked!

The test webhook doesn't have any data in it so nothing will appear in the querystring. Typically other Unit21 webhook messages have a lot of data in them which Zapier will show you.

Now that you have data from Unit21, click Continue.

Select the action app—the app you want to send data to. You'll see form fields to add data to that app.

3098

In this case, we select Gmail:

📘

Follow the prompt in Zapier to connect your Gmail account.

3098

Then select the Send email action:

3098

Click Continue.

Select the Gmail account that you previously synced from the dropdown:

2972

Click Continue.

Now we setup Zapier to email Laura, the manager, when an Alert has hit a limit to double check the rule and make sure it doesn't need to be adjusted:

2182

Click Continue.

Review the actions that Zapier will take when it receives the Unit21 webhook once last time:

2932

Test your Zap by clicking Test Action:

2932

The test email is received:

2412

Your Zap is now ready to use. Click Publish Zap:

2932

Now the next time your Unit21 sends an Alert Limit message, Zapier will automatically email the manager.

A few days later:

2412