Slack Tool > Introduction to Slack Tool recipe > Configure the Slack app
  

Configure the Slack app

Configure a Slack app to call an API whenever a new message arrives.
To configure a Slack app, perform the following steps:
  1. 1Create a Slack app.
  2. 2Set the required OAuth scopes.
  3. 3Enable token rotation.
  4. 4Add the bot to a channel.

Step 1. Create a Slack app

  1. 1Go to https://api.slack.com/apps and log in to your account.
  2. 2Click Create New App > From scratch.
  3. 3Enter the app name and select your workspace, and then click Create App as shown in the following image:
  4. The image shows the Name app & choose workspace dialog box where you can enter the app name and select your workspace.
  5. 4Select your app, go to Basic Information > App Credentials, and copy the client ID and client secret.
  6. You will need these to configure the Slack tool.

Step 2. Set the required OAuth scopes

  1. 1Go to OAuth & Permissions.
  2. 2In the Bot Token Scopes section, click Add an OAuth Scope and add one of the following OAuth scopes:
  3. 3In the Redirect URLs section, click Add New Redirect URL and add the redirect URLs in <POD URL>/oauthcallback format and save the URLs. For example, https://na1.dm-us.informaticacloud.com/oauthcallback as shown in the following image:
  4. The image shows the redirect URLs.
  5. 4Install the app using the Install App section.

Step 3. Enable token rotation

  1. 1Go to OAuth & Permissions.
  2. 2In the Advanced token security via token rotation section, click Opt In.
  3. The image shows the Opt In option on the OAuth & Permissions page.
  4. 3Save the bot OAuth token.
  5. You will need this to configure the Slack tool.

Step 4. Add the bot to a channel

  1. 1In Slack, go to the required channel.
  2. 2Invite the bot using /invite @<your-bot-name>.