Slack¶
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
- 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(use in 3 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_usersmust be present in every channel listed in therouteblock. -
Add users from
messenger.chainsto their respective channels.For simplicity, you can add all users from
messenger.usersto all channels listed in therouteblock. -
We highly recommend setting notification preferences to "Just @mentions" for each user in their
routechannels. Each user should:- right-click on the channel
- select "Change notifications"
- choose "Mentions" and check the option "Also include @channel and @here"
- Click Save Changes.