Skip to main content
Share
Guides

Bot Framework SDK to Microsoft 365 Agents SDK: A Teams Bot Migration Guide

The Bot Framework SDK is retired and Microsoft points Teams bot developers to the Microsoft 365 Agents SDK. What still runs, what the multi-tenant cut-off means, the package and class mapping for JavaScript, C# and Python, a before-and-after echo bot, and the gotchas that break migrations.

Content & Engineering
Nov 11, 2026
8 min read
Last verified October 2026
microsoft 365 agents sdk vs bot frameworkbot framework sdk deprecatedazure bot multi tenant deprecatedteams bot framework sdkmicrosoft 365 agents sdk teams
TL;DR

The Bot Framework SDK is retired and Microsoft points Teams bot developers to the Microsoft 365 Agents SDK. What still runs, what the multi-tenant cut-off means, the package and class mapping for JavaScript, C# and Python, a before-and-after echo bot, and the gotchas that break migrations.

Key Takeaways
  • Microsoft stopped servicing Bot Framework SDK support tickets on 31 December 2025 and points Teams bot developers to the Microsoft 365 Agents SDK (C#, JavaScript, Python).
  • Existing bots keep running, but new multi-tenant Azure Bot registrations have not been possible since 31 July 2025.
  • Last verified: 25 October 2026 against the Bot Framework SDK repository, Microsoft Learn's Agents SDK overview and migration guides, and the Azure Bot Service quickstart.
  • The Bot Framework SDK repository now says: "The Bot Framework SDK is being retired with final long term support ending December 2025" and "Support tickets for the Bot Framework SDK will no longer be serviced as of December 31, 2025." The repository was archived on 5 January 2026.

The short answer

Microsoft stopped servicing Bot Framework SDK support tickets on 31 December 2025 and points Teams bot developers to the Microsoft 365 Agents SDK (C#, JavaScript, Python). Existing bots keep running, but new multi-tenant Azure Bot registrations have not been possible since 31 July 2025.

Last verified: 25 October 2026 against the Bot Framework SDK repository, Microsoft Learn's Agents SDK overview and migration guides, and the Azure Bot Service quickstart.

The Bot Framework SDK repository now says: "The Bot Framework SDK is being retired with final long term support ending December 2025" and "Support tickets for the Bot Framework SDK will no longer be serviced as of December 31, 2025." The repository was archived on 5 January 2026. Microsoft Learn's SDK landing page adds that the SDK "is no longer updated or maintained" and recommends the Microsoft 365 Agents SDK.

ComponentStatus (October 2026)Replacement
Bot Framework SDK (C#, JS, Python, Java)Retired; repo archived 5 Jan 2026; no support tickets since 31 Dec 2025Microsoft 365 Agents SDK
Bot Framework EmulatorArchived 5 Jan 2026Agents Playground
Bot Framework ComposerArchived 9 Jul 2025Copilot Studio (Microsoft's pointer)
Teams ToolkitRenamedMicrosoft 365 Agents Toolkit
Teams AI libraryRenamed; v1 deprecatedTeams SDK
Azure Bot resourceContinues; existing registrations unchangedSame resource, single-tenant or managed identity for new bots
Multi-tenant bot creationNot possible after 31 Jul 2025Single tenant or user-assigned managed identity

What keeps working, and what does not

A retired SDK is not a switched-off service. Your bot's code is a web app you host; it keeps answering Teams as long as the Azure Bot resource, your credentials and your host keep working. Microsoft's migration guides say the same about Azure: "Your existing Azure resources remain unchanged during this migration. Continue using your current Azure Bot registration."

What you lose is the safety net:

The multi-tenant change matters even if you never migrate code. If you delete and recreate a multi-tenant bot registration, for example while moving subscriptions, you cannot get it back as multi-tenant. And the new bot type changes how tokens are validated: a single-tenant bot with code still configured for multi-tenant authentication fails with a 401. Our reference page for the single-tenant vs multi-tenant 401 covers the exact symptom and fix.

Two tooling traps: the archived Composer and Emulator "currently only support multi-tenant bots", and the Java Bot Framework SDK "only supports multi-tenant bots". The Agents SDK has no Java version, so a Java bot that needs a new registration is a port, not a migration.

What the Microsoft 365 Agents SDK is

Microsoft's migration guidance calls it "the evolution of the Azure Bot Framework SDK." It keeps the activity protocol, the Azure Bot resource and the channel model (Teams, Microsoft 365 Copilot, web chat and others) and replaces the programming model on top. The overview lists three languages:

LanguageRuntime per the Agents SDK overviewMain package
C#".NET 8.0 SDK"Microsoft.Agents.Builder
JavaScript"Node.js version 18 and later" (the Node migration guide lists 20 or higher)@microsoft/agents-hosting
Python"version 3.9 to 3.11" (the Python migration guide says 3.10 or higher)microsoft-agents-hosting-core

The runtime figures disagree between Microsoft's own pages, so use the newest runtime your host supports within both ranges: Node 20 or 22, Python 3.10 or 3.11. All three languages ship stable 1.x packages.

Agents SDK or Teams SDK?

Microsoft now has two SDKs that can build a Teams bot. The Teams AI library has been renamed Teams SDK (Microsoft's bots overview says it is generally available for JavaScript and C#), and Teams AI library v1 is deprecated. The Agents SDK is the direct successor to Bot Framework and is the documented migration path, with guides per language. If you are migrating an existing Bot Framework bot, the Agents SDK is the shorter road, because Microsoft wrote the mapping for you.

Try it yourself
Build your first chatbot free
Free plan, no credit card required. Live on your site in about 10 minutes.
Start building free

The mapping: packages, classes and settings

JavaScript / TypeScript

Bot Framework SDKAgents SDK
botbuilder@microsoft/agents-hosting
botframework-schema@microsoft/agents-activity
botbuilder-dialogs@microsoft/agents-hosting-dialogs
botbuilder-azure (Cosmos DB)@microsoft/agents-hosting-storage-cosmos
Teams helpers@microsoft/agents-hosting-extensions-teams
Manual Express setupstartServer() in @microsoft/agents-hosting-express
ConfigurationBotFrameworkAuthenticationloadAuthConfigFromEnv() / AuthConfiguration
MicrosoftAppId / MicrosoftAppPassword / MicrosoftAppTenantIdclientId / clientSecret / tenantId

C# / .NET

Bot Framework SDKAgents SDK
Microsoft.Bot.BuilderMicrosoft.Agents.Builder
ASP.NET Core integrationMicrosoft.Agents.Hosting.AspNetCore + Microsoft.Agents.Authentication.Msal
Schema typesMicrosoft.Agents.Core
Teams extensionsMicrosoft.Agents.Extensions.Teams
IBotFrameworkHttpAdapterIAgentHttpAdapter

Python

botbuilder-core becomes microsoft-agents-hosting-core, imported as microsoft_agents (underscores, not dots), and BotFrameworkAdapter maps to CloudAdapter. See the Python migration guide for the full list.

Classes

Microsoft's Node.js guide is explicit: "The ActivityHandler is deprecated in favor of the new AgentApplication class." A compatible ActivityHandler exists in the Agents SDK so you can migrate in two steps, first imports, then the programming model. BotFrameworkAdapter is gone ("Replaced by CloudAdapter in Bot Framework, and removed from the Agents SDK").

Before and after: the echo bot

This is Microsoft's own example, condensed. Before, with the Bot Framework SDK:

const { ActivityHandler } = require("botbuilder");class EchoBot extends ActivityHandler {constructor() {super();this.onMessage(async (context, next) => {await context.sendActivity(`You said: ${context.activity.text}`);await next();});}}

After, with AgentApplication and the Express helper:

import { AgentApplication, MemoryStorage, MessageFactory } from "@microsoft/agents-hosting";import { startServer } from "@microsoft/agents-hosting-express";const agent = new AgentApplication({ storage: new MemoryStorage() });agent.onConversationUpdate("membersAdded", async (context) => {await context.sendActivity("Welcome!");});agent.onMessage(async (context) => {await context.sendActivity(MessageFactory.text(`Echo: ${context.activity.text}`));});startServer(agent);

Three differences to notice: handlers no longer call next(); state is built in (state.conversation is passed to handlers) instead of wired by hand; and routes can be registered for specific text, such as agent.onMessage("/reset", ...).

If you keep a manual Express server instead of startServer, add JWT validation yourself. Microsoft's guide warns that the Bot Framework SDK validated incoming tokens in the stack and the Agents SDK does not: use server.use(authorizeJWT(loadAuthConfigFromEnv())), and never disable it outside local development. Forgetting this is the most dangerous migration bug, because the bot still works, just for anyone who can reach the endpoint.

Microsoft Teams Deep Link Generator
Free tool - no signup, runs in your browser.
Open free tool

The changes that are easy to miss

The package swap is mechanical. These are the differences that compile fine and then fail at runtime:

Conversation references moved to the Activity

Proactive messaging (notifications, reminders, approval follow-ups) depends on storing a conversation reference and replaying it later. In the Bot Framework SDK those helpers were static methods on TurnContext. In the Agents SDK, per Microsoft's Node guide, they "now operate over the current activity instance": TurnContext.getConversationReference(activity) becomes activity.getConversationReference(), and the same applies to applyConversationReference, getMentions, removeRecipientMention and removeMentionText. Search your code for TurnContext. and fix every static call, or proactive sends will throw.

Some ActivityHandler methods are gone

The compatible ActivityHandler in the Agents SDK drops onCommand, onCommandResult, onEvent and onTokenResponseEvent. If your bot relied on generic event handling, for example for custom events from a web chat client, that code stops firing. Microsoft notes that specific event types are still supported; register handlers for the exact activities you need.

Activities are validated

The new @microsoft/agents-activity package parses activities with schema validation (Activity.fromJson(), Activity.fromObject()). Hand-built activity objects that the old SDK passed through untouched may fail that validation. If you construct cards or custom activities as plain objects, run them through the parser in a unit test.

Settings names, not values

The Azure values stay the same, but the old setting names "are no longer used and can be deleted later." The new code reads clientId, clientSecret and tenantId, so an environment that still sets only MicrosoftAppId and friends leaves the migrated bot without credentials. Set both names during the cutover if you deploy the same environment to old and new builds.

Migration steps, in order

  1. Inventory features. List what the bot uses: dialogs, Adaptive Cards, OAuth sign-in, proactive messages, Teams-specific events, storage. Then check the unsupported list: Microsoft's guidance says Adaptive Dialogs, Composer artifacts, LUIS and QnA Maker, Language Generation and the bf CLI are not carried over. A bot built in Composer needs a rewrite, not a migration.
  2. Swap packages and imports using the mapping tables. In JavaScript this is mostly find-and-replace on require statements.
  3. Rename settings. MicrosoftAppId becomes clientId, and so on. Keep the same values; your Azure Bot registration does not change.
  4. Restore JWT validation if you host your own server.
  5. Run on the compatible ActivityHandler first and test in Teams. This isolates packaging problems from logic changes.
  6. Move to AgentApplication handler by handler.
  7. Replace your tooling. Emulator becomes Agents Playground; Teams Toolkit is now Microsoft 365 Agents Toolkit.
  8. Check the bot type. In the Azure portal, confirm whether your Azure Bot is Multi Tenant, Single Tenant or User-Assigned Managed Identity, and that your auth configuration matches. Do not delete a multi-tenant registration you still need.
  9. Regression-test in Teams: personal chat, channel @mentions, cards, sign-in and proactive messages.

Errors you will see during the move

SymptomUsual cause after migrationReference
401 Unauthorized on every messageRenamed settings not loaded, or tenant type mismatch401 invalid app ID or password, 401 tenant mismatch
401 after a few monthsClient secret expired on the Entra app registration401 expired client secret
Bot silent in Teams, works in PlaygroundMessaging endpoint path or manifest bot ID differsbot not registered
403 in some tenantsOrg policy blocks custom apps403 bot disabled by admin
502 on some messages onlyYour handler throws, often on an unported dialog or a removed handler such as onEvent502 bot error

The full list is in the Microsoft Teams bot error reference, and rate limits for proactive messaging are on the Teams limits page. For the wider "bot does nothing" checklist, from manifest IDs to sideloading policy, see Teams bot not responding.

If you would rather not own a Teams bot codebase

For internal helpdesk, HR and IT bots, a full Agents SDK project can be more machinery than the job needs. Teams also supports Outgoing Webhooks, which Microsoft describes as a way to "skip the process of creating bots through the Microsoft Bot Framework": a team owner creates the webhook, users @mention it in a channel, and your service has five seconds to reply. The limits are real (team scope only, public channels only, no personal chat, only openURL card actions), but there is no SDK to migrate.

That is the route Conferbot's Microsoft Teams chatbot uses: you build the bot in the no-code chatbot builder, create an Outgoing Webhook in your team with Conferbot's callback URL, and save the security token Teams shows back in Conferbot. No Azure subscription is needed. The same bot can answer on Slack, your website and other channels, and the Free plan covers 600 conversations a month.

If you need personal chat, proactive messages or rich Adaptive Card actions, the Agents SDK route above is the right one.

Share this article:

Was this article helpful?

Ready to build your chatbot?

Join the businesses. Deploy on website, WhatsApp, and 11 more channels in minutes. Free forever plan available.

No credit cardNo coding13+ channels
Start Building Free

Get chatbot insights delivered weekly

Join 5,000+ professionals getting actionable AI chatbot strategies, industry benchmarks, and product updates.

🎯Automate this with a free chatbot

Build and deploy in 10 minutes. No coding needed.

❓FAQ

Bot Framework SDK to Microsoft 365 Agents SDK FAQ

Everything you need to know about chatbots for bot framework sdk to microsoft 365 agents sdk.

🔍
Popular:

Yes. Microsoft's repository says the Bot Framework SDK is being retired with final long-term support ending December 2025, and that support tickets are no longer serviced as of 31 December 2025. The repository was archived on 5 January 2026, and Microsoft points developers to the Microsoft 365 Agents SDK.

Not because of the SDK retirement itself. Your bot is code you host, and Microsoft's migration guides say existing Azure Bot registrations remain unchanged. Existing multi-tenant bots also continue to function. What stops is maintenance: no fixes, no security updates and no support tickets for the SDK.

Microsoft describes the Agents SDK as the evolution of the Bot Framework SDK. It keeps the Azure Bot resource and activity protocol but replaces ActivityHandler with AgentApplication, adds built-in state, renames packages and settings, and drops Adaptive Dialogs, Composer artifacts, LUIS, QnA Maker and Language Generation.

No. Microsoft's Azure Bot Service quickstart says multi-tenant bot creation is deprecated after 31 July 2025. Existing multi-tenant bots keep working, but new bots must be single tenant or use a user-assigned managed identity.

C# (.NET 8), JavaScript (Node.js) and Python. There is no Java version, so Java Bot Framework bots have to be ported to one of those languages.

Agents Playground, available standalone or through the Microsoft 365 Agents Toolkit (formerly Teams Toolkit). The Emulator repository was archived on 5 January 2026.

Yes, for channel bots. Teams Outgoing Webhooks let users @mention a bot in a team's channels and get a reply from your service within five seconds, without Bot Framework or Azure Bot registration. They cannot do personal chat or proactive messages.

About the Author

Content & Engineering

The Conferbot team writes about building, deploying, and improving AI chatbots.

View all articles
Skip the blank canvas
Start from one of 250+ free chatbot templates for lead generation, support, e-commerce, and 20+ industries - customize and launch in minutes.
Browse free templates

Related Articles

From the reference shelf

Fact-checked reference pages and free tools for the platform this article covers.

Omnichannel Platform

One Chatbot,
Every Channel

Your chatbot works seamlessly across WhatsApp, Messenger, Slack, and 6 more platforms. Build once, deploy everywhere.

View All Channels
Conferbot
online
Hi! How can I help you today?
I need pricing info
Conferbot
Active now
Welcome! What are you looking for?
Book a demo
Sure! Pick a time slot:
#support
Conferbot
New ticket from Sarah: "Can't access dashboard"
Auto-resolved. Password reset link sent.