Slack¶
Authentication¶
- Use https://<your_domain>/auth/callback as ENV
AUTH_REDIRECT_URL↰ - Go to Slack Apps, select IMPulse app
- In the Basic Information section:
- In the OAuth & Permissions section:
- in Redirect URLs subsection add URI from
AUTH_REDIRECT_URL↰ env - press Save URLs button
- in Redirect URLs subsection add URI from
Create a bot¶
- Go to Slack Apps and click button Create New App.
- Select From scratch.
- Set the App Name to "IMPulse" and choose your workspace.
Configure the bot¶
-
In the Interactivity & Shortcuts section:
- enable "Interactivity"
- set the Request URL to https://<your_domain>/app
-
In the OAuth & Permissions section:
- in Scopes subsection add these "Bot Token Scopes":
- channels:read
- chat:write
- chat:write.customize
- chat:write.public
- groups:read
- im:read
- im:write
- mpim:read
- usergroups:read
- users:read
- we highly recommend to add the IP address of your IMPulse server in white list in Restrict API Token Usage subsection
- in OAuth Tokens click the button Install to <your_workspace>, then Allow
- use "Bot User OAuth Token" as ENV
SLACK_BOT_USER_OAUTH_TOKEN↰ (used here)
- in Scopes subsection add these "Bot Token Scopes":
- In Basic Information section:
Configure channels¶
-
To use the IMPulse bot in private channels, you must manually invite it. Run this command in each required private channel:
/invite @IMPulse -
All users from
messenger.admin_users↰ must be present in every channel listed in theroute↰ block. -
Add users from
messenger.chains↰ to their respective channels. -
We recommend configuring IMPulse channels for all
messenger.users↰ as follows:- right-click on the channel
- select "Change notifications"
- choose "Mentions" and check the option "Also include @channel and @here"
- Click Save Changes.
Get group ID¶
To copy group ID:
- In any thread mention group using
@ - Click it to open
- Press "..." (More actions) button
- Copy group ID button