Post to Slack Channel via Webhook

Navigate to the More button on the left side of your slack. Click the Automations from the list.

Click the New Workflow button in the top right hand corner.

Click on the Choose an Event under Start the workflow...

Click the From a Webhook from the list and add the following variables:  body_1, body_2, body_3, link. We are using these variables as that is what the endpoint we are using is expecting. If you need others or more then a new endpoint will be needed.

Click Save, this will take you back to the main screen for setting up the Workflow. Click the pencil next to the Starts With a Webhook to reenter the start of the webhook.

At the bottom will be a field Web Request URL, copy this link and put it someplace as we will us this later to get the webhook id for the endpoint. Then click save at the bottom.

Then click into the box under Then, do these things and select Send message to a channel.


In the Select a Channel search for the channel that you wish send the message to. Then add the message using your data variables made in the From a Webhook step. This example is a basic setup so that we can reuse this webhook for other alerts if we need. 

We can add a button for the link that when clicked will take you to the that link. Click  Add Button, then add the button label and under Behavior choose  Open Link. Add the link variable to the url option. Click save. This example is a basic setup so that we can reuse this webhook for other alerts if we need. 

Now you should see a screen like below, we are going to click  Finish Up in the right corner.

Here we are going to name the message. You can also upload a new icon photo if you wish. Click Publish when done. This example is a basic setup so that we can reuse this webhook for other alerts if we need. 

Yay it is published! Now click add to channel so that it is visible in the Workflow tab.


Now we need to add the Slack endpoint to the GC or WF that you are using. We are going to grab that URL that we saved, it should look similar to the following: https://hooks.slack.com/triggers/T2******/91**********/a0************************   For the endpoint you are going to need to copy from the T to the end, this is your webhook id. 


Now that you have your Slack workflow set up, go into Capacity Console. Go to App Center, find "Slack Notifications", turn on the app by clicking the toggle. Do not add a general channel setting or any other setting on this screen.

Once the app is turned on, you can use the "Slack Notification" app in Guided Conversations or Workflows. 

Here is a screenshot of the endpoint in a GC.


Was this article helpful?