← Open Source

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App.

AI EngineeringBring agent to usersBuild agent workflow (SDK)
Momentum
+1stars in 24 hours+0.1%
1.42k
Stars
925
Forks
+2
This week
81
Contributors
Created 2020-12-16 · Updated 2026-12-06 · #6060 today
Top developers
README

Important

The Bot Framework SDK used to build some of our (now archived) samples is deprecated. Existing customers can continue to use Bot Framework SDK without disruption. Support tickets for Bot Framework SDK are no longer being serviced as of December 31st, 2025. If you have an existing agent built with the Bot Framework SDK, you can upgrade to the Teams SDK. For details on core changes and migration steps, see the migration guide

Welcome to the Teams Samples Repo

This repository features samples using Teams SDK and TeamsJS. These samples were created to help developers design and build collaborative and rich AI-powered experiences for Microsoft Teams. Teams SDK reduces boilerplate code and external dependencies while providing native AI capabilities and Teams-specific abstractions. TeamsJS provides the client-side APIs that let apps integrate with the Microsoft Teams host and build contextual, interactive experiences inside Teams.

Teams SDK supports C#, JavaScript, and Python.

Teams Platform offers samples to help developers jumpstart their development journey. These samples provide clear and concise examples of how to utilize Teams SDK or TeamsJS in your apps and agents. These samples are curated to show a wide variety of scenarios across multiple surfaces while maintaining a small subset of samples to preserve clarity.

The repository is organized into 3 different folders as noted below:

Samples

Teams SDK – Contains 8 new condensed samples built with the Teams SDK

Archived – Contains 100+ older samples

TeamsJS – Contains 58 samples built with the TeamsJS Library

The samples are sorted by SDK in the sections below to help you find exactly what you are looking for. For more in-depth information on these samples and how to utilize them see our TEAMS PLATFORM DEVELOPER DOCUMENTATION

Each sample contains a README that describes the scenario and platform features being used. The links below will navigate you to the folders containing samples using Teams SDK or TeamsJS. The archived samples based on deprecated frameworks and SDKs are available within the Teams SDK folder.

Installing npm dependencies

Use npm 8.3.0 or newer for samples with overrides in package.json; these overrides pin patched transitive dependencies, including loader-utils, Immer, and constantinople. Run npm ci from the sample's npm project directory to use its checked-in lockfile. For legacy React samples with peer-dependency conflicts, use npm ci --legacy-peer-deps without removing the security overrides.

TeamsJS samples using React Router 7 require Node.js 20 or newer and React 18 or newer. These samples retain their existing declarative routing; use the types bundled with React Router rather than installing the React Router 5 @types/react-router-dom package.

Teams SDK

Teams SDK Samples

Teams JS Client Library

Teams JS Samples

Issues and bugs can be filed directly on the SDK repository, our engineering team will respond directly.

Teams SDK Repositories:

.NET

TypeScript

Python

TeamsJS Repository:

Teams JS

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store