In this guide, we will be exploring DNSFilter’s Zapier integration with a simple demo. We will set up an automated task that sends a message to a Slack channel anytime a policy change occurs on your DNSFilter account.
- A DNSFilter Account
- A Zapier Account
- A Slack Organization
Log in to Zapier and click Create Zap, then search for DNSFilter on the trigger page as shown below:
Select DNSFilter to proceed to the Zap creation page.
Note: If you’re using DNSFilter on Zapier for the first time, you will be prompted to log into your DNSFilter account.
On the Zap creation page, select the trigger event Policy Changed from the Trigger Event dropdown as shown below:
Click Continue and select your DNSFilter account as shown below:
Click Continue. In the Set up trigger settings section, choose your organization and site as shown below:
Now click Test Trigger to fetch your account’s policies which are displayed in a dropdown, select the policy you want to use as shown below:
This wraps up the DNSFilter trigger section. Next, you’re prompted to add an action that will be triggered when the policy change event is raised.
Search and select Slack from the list of applications:
From the Action event dropdown, select Send Channel Message as shown below:
Note: If you’re using Slack for the first time on Zapier, you will be prompted to authenticate with your Slack account.
Next, choose your Slack account as shown below:
In the Set up action section, select a channel from the Channel dropdown list as shown below. For this demo, I will be using a channel called #test-automation
In the Message Text field, you can type in the message you want to be sent to the channel. Zapier also shows you a dropdown of data relating to the event that you can add to the message. Below is the message I have constructed for this demo:
Leave all the remaining options as default and scroll down to click the Continue button.
Your Zap is now set up and you can click Test & Continue to complete the process. You should get a sample message in your specified Slack channel.
To conclude the process, turn on your Zap using the zap toggle button.
To perform a real test, go into your DNSFilter dashboard and change a setting in the policy you defined in the Zap.
Here is an example of what my message looked like after changing a setting in my policy:
Below is a link to the Zap we just created in this demonstration, feel free to reuse: