Slack
Requirements
- Set the
externalUrl
field in botpress.config.json
Steps
Create the app on Slack
On slack, go to
Administration
, thenManage apps
In the upper right corner, click on
Build
, thenYour apps
(also in the corner)Click on
Create new app
then give it a nameOpen the page
Bot Users
, then choose a display name and a username for your bot. Save changes.Open the page
OAuth Tokens & Redirect URLs
, then add the app to your workspace
Configure your bot
- Edit
data/bots/YOUR_BOT_ID/config/channel-slack.json
(or create it) and set
- enabled: Set to
true
- signingSecret: Take the value
Signing Secret
on the pageBasic Information
- botToken: Take the value
Bot User OAuth Access Token
on the pageOAuth & Permissions
- Restart Botpress
Configure Callback on Slack
These steps are required so users can click on quick reply buttons, select dropdown options or any other interactive method.
Open the page
Interactive Components
, then turn the switch toOn
Set the request URL to:
EXTERNAL_URL/api/v1/bots/YOUR_BOT_ID/mod/channel-slack/callback
- Replace EXTERNAL_URL by the value of
externalUrl
in your botpress.config.json - Replace YOUR_BOT_ID by your bot ID