This guide provides IT and HR administrators instructions on creating and configuring a custom Slack application for integration with their organization's workspace.
Prerequisites
Before you begin, ensure that you have the following:
- Slack Workspace: A Slack workspace where you will install the application.
- Admin Access: Administrator rights for your Slack workspace.
- Account Access: Access credentials for the account the application will connect to. Ensure you have the necessary URL and user account credentials.
- AI assistant setup: The AI assistant bot should be enabled on the application. Select the Use this bot to interact with external bots and generate responses option to enable it.
Procedure
Step 1: Create a Slack Application
- Sign in to Slack and go to the Slack API.
- Select Create New App, and from the methods, choose From Scratch to build your application from the ground up.
- Enter your application's Name, for example, AskHR.
- Select the Slack workspace where you want to install the application.
- Select Create App.
Step 2: Configure branding
- On the left-hand navigation menu, under Settings, select Basic Information and scroll down to the Display Information section.
- Enter your brand details:
- App name: Name of your bot application, for example, AskHR.
- Short description: Describe your bot in one sentence, for example, “Answers your HR queries.”
- App icon: Add an image representing your bot on the conversation body.
- Background color: Background color of your bot icon while on the conversation body.
- Long description: A description of your bot will be shown on your App Detail page. For example, “The AskHR bot can answer your questions on time-off, pay, and policies.”
- Once done, select Save Changes.
Step 3: Configure OAuth & Permissions
- On the left-hand navigation bar under Features, select OAuth & Permissions.
- Scroll down to Redirect URLs and select Add New Redirect URL.
- Copy this URL and paste it into the box:
- https://applaud-custom-slack-api.applaudhcm.com/slack/oauth_redirect?clientId={SlackClientId}&clientSecret={SlackClientSecret}&signingSecret={SlackSigningSecret}
- Replace the information in bold curly brackets {}, removing the brackets, with the information on the Basic Information page under App Credentials:
- {SlackClientId} - Client ID: Copy the ID and paste it into the correct section of the URL.
- {SlackClientSecret} - Select Show, copy the code, and paste it into the correct section of the URL.
-
{SlackSigningSecret} - Singing Secret: Select Show, copy the code, and paste it into the correct section of the URL.
Copy the example URL into a notepad, and then copy your app credential codes into the URL. Then, you can copy the URL.
- Select Add and then Save URLs.
- Scroll down to Scopes, and under Bot Token scopes, select Add an OAuth Scope.
- Scroll down and select all the scopes to which your app needs access to:
- channels:history
- channels:read
- chat:write
- im:history
- users:read
- users:read:email
Step 4: Configure Event Subscriptions
- From the left-hand navigation menu, under Features, select Event Subscriptions.
- On the Enable Events section, select the toggle to On.
- The new section appears, and you can enter this URL in the Request URL box, which is the URL that Slack should use to notify when an event occurs:
- https://applaud-custom-slack-api.applaudhcm.com/slack/events
- Select to expand the Subscribe to bot events section and select Add Bot User Event.
- Search for and select these user events:
- App_home_opened
- message.im
- App_uninstalled
- Select Save Changes
Step 5: Configure Interactivity & Shortcuts
- From the left-hand navigation menu, under Features, select Interactivity & Shortcuts.
- In the Interactivity section, select the toggle to On.
- In the new section that appears, enter this URL, which Slack should use to send interactive payloads in the Request URL box:
- https://applaud-custom-slack-api.applaudhcm.com/slack/interactions
- Select Save Changes.
Step 6: Configure the App Home tab
- From the left-hand navigation menu, under Features, select App Home and scroll down to the Show Tabs section.
- Next to the Home Tab section, select the toggle to On.
- Ensure that the Messages Tab section toggle is switched to On.
- Select the Allow users to send Slash commands and messages from the messages tab option.
Step 7: Distribution of Application
- From the left-hand navigation menu under Settings, select Manage Distribution.
- Scroll down to the Share your app with other workspaces section and select to expand the Remove hard-coded information section.
- Select the I've reviewed and removed any hard-coded information option.
- Select Activate public distribution to generate a public installation link for the application.
- The Applaud team will provide a shareable URL, for example, https://company-com.applaudcloud.com/slack/install.
Step 8: Install the Application
- Like the previous step, copy this installation URL and paste it into a new browser tab, replacing the app credentials.
- https://applaud-custom-slack-api.applaudhcm.com/slack/install?clientId={SlackClientId}&clientSecret={SlackClientSecret}&signingSecret={SlackSigningSecret}
- Replace the information in bold curly brackets {}, removing the brackets, with the information on the Basic Information page under App Credentials:
- {SlackClientId} - Client ID: Copy the ID and paste it into the correct section of the URL.
- {SlackClientSecret} - Select Show, copy the code, and paste it into the correct section of the URL.
-
{SlackSigningSecret} - Singing Secret: Select Show, copy the code, and paste it into the correct section of the URL.
Tip: Copy the example URL into a notepad, and then copy your app credential codes into the URL. Then, you can copy the URL.
- This takes you to review the app's permissions, which you need to grant access. You might need to select the workspace where you want to install the app. Review the sections and then select Allow.
- This opens your Slack workspace. If not, select the this link shown on the page.
If you receive an “Opps, something went wrong!” error, try copying the link into a document and clicking the link. If you’re still having trouble, please raise a ticket with Applaud support.
- The installed app appears under the Apps section in your Slack workspace.
Step 9: Connect the instance to the application
- After installation, you should see the Home tab of the installed App. If not, on the workspace navigation menu, under Apps, select the app you just installed and select the Home tab.
- Select Connect to Application and enter:
- Application URL: For example, https://company-com.applaudcloud.com
- API Key: Enter an API key generated by your Applaud tenant. See our knowledge base article, Restrict access to your Applaud platform using API and domain API keys.
- Select Submit and Close.
Step 10: Connect the user account
- Remaining on the App’s Home tab, select Connect your account. If you are already signed in with your user credentials, Applaud loads, and you should be connected. The button on the Home page won’t change, so navigate away by clicking the Messages tab and then click back to the Home tab to see that the button has changed.
Step 11: Test the the Application
- In the Messages tab, ensure that the application responds promptly without any errors to confirm that the application setup is completed and connected to the user account.
Step 12: Provide Access to Team Members
- Inform relevant team members that the app has been installed. Share usage instructions.
- The Custom Slack application is already connected to the application URL. However, each team member needs to connect to their respective user account with their Applaud credentials.
Additional instructions (If Needed)
Disconnect user account
- On the Slack sidebar, under the Apps section, find the Custom app, select the Home tab, and select Disconnect your account. This only disconnects the respective user but not all user accounts.
Connect to a different Application
- On the Slack sidebar, under the Apps section, find the Custom app, select Home, and select Disconnect Application.
Uninstallation
- On the Slack sidebar, under the Apps section, find the Custom app, select About, and select Configuration.
- Scroll down to the Remove App section and select Remove app.
- Confirm the removal, and Slack will uninstall the app from your workspace.
- If your team used the app, notify them of the uninstallation.
Organization-wide installation (Only for Slack Enterprise Grid subscription)
- Navigate to the Org Settings in the Admin dashboard.
- Select Apps and go to the Manage Apps section.
- Use Org-Level App Management to install the app across all workspaces or select specific workspaces.
- Set up any permissions or usage guidelines based on organizational policies.
On the Enterprise Grid subscription, the Custom Slack application can be installed at the organization level and added to any necessary workspaces.
- Only the IT or HR administrator who installed the application can change the application connection.
- Disconnecting the application will disconnect all workspace members. They must manually reconnect to the new URL if a new connection is established.
- Activating public distribution does not apply to the Slack App Directory. It only makes the application installable via a shareable URL.