Setup for SlackKit
In this section we'll complete the steps for setting up your Knock account and Slack app to enable SlackKit.
Set up Slack app
See Build a Slack app to create the bot that you'll use to post notifications.
If you already have a Slackbot you want to use, you'll just need to make sure it has its redirect URL set and that it's publicly distributed, which is described below.
The following steps will be completed in the OAuth & Permissions sidebar of your Slack app's management page:
Add Slack app to Knock Slack channel
Now that your Slack app is set up, you'll want to reference three attributes in the Basic Information section:
- App ID
- Client ID
- Client secret
You need to add this data to a new or existing Slack channel in the Knock dashboard to link your app to Knock. From the dashboard, create a Slack channel or open an existing one, and click Manage configuration. You'll see where to paste these three strings under Provider settings. Click "Update settings" to save.
Use Slack channel in a workflow
In order to test this flow, you'll want to set up a workflow with a Slack channel step. Later on we'll discuss how you can design your notification templates for Slack, but for now you can just add the channel step to a workflow.
Summary
You've now set up a Slack application, linked it to your Knock Slack channel, and used the channel in a workflow. The next sections will show you how to grant your users access to their Knock data, add SlackKit components to your application, and how to trigger a workflow to the user's selected Slack channels.