Creating a Webhook for Slack

  • Updated

What do you want your webhook to do? 

A: I'm a Data Request Manager and I currently receive emails when new DSAR requests are email verified. But these emails are sent daily, not immediately when a new request is received. And since these emails are mixed in with other kinds of messages it can be tough to rely on them to prompt action. What I'd like instead is to immeidately receive a notificaiton whenever I as the Data Request Manager need to do somehting to advance a DSAR. I need to do something when all action items are complete. So I want to create a webhook that will notifiy me when all actions items are complete on a request so I can review it in the moment.

Solution - Create a webhook to send Slack notifications whenever all action items on a request are complete

First read through the webhooks documentation for the application you wish to create a webhook for. Here is the documentation for Slack.

For Slack, first you need to create a Slack app that will host the messages sent from Osano. Click the 'Create your Slack app' button within the Slack webhooks documentation page.

Screenshot 2023-04-03 at 1.54.54 PM

After clicking that button, you will be prompted to choose how to create your app. In this example we will proceed to create an app from scratch by clicking the 'From scratch' button:

Screenshot 2023-04-03 at 1.58.02 PM

Enter a description for your app and then select the workspace you would like your notifications to be sent to. Then, click to create the app.

Screenshot 2023-04-03 at 1.59.47 PMYou taken to the Basic Information tab for your newly created Slack app. Once there, click the 'Incoming Webhooks' button within the Add features and functionality section:

Screenshot 2023-04-03 at 2.02.16 PM

Then click to swap the toggle to 'On' to activate incoming webhooks:

Screenshot 2023-04-03 at 2.04.03 PM


First click to create a new webhook

Second - add an informative name