Slack Workflow Builder is a powerful tool that allows you to automate tasks and streamline communication within your team. We recommend using our Slack App to send notifications to public Slack channels. However, if you are interested in sending to a private channel or need to execute other custom automation, we suggest using the Slack Workflow Builder.
In this lesson you'll learn:
How to send notifications to a private Slack channel.
To create a new workflow in Slack Workflow Builder, log in to your Slack workspace, and navigate to the Workflow Builder app.
Click on “Create” and give your workflow a name.
Next, select "Webhook".
When integrating a webhook with Slack Workflow Builder, webhook variables can be defined to pass dynamic data between the two systems. Once the webhook variable is defined, Slack can access its value and use it to perform specific actions.
Click on "Add Variable" and enter the specific "Key" you want to use in your workflow.
See below for a list of key options.
The time notification was sent.
PNG file of change.
PNG file of original.
Link to the job in the dashboard.
Shareable notification link.
A string of added text.
A string of removed text.
Once you have added your webhook variables in Slack Workflow Builder, your workflow editor should display them in the appropriate fields. It should look something like this. Click, "Next".
Now that we have our webhook variables configured in Slack Workflow Builder, we can tell Slack what to do with them. To add a step to the workflow, click on the "Add Step" button in the workflow editor.
You can select from a variety of systems and actions to automate. For this example, we will choose to send a message.
Next, choose the recipient of the message, which can be either a public/private channel or a specific user. In addition, you have the option to customize the message by including the webhook variables that were previously created. To do this, simply click on the "insert a variable" button. Once finished, click "Save".
Click on the "Publish" button, which will generate a unique webhook URL. Copy this URL and navigate to your Visualping dashboard.
Within the job settings, proceed to the notifications tab and choose the Webhook option. From there, paste the previously copied URL and click on the "Save" button to finalize the configuration.