1. Home
  2. Kore.ai Conversational Platform
  3. Bot Builder Tool
  4. Adding Channels to your Bot
  5. Adding the Slack Channel

Adding the Slack Channel

To setup Slack as a channel, you will need to associate the bot with a Slack app. Adding the Slack channel to your Kore.ai Bot allows end-users for your bot to interact with your bot using their Slack accounts.

  1. Create a Slack App – Create and configure a new app in Slack, and then copy app data from Kore.ai Bot Builder into the Slack app configuration for the bot name and Redirect URL.
  2. Copy Authorization Details – Copy app authorization details from Slack to the Bot Builder Slack channel Get App Details tab.
  3. Create a Bot User in Slack – In Slack, add a bot username to identify your bot.
  4. Enable the Channel – In Bot Builder, save the channel settings.

To add the Slack channel to a bot

To complete this procedure, you must already have a Slack account and be a member of a Slack team.

  1. In the Bots section of the Bot Builder, click the Bot that you want to add the Slack channel to.
  2. On the Channels tab, click the Slack icon. The Slack Channel page gets displayed.
  3. In a new browser tab, Login to Slack developer portal and navigate to Apps section https://api.slack.com/apps. If this is your first app, click on Create an App and if you already have some apps, then click on Create New App.
  4. In the Create App pop-up screen, enter App Name and select a team from Development Slack Team drop-down. Use your bot name as the App Name.
  5. After entering the required information, click on Create App. Slack will now create a new app and you would be redirected to Basic Information section of the new app.
  6. Navigate to OAuth & Permissions tab and click on Add a new Redirect URL. Copy the Redirect URL provided in the Configurations tab of Slack channel page and enter in the Redirect URLs field. Click on Add and then click on Save URLs.

  7. To create a Bot user, navigate to Bot Users section and click on Add a Bot User.

  8. Provide values for Display name, the Default username and then Save changes. Try to use your bot name as Display name and Default username. A bot user is now added to your Slack app.
  9. To enable Interactive Components, navigate to Interactive Messages section and click on Enable Interactive Components. Copy the Webhook URL provided in the Configurations tab of this page and enter it in Request URL field. Click on Save Changes.
  10. Navigate to Basic Information section and scroll down to App Credentials section. Capture the values of Client ID, Client Secret, and Verification Token fields and provide them in the Configurations tab of Slack Channel page.
  11. If you would like to enable public distribution of your app on Slack, you would need to proceed with following steps. Navigate to Manage Distribution section and click on Remove Hard Coded Information and select the checkbox I’ve reviewed and removed any hard-coded information and click on Activate Public Distribution.

  12. After you submit your app for public distribution on Slack, you can also optionally submit your app to the Slack directory. Click on Submit to App Directory option and you will be redirected to separate form. Fill out the form and submit for approval.
  13. Navigate to the Configurations tab to review and complete the channel setup.

The Successfully added Slack channel message is displayed at the top of the Bot Builder Homepage. In Slack, it is optional to submit your app to the Slack App Directory.

Editing the Slack Channel

To edit the Slack channel, hover your mouse over the channel and click to modify. You can make necessary updates to your channel configurations and save them. You may also disable or delete the channel information by clicking the Settings icon.
Select one of the following commands to modify the channel:

  • Disable/Enable – Click Disable to temporarily disable use of the Slack channel for your Bot. To enable the use of the Slack, click Enable.
  • Delete – Click Delete, and then click OK in the Delete Confirmation dialog to permanently delete the Bot channel configuration.
Warning: This operation is permanent, and cannot be undone.
Was this article helpful to you? Yes 1 No