back to tutorials

How to integrate ChatBotKit with Slack

Learn how to integrate ChatBotKit with Slack in this step-by-step tutorial. Follow along to create your Slack Bot Integration, set up your bot on Slack, and test it out. With ChatBotKit integrated with Slack, you can use natural language processing and AI to automate tasks and respond to user inquiries.

In this tutorial, we will guide you through the process of setting up ChatBotKit with Slack integration.

Step 1: Create a Slack Bot Integration

The first step is to create your Slack Bot Integration:

  1. Navigate to the Integrations.
  2. Give your Slack Bot a name and a backstory. You can always go back and update your Backstory if you are not sure at the moment.
  3. Under Advanced Options you can optionally select your dataset, skillset and model. For now let’s select the new ChatGPT Model → gpt-3.5-turbo’.
  4. Leave the Signing Secret and Bot Token fields empty for now
  5. Click on the Create button.

Step 2: Setup your Bot on Slack

Once your Integration is created you will notice a button on the bottom of the page that says Install. Let’s click on that button to start the setting up process:

  1. The install button will redirect you to Slack. You should see a window popup similar to the image bellow. Pick the Slack Workspace you want to integrate your bot in and click Next.

  2. Next, Slack will prompt you to Review and approve your Bot’s scope before creating the app. Click on the Create button to continue.

  3. Once your Slack bot has been created let’s click on the Install to Workspace button and click on the Allow button afterwards.

  4. Once you install the app, scroll down to the App Credentials section of the Slack page and click on the Show under Signing Secret. Copy the secret and paste it the Signing Secret input field in the page where you configured your bot.

  5. Navigate back to the Slack Page and click the OAuth & Permissions Tab on the left of the screen.

  6. On the OAuth & Permissions page scroll down to the OAuth Tokens for Your Workspace and copy the Bot User OAuth Token

  7. Navigate back to ChatBotKit and paste the token in the Bot Token field

  8. Last, click the Save button.

Step 3: Testing your Slack Bot

After Saving your settings in ChatBotKit. Go to the Slack Workspace that you bot is installed and invite them in your preferred channel. You can simply type @BotName and click enter. Slack will prompt you to invite your bot to the channel if it has been invited.

Type again @BotName and ask him anything. The bot will take some time to answer the question and a thread will be created. You can then continue your conversation in the thread.

Congratulations! You have successfully set up ChatBotkit Slack Bot. You can now explore further how to improve your bot by providing better backstory, specific knowledge through custom datasets etc.