On this page
How to integrate ChatBotKit with Slack
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:
- Navigate to the Integrations.
- 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.
- 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’.
- Leave the Signing Secret and Bot Token fields empty for now
- 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:
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.
Next, Slack will prompt you to Review and approve your Bot’s scope before creating the app. Click on the Create button to continue.
Once your Slack bot has been created let’s click on the Install to Workspace button and click on the Allow button afterwards.
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.
Navigate back to the Slack Page and click the OAuth & Permissions Tab on the left of the screen.
On the OAuth & Permissions page scroll down to the OAuth Tokens for Your Workspace and copy the Bot User OAuth Token
Navigate back to ChatBotKit and paste the token in the Bot Token field
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.
How to use the meta-data feature in the ChatBotKit Widget
Learn how to utilize the meta-data feature in the ChatBotKit Widget to tag and track your conversations effectively. Improve user interactions and behavior analysis. Follow the step-by-step guide to create a new website widget, embed it into your website, initialize the widget with meta-data, and use the meta-data for various purposes.
Building a Stateless Conversational AI Chatbot with Next.js and ChatBotKit SDK
Learn how to build a stateless conversational AI chatbot using Next.js and ChatBotKit SDK. This tutorial will guide you through the process of setting up a Next.js project, creating an API endpoint, and designing a chat user interface. Get started today and build your own chatbot!