You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dfaaca1
Browse filesBrowse the repository at this point in the historyBrowse files
In the configuration dialog that appears, click `Enable`.
7
+

10
8
11
9
## Create an App in Slack
12
10
13
11
Slack supports two connection methods: `Webhook` and `Socket`. If you don't have a public server and your message volume is relatively small, we recommend using the `socket` method. If you have a public server (or have technical knowledge about setting up tunnels, such as Cloudflare Tunnel), you can choose the `webhook` method. The `socket` method is relatively simpler to deploy.
14
12
15
13
1. Create a [Slack](https://slack.com/signin) account and a Workspace.
16
-
2. Go to [Apps Management](https://api.slack.com/apps), click "Create New App" -> "From Scratch", enter the `App Name` and the workspace to add it to, then click "Create App".
14
+
2. Go to [Apps Management](https://api.slack.com/apps), click "Create New App" -> "Blank app" -> "Continue". Enter the `App Name`, select the workspace to add it to, then click "Create".
17
15
3. (Webhook only) Obtain the `Signing Secret`. In the Basic Information page on the left sidebar, find `Signing Secret` under App Credentials, click Show and copy it to the signing_secret field in the platform adapter configuration.
@@ -37,10 +35,13 @@ Slack supports two connection methods: `Webhook` and `Socket`. If you don't have
37
35
- im:history
38
36
- im:read
39
37
- im:write
38
+
- mpim:read
40
39
- reactions:read
41
40
- reactions:write
42
41
- users:read
43
42
43
+
When subscribing to the `member_joined_channel` event, Slack automatically requires `mpim:read` to view basic information about group direct messages the bot has joined.
44
+
44
45
6. In the OAuth & Permissions page on the left sidebar, click `Install to xxx` under OAuth Token (where xxx is your workspace name). Then copy the generated Bot User OAuth Token to the bot_token field in the platform adapter configuration.
45
46
46
47
7. (Socket only) In the Socket Mode page on the left sidebar, enable Socket Mode.
@@ -85,6 +86,8 @@ After enabling, under Subscribe to bot events below, click Add Bot User Event an
85
86
10. reaction_removed
86
87
11. team_join
87
88
89
+
After adding the events, click `Save Changes` at the bottom of the page to save the subscriptions before testing below.
90
+
88
91
## Test the Connection
89
92
90
93
Enter the Slack workspace you just added, navigate to the channel where you want to use the bot, then @ mention the app you just created. Click the Add button in the message subsequently sent by Slackbot to add it to the workspace. Then, @ mention the app and type `/help`. If it responds successfully, the test is successful.
0 commit comments