Slack Bot
Slack Bot will send auto notification to the channel once the alert will be triggered
1. Create Slack Bot
- Open slack API console. (https://api.slack.com/)
- Click on “Your apps”
- Click on “Create New App”
- Click on “From scratch”
- Now give your app name and select workspace then click on the “Create App” button.
- Click on the “App Home” button and click on “Review Scopes to Add”.
- After clicking on the “Review Scope to Add” button, scroll down and find the Scope section. Then click on the “Add an OAuth Scopes” Button and add “chat: write” as shown in the below image.
- Now click on “Install to Workspace” and press on “Allow” to generate an OAuth token. You need this token to configure Slack Harp Bot
- Now we create the channel in slack and add our app to it. To open your Slack account go to the channel bar and click on the “+” sign. Then click on “Create a new channel”.
- Now type your channel name and click on the “Create” Button.
- Now Add your app to the channel by just typing “/invite @Your_App_Name” (use the app name that you want to connect with the channel) in channel chat.
- Copy Token from step #8 and go to the Harp Platform to configure Slack Bot
2. Configure Harp Slack Bot
- Go to
Menu
and chooseBots
- You will see the full list of available Bots
There are two different statuses:
- Yellow: Bot is not configured, and you cannot use it in Scenarios
- Green: Bot is configured
- Choose Slack Bot
- Specify
Slack Bot Token
that was created in the previous section and pressSave
- Now you can go to the Harp Scenarios settings, and you can add Slack action to your scenario
Test Slack Bot
In Bot settings you can specify the name of the Slack Channel (should be started with #) that should receive test notification and press the button Test