You’ll need permission to create a Slack app to complete this tutorial. You’ll also need permission in Salesforce to create a Remote Site.
Create Slack App
Follow these instructions to create a Slack app for Kubaru:
- Sign into Slack.
- Navigate to https://api.slack.com.
- Click Your apps.
- Click the Create New App button.
- Select the From scratch option.
- Fill in the App Name (e.g. “Kubaru”).
- Select your Slack workspace.
- Click the Create App button.
- Click the Incoming Webhooks option in the side navigation.
- Enable the toggle next to Activate Incoming Webhooks.

- Click OAuth & Permissions in the side navigation.
- Scroll down to the Scopes section.
- Under Bot Token Scopes, click Add an OAuth Scope.
- Search for and select the following scopes: “chat:write”, “users:read.email”, and “users:read”.

- Click Basic Information in the side navigation.
- Scroll down to the Display Information section.
- Click Add App Icon and upload the Kubaru Favicon. Note: you can right-click on the Kubaru Favicon link and select “Save image as” to download it to your computer.
- Click Install App in the side navigation.
- Click the Install to {workspace name} button.
- Select an existing channel in the Where should Kubaru post? section or create a new one and refresh the page so you can select it.
- Click the Allow button. You will be redirected back to the Basic Information page and should see a success message indicating that your app has been installed.
- Click OAuth & Permissions in the side navigation.
- Copy the Bot User OAuth Token.
Create Remote Site
Next we’ll create a remote site for Slack in Salesforce:
- Sign into Salesforce.
- Navigate to Setup.
- Search for and select Remote Sites Settings using the Quick Find search bar.
- Click the New Remote Site button.
- For the Remote Site Name, enter “Slack”.
- For the Remote Site URL, enter “https://slack.com”.
- Click Save.

Connect Slack App To Kubaru
Finally, we’ll connect our Slack app to Kubaru:
- Select Kubaru from the App Launcher menu.
- Expand to the Admin tab in the navigation menu.
- Click Settings.
- Click Notifications.
- Click Add Token under Slack API Token.
- Paste the Bot User OAuth Token you copied from Slack.
- Click Save Token.
- Update your Slack Notifications setting from “Disabled” to “Enabled” or “Enabled, users can override”.

And that’s it – whew! Nice work 🥳
Things to keep in mind