Navigate to the Slack API page and log in with or sign up for a Slack workspace. Once you’ve successfully logged in, create a new Slack app. You can do this by clicking the “Your Apps” button in the upper right corner of the dashboard screen, then clicking “Create New App”.
Install the Slack plugin in the Plugins tab of the Bubble editor.
Return to your Slack app dashboard to find your Client ID and Client Secret. These credentials can be found on the main page of your Slack app dashboard, under the “Basic Settings” tab in the Slack menu.
The next step will be to install your app in your Slack workspace and set up your Slack permissions scopes in your Slack app. Do this by navigating to the “OAuth & Permissions” tab in your Slack app dashboard.
You will need to set up at least one “permission scope” before installing your app. Setting up OAuth scopes will determine which data and actions your app will have access to. In order to use the Slack plugin most successfully, include all of the following user and bot scopes.
For User scopes, include:
For Bot scopes, include:
Finally, set up redirect URLs in your Slack app. This should be the same redirect URL as the one you set up in the Plugins tab, whether you’ve opted to use the default or provided a custom redirect URL.
You’re all set up, and you should now be able to access your Slack workspace from your Bubble app!
Slack Plugin Features
Log in with Slack
Once a user has logged in with Slack, your app will be able to access the Current User’s Slack Profile, which will give them access to their Slack profile information, as well as information about their team & workspace - all from your Bubble app
The ability to send messages as a user, either to a channel or directly to another Slack team member
The ability to set Slack reminders for themselves from your Bubble app
The ability to add team members to Slack channels
Get information about the app’s Bot, such as their name & the channels they have access to
Post to channels as an app Bot
Slack Workspaces & Existing Accounts
If you wish to create a new user account with Slack OAuth, you can do so by using the “signup/login with a social network” workflow action and selecting Slack.
You can also connect a Slack workspace with an existing Bubble app account. In order to do this, a user must already be logged in, then go through the OAuth flow with a Slack account that matches the email address they already signed up with. This will allow an existing user of your app to access their Slack workspace without creating a whole new account.
Users can also switch between Slack workspaces by doing this. If they are already logged in and then go through the OAuth workflow, they can select a different Slack workspace to connect to. After they go through the flow, their account will be associated with that new workspace.