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.
Step 1:
To create a new workflow in Slack Workflow Builder, log in to your Slack workspace, and navigate to the Workflow Builder app.
Step 2:
Click on “Create” and give your workflow a name.
Step 4:
Next, select "Webhook".
Step 5:
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.
Key | Data Type | Description |
url | Text | Job URL |
description | Text | Job Title |
datetime | Text | The time notification was sent. |
preview | Text | PNG file of change. |
original | Text | PNG file of original. |
change | Text | Change percentage. |
view_changes | Text | Link to the job in the dashboard. |
text_changes | Text | Shareable notification link. |
added_text | Text | A string of added text. |
removed_text | Text | A string of removed text. |
Step 6:
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".
Step 7:
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.
Step 8:
You can select from a variety of systems and actions to automate. For this example, we will choose to send a message.
Step 9:
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".
Step 10:
Click on the "Publish" button, which will generate a unique webhook URL. Copy this URL and navigate to your Visualping dashboard.
Step 11:
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.