---
title: "How to Build and Deploy a Microsoft Teams Bot"
url: "http://35.223.47.52/blog/how-to-build-and-deploy-a-microsoft-teams-bot/"
date: "2026-08-13T13:00:30+00:00"
modified: "2026-08-13T13:00:31+00:00"
type: "post"
---

# How to Build and Deploy a Microsoft Teams Bot

[Blog](http://35.223.47.52/blog) / [Tutorials](http://35.223.47.52/blogs/tutorials/) / How to Build and Deploy a Microsoft Teams Bot [Tutorials](http://35.223.47.52/blogs/tutorials/) · August 13, 2026 

How to Build and Deploy a Microsoft Teams Bot
=============================================

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34ca1e0546a9d333bb35a_Kunal-3-150x150.png)Kunal Mishra

4 min read

 

 

 [](https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2F35.223.47.52%2Fblog%2Fhow-to-build-and-deploy-a-microsoft-teams-bot%2F) [](https://twitter.com/intent/tweet?url=http%3A%2F%2F35.223.47.52%2Fblog%2Fhow-to-build-and-deploy-a-microsoft-teams-bot%2F&text=How%20to%20Build%20and%20Deploy%20a%20Microsoft%20Teams%20Bot)  

 

 

 

  Table of Contents - [Using Knit’s Teams Bot](#)
- [Step I: Adding the Teams link during setup](#)
- [Step II: Installing Knit’s Bot in the team](#)
- [Using Your own Bot](#)
- [Create your Bot with MS Teams](#)
- [Distributing your app to clients](#)
 
  Using Knit’s Communication APIs, you can send text as well as interactive messages to any Teams 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 production.

Using Knit’s Teams Bot
----------------------

> The Knit Unified API’s Teams Bot is for only testing and getting familiar with communication APIs. For the production use cases, organizations must setup their own bots.

Using Knit MS Teams bot for communication purpose mainly requires two steps-

### Step I: Adding the Teams link during setup

1. First, you click on the MS Teams icon in the communication section of Knit apps.
2. On clicking the MS Teams icon you have to add your Teams link in which the bot needs to be installed \[Check this out [How to get teams link](https://d2mk0xd61wwcji.cloudfront.net/msteams/Teams-LINK-NEW.gif)\]

![how to build a MS Teams Bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730440_640325bbb2d784a5da6f6137_ms%2520teams%2520image%25201.png)

### Step II: Installing Knit’s Bot in the team

1\. The Knit Bot will be installed via a package file provided by us. Click on the *\_\*\*Upload an app\*\*\_*

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730467_640332c44476ae09833db72d_ms%2520teams%2520image%25202.png)

2\. Then choose*\_\*\*Upload a custom app\*\*\_* . Add Knit’s Package here. \[[Knit’s Bot Package](https://d2mk0xd61wwcji.cloudfront.net/msteams/Knit-MSTeams-Bot.zip)\]

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730446_6403330c91cc497e024bf2a0_ms%2520teams%2520image%25203.png)

3\. After successful upload a pop-up will open where you click on – *\_\*\*Add to a team\*\*\_*

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730436_64033348b02d520e9e5b203c_ms%2520teams%2520image%25204.png)

4\. Then select the \_\*\*General\*\*\_ channel in the populated channels list.

> 👍 Congratulations your setup is complete. You can use this Bot for development or testing purpose.

Using Your own Bot
------------------

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

This involves a two step process –

1. Create your Bot with the MS Teams.
2. Provide OAuth credentials to knit using \[[Register OAuth Cred](https://developers.getknit.dev/reference/client-oauth-credentials-api)\]

### Create your Bot with MS Teams

1\. First, you need *\_Developer Portal\_ App* from Microsoft Teams Store to build MS Teams Bot.

![create your own bot with Microsoft Teams](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730461_640334933cec2f133b8d9a8d_ms%2520teams%2520image%25205.png)

2.After Installing it, open and navigate to the *\_ Apps\_* section*.*

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573043a_640334d2580e0ad6586d35aa_ms%2520teams%2520image%25206.png)

3\. Now, select the \*\*+\*\* icon to create a new app.

‍

4\. When you add the name of your app, you will be asked to provide the Developer name, terms of use etc in the *\_Basic Information\_* section. Fill out all the details carefully and then click on the  *\_Save\_* button.

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730464_6403358fcf85eb30f548fc77_ms%2520teams%2520image%25207.png)

 5. Next, visit the *\_Branding\_* section to add your icon and other display information.

‍

6\. Click on the *\_App Features\_* section and select *\_Bot\_*.

‍

7\. Next, create one Bot by selecting *\_Create a new Bot\_*.

![create MS Teams bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573045e_640335e89d8878cca674e6a6_ms%2520teams%2520image%25208.png)

8\. Here, you will see the \*\*+\*\* icon to add a new Bot.

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730458_6403361b7a29d0763aad9ecc_ms%2520teams%2520image%25209.png)

9\. After giving Name to the Bot, you need to configure the endpoint address. Set this to \[[Teams Bot End Point](https://workflow-engine.sandbox.getknit.dev/watchers/wt_T9mktlLzUJ5DPaJqq4wNVI)\]

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730449_6403368f2f3cce102546e513_ms%2520teams%2520image%252010.png)

10\. Click on the *\_Client Secrets\_* option and then *\_Generate Client Secret\_*. (Keep this information handy it will be required during OAuth Registration with Knit.)

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573042d_640336dd5d745f25b1e68692_ms%2520teams%2520image%252011.png)

11\. Now, copy this key as it is a one time secret. After clicking *\_OK \_* you will be shown the below screen and your Bot would have been configured.

![MS teams bot](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573043d_640337fc3437b84ae35aaf2b_ms%2520teams%2520image%252012.png)

12.Now you need to link this bot to your newly created App in *\_Step 6\_*. You will see this bot in the dropdown. Select this Bot, then select *\_Team\_* scope and click on *\_Save\_* button.

### Distributing your app to clients

1\. Click on the *\_Publish\_* button on the top right corner in the app home page.

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa15730432_640339057a29d04697b0e367_ms%2520teams%2520image%252013.png)

2\. You will see the following options.

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573045b_64033928951debd21b839857_ms%2520teams%2520image%252014.png)

To use within your org, select publish to org. For distributing to clients download the package.

‍

3\. If you have followed the right steps and filled in all the necessary information correctly, you will be able to download it.

> If you have missed any of mandatory fields, errors will be listed for missing fields shown in the image below

![](https://uploads-ssl.webflow.com/6347ea26001f02554e92ff94/64803909551782fa1573044d_640339588779d1a5ae8abe18_ms%2520teams%2520image%252015.png)

4\. In the example above, the developer website URL, privacy terms etc. are missing. You need to fix all errors before you can download the package. It can be used to install in any team using steps described in the section \_Using Knit’s Teams Bot\_.

 

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

Changing integration landscape, one organization at a time‍

 

 

 

 

 

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

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

### [How to Create a Slack Bot in 5 Minutes: A to Z Guide](http://35.223.47.52/blog/how-to-create-a-slack-bot/)

You can create your own Slack Bot in just a few minutes with the Knit Unified API. Read this step-by-step…

 August 13, 2026 · 3 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-yellow-scaled-640x400.png) [Tutorials](http://35.223.47.52/blogs/tutorials/) 

### [What Should You Look For in A Unified API Platform?](http://35.223.47.52/blog/what-should-you-look-for-in-a-unified-api-platform/)

The right unified API can solve all your integration woes at minimal effort and cost. Read this to know how…

 August 13, 2026 · 14 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-yellow-scaled-640x400.png) [Tutorials](http://35.223.47.52/blogs/tutorials/) 

### [Fetch all Employee Details from Rippling API](http://35.223.47.52/blog/fetch-all-employee-details-from-rippling-api-gujuda/)

Technical guide on Rippling API to Fetch all Employee Details from Rippling API

 August 13, 2026 · 2 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)
