Resources »

Guides »

Integrations »

Slack »

Cerb + Slack

Introduction

In this guide we’ll walk through the process of linking Cerb to Slack. You’ll be able to use Slack’s full API from bots in Cerb to automate whatever you need.

Create an app at Slack

Next, you need to create a new app on Slack for Cerb to connect to.

  1. Log in to Slack’s developer portal.

  2. Click the green Create New App button.

  3. Enter the following details:
    • App Name: Cerb
    • Development Slack Team: (your team name)
  4. Click the Create App button.

  5. Scroll down to App Credentials and make a note of your Client ID and Client Secret for the next step.

  6. Select OAuth & Permissions from the left sidebar.

  7. Click the Add Redirect URL button and enter the base URL to your Cerb install (e.g. https://YOUR-CERB-HOST/).

Create the Slack service in Cerb

  1. Navigate to Search » Connected Services.

  2. Click the (+) icon in the top right of the list.

  3. Select Slack.

  4. Enter your Client ID and Client Secret.

  5. Click the Create button.

Link the connected account to Slack in Cerb

  1. Navigate to Search » Connected Accounts.

  2. Click the (+) icon in the top right of the list.

  3. Select Slack.

  4. Click the blue Link to Slack button.

  5. Accept consent on Slack.

  6. Click the Save Changes button.

Use the connected account in bot behaviors

You can use the connected account you just created to access Slack’s API from bot behaviors in Cerb. This is typically accomplished using the Execute HTTP Request action from a bot, and selecting the connected account in the Authentication: section.

You can import the Slack Bot package for a working example.