Slack App Creation

Self-Hosted:

In case of a self-hosted instance, you need to create your own Slack app. Here are the steps for the same:

Step 1: Establishing a Secure Host

i. Establish a tunnel to your localhost using a free service like Ngrok using the following command:

ngrok http http://localhost:80

(if ngrok is not installed in your machine, read this doc on how to create Ngrok server. Copy your generated Ngrok URL and paste it in the "host name". (make sure you create the server on port 80)

ii. Click on get manifest and copy the code generated.

Step 2: Creating Slack App and Manifest

i. Go to api.slack.com and access Your Apps.

ii. Select Create New App and choose From an app manifest.

iii. Pick your desired workspace, like Doctor Droid Community.

Step 3: Configuring App Manifest

i. Switch to the YAML tab and delete the placeholder content. Paste copied manifest in the required fields in your app manifest.

ii. After updating the manifest, select Create to register the new Slack app.

Step 4: Installing App to Workspace

i. Install the app to your workspace by clicking Install to Workspace and authorize the necessary permissions.

Step 5: Retrieving Slack Keys

i. Once the app is installed, navigate to OAuth & Permissions to get the Bot User OAuth Token.

ii. Locate your App ID in the App Credentials section.

Step 6: Finalizing Integration

i. Return to the Slack Integration Setup page in your application, and input the Bot User OAuth Token and App ID.

ii. Test the connection to ensure your Slack integration is functioning correctly.

iii. Click Save to finalize the integration.

You've now successfully integrated Slack with your application, allowing for enhanced communication and automation features.

If you encounter any issues, double-check your host, OAuth token and app ID, and ensure that you authorized the correct permissions during the installation process.