Slack Integration
The Pathfix Slack Integration Plugin enables message sending capabilities from your Bubble app to your user's Slack Workspace. The plugin will handle OAuth configs + tokens and calls the relevant Slack API automatically. No configurations required to get the plugin working
This documentation will show setup guide and a few example use cases.
The plugin is available in the Bubble Plugin store.
IMPORTANT: You need to install the Pathfix OAuth Connector first before installing this plugin
- Under x-partner-key (shared headers), add your Pathfix x-partner-key from the Keys section of your Pathfix account
- Navigate to the Design section and select the Pathfix Connector element and enable Slack from the list of providers
Once installed, there are no additional configurations required to get the Plugin to work. All actions are immediately available, you can setup your workflow in Bubble to add message sending capabilities.
The Connect button will automatically be added to your page that contains the Pathfix Connector Design Element. No additional settings are required
You can add dropdown, text etc elements to pull in Slack Channels using the plugin and setup Workflows to send messages or notifications to your user's Slack channel of choice.
Here are a few sample screenshots and use-cases that show the setup to pull data or push messages to your User's Slack Workspace.
Get List of channels for the connected user:
Dropdown element for listing Channel names:
Add a Text and Button element and enable sending capabilities directly from your app with a simple workflow. Sample:
You can setup notifications workflows to your users channels for certain actions that happen in their app. Here is a sample workflow:
You can also setup workflows to send DM notifications to all users that have authorized your app in their Slack. Simple replace the channel name with {{authed_user.id}}
Additionally, the Slack plugin (version 3.1.0) also gives you the following additional setting options:
- channel_types
- You can choose to show specific channel types for users including private_channels, public_channel, im and mpim (aka multiparty im/group im)
- exclude_archive
- Exclude archived channels from being shown to your users. By default, this is excluded. To include archived channels, change the value to false
You can send a direct message for the authorized user to any of the users in the Slack workspace. To do this, you will first need to fetch the list of users for your customer to choose from.
Next, add a button to Send the message (you can customize the button to dynamically pick up the name from the previous dropdown selection):
Finally, add a workflow to trigger when the Send button is clicked. Replace the channel field to dynamically pick up the ID from the Select team member Dropdown:
See how you can add Slackbot functionality to your Bubble app (note: we are constantly adding APIs to the plugin based on requests and modify them depending on the provider, due to which the video may not include all APIs and actions).
The plugin works with a Pathfix ClientID and ClientSecret. This means that when your user goes through the OAuth process to grant access, they will see the request by Pathfix.
You can use your own ClientID and ClientSecret in the plugin and whitelabel it.
Follow this document to Whitelabel Your Connectors
Bubble.io