AI Integrations
SDK 2.0 AI libraries are deprecated
For .NET, AI-specific libraries and older patterns from SDK 2.0 are deprecated. In SDK 2.1, use Microsoft.Teams.Apps as the Teams transport/runtime layer and integrate your preferred AI stack (for example Microsoft Agent Framework, OpenAI SDK, MCP, and A2A) in your handlers.
Microsoft Teams SDK provides the platform and conversational interface for your app while remaining agnostic to the underlying intelligence. You can choose any AI framework, model, or protocol that suits your scenario and integrate it into your message handlers. The samples below walk through a few common ways to do that, from a single bot reasoning with an agent to multiple bots collaborating with each other.
- Build an agent in Teams — sample-backed by
core/samples/ExtAIBot, combining SDK 2.1 + Azure OpenAI + MCP tools. - Enhancing the Teams Experience — same
ExtAIBotsample shows streaming, AI-generated metadata, adaptive-card clarification, suggested follow-ups, citations, and feedback handling. - Exposing Teams to AI Agents (MCP) — sample-backed by
core/samples/McpServer, usingAddMcpServer()and[McpServerTool]. - Bot-to-Bot with A2A — sample-backed by
core/samples/A2ABot, wiring A2A + Teams proactive handoff.