---
title: "How to Create a Slack Bot in 5 Minutes: A to Z Guide"
url: "https://lb.getknit.dev/blog/how-to-create-a-slack-bot/"
date: "2026-08-13T13:00:32+00:00"
modified: "2026-08-22T15:13:04+00:00"
type: "post"
---

# How to Create a Slack Bot in 5 Minutes: A to Z Guide

[Blog](https://lb.getknit.dev/blog) / [Tutorials](https://lb.getknit.dev/blogs/tutorials/) / How to Create a Slack Bot in 5 Minutes: A to Z Guide [Tutorials](https://lb.getknit.dev/blogs/tutorials/) · August 13, 2026 

How to Create a Slack Bot in 5 Minutes: A to Z Guide
====================================================

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Akshat Jain

3 min read

 

 

 [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Flb.getknit.dev%2Fblog%2Fhow-to-create-a-slack-bot%2F) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Flb.getknit.dev%2Fblog%2Fhow-to-create-a-slack-bot%2F&text=How%20to%20Create%20a%20Slack%20Bot%20in%205%20Minutes%3A%20A%20to%20Z%20Guide)  

 

 

 

  Table of Contents - [Using Knit’s Slack Bot](#)
- [Using your own Bot](#)
- [1. Create your Bot with Slack](#)
- [2. Register the OAuth creds like client ID and secret of your Bot with Knit](#)
 
  Using Knit’s Communication APIs, you can send text as well as interactive messages to any Slack channel or user either using Knit’s Bot or your own Bot. In this guide, we will help you understand which kind of bot to use for development and which one to use for production.

Using Knit’s Slack Bot
----------------------

> Knit Slack Bot is meant for testing only. It will help you get familiar with the communication APIs. *For the production use cases, you must setup your own bots.*

If you wish to use Knit Slack Bot then it is a simple one step process. You just need to select Slack, after which a typical question (similar to other apps) will be asked. You need to follow the OAuth flow and the app will be installed in your workspace.

However, this should be done **only for development/testing**. \*\*Please do not use Knit’s Bot in production!\*\*

Using your own Bot
------------------

> You should use your own Bot in production. Do not use Knit’s Bot for production use cases.

There are two simple steps to get started with your own Bot.

1. Create your Bot with Slack.
2. Register the OAuth creds like client ID and secret of your Bot with Knit.

### 1. Create your Bot with Slack

Follow these steps below to create a Bot on Slack.

1\. Visit [Your Apps](https://api.slack.com/apps) and sign in with your account to create App.

2\. Click on the option: *\_Create new App\_*

![create a slack bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd4221217_64002d5cf179487f152da8ea_slack%2520bot%2520image%25201.png)

3\. Select the option: *\_From scratch\_*

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd422120a_64002d8dc7e623e7d349a072_slack%2520bot%2520image%25202.png)

4\. You will be asked to provide a Name of App. You can choose a workspace linked to the signed in account in which you wish to create the app. Click on: *\_Create App\_*

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd4221207_64002e265208933914107104_slack%2520bot%2520image%25203.png)

5\. On clicking *\_Basic Information\_* in the left panel, at the end of page you can add *\_Display Information\_* such as App Image, Description etc.

6.Now, configure the redirect URL .

Things to consider:

1\. Use <https://app.getknit.dev/oauth/authorize> for Production

2\. Use <https://app.sandbox.getknit.dev/oauth/authorize> for Sandbox

3\. Do not forget to click on ***\_Save URLs\_***

![building a slack bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd42211f6_64002f0f5208936846119bd8_slack%2520bot%2520image%25204.png)

7\. Now, add the following scopes

- channels:read
- chat:write
- chat:write.customize
- chat:write.public
- groups:read
- users:read
- users:read.email

![slack bot scopes](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd42211ed_64002f5c44e92a178c0b3c35_slack%2520bot%2520image%25205.png)

‍

8\. If you want to subscribe to other Slack events, [click here and do the steps mentioned in this guide](https://dash.readme.com/project/knit/v1.0/docs/slack-event-subscription).

9\. Congratulations! Your Bot setup is done. Next, you must enable public distribution of the Bot for your users to discover and use this new Bot. To begin, click on *\_Manage Distribution\_* on the left panel

![create a slack bot distribution](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd42211e0_64002fc8b17b0e482fc0e94d_slack%2520bot%2520image%25206.png)

10\. To finally enable public distribution, just tick the checkbox for ***\_I’ve reviewed and removed any hard-coded information\_*** and then click on ***\_Activate Public Distribution\_*** button

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd42211f2_6400303c52089373c513122e_slack%2520bot%2520image%25207.png)

11\. Congratulations! Your Bot is now available for others to install.

![launch your own Slack bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/6480390aa732ebdbd4221201_6400305a15f766738fd64147_slack%2520bot%2520image%25208.png)

You have now created your own Slack Bot! However, there’s one small step to do before you can use Knit’s API on your new Bot.

### 2. Register the OAuth creds like client ID and secret of your Bot with Knit

Share Bot’s client ID and client secret with Knit via [Register OAuth Cred API](https://developers.getknit.dev/reference/client-oauth-credentials-api) and that’s it. You’re all set to use Knit’s API! 😀

---

**Ready to build this integration?**
Explore Knit’s [Slack integration](/integration/slack/) or read more about our [Unified Communication API](/integration-categories/unified-communication-api/).

 

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Written by Akshat Jain

Coding chaos into innovation and building from zero to scale

 

 

 

 

 

   Keep Reading
------------

  ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-yellow-scaled-640x400.png) [Developers](https://lb.getknit.dev/blogs/developers/) 

### [How to Get a Slack Bot Token (Step-by-Step)](https://lb.getknit.dev/blog/how-to-get-a-slack-bot-token-step-by-step/)

Create a Slack app, add bot token scopes, install it to your workspace, and copy the xoxb- bot token to…

 June 15, 2026 · 8 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Developers](https://lb.getknit.dev/blogs/developers/) 

### [Slack API Integration Guide: Web API, Events API &amp; Webhooks (2026)](https://lb.getknit.dev/blog/slack-api-integration-guide/)

A complete Slack API integration guide for developers. Learn which API surface to use — Web API, Events API, Incoming…

 May 13, 2026 · 19 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](https://lb.getknit.dev/blogs/tutorials/) 

### [How to Build and Deploy a Microsoft Teams Bot](https://lb.getknit.dev/blog/how-to-build-and-deploy-a-microsoft-teams-bot/)

You can either build Microsoft Teams Bot on your own or you can use Knit's Unified API to create it…

 August 13, 2026 · 4 min read 

 

  

 

  \#1 in Ease of Integrations
---------------------------

![4.9 out of 5 stars](/wp-content/themes/knit/assets/images/g2/g2-star-rating.svg)

4.9 out of 5 stars on G2

![G2 Leader, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-leader.svg)![G2 Fastest Implementation, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-fastest-implementation.svg)![G2 High Performer, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-high-performer.svg)![G2 Best Est. ROI, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-best-roi.svg)

 

  Put Integrations on Autopilot. Talk to Experts.
-----------------------------------------------

Knit is loved by customers across the globe due to our seamless product and white glove support. You'll love us too!

 [Talk to a Human](/book-demo)
