Skip to main content

AI Integrations

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 — create an agent with Microsoft Agent Framework, add a local clarification tool and remote MCP tool servers, stream responses into Teams, and preserve conversation history across turns.
  • Enhancing the Teams Experience — build on the base integration with richer conversational features: clarification cards, suggested follow-up prompts, inline citations, and structured feedback handling.
  • Exposing Teams to AI Agents (MCP) — turn your bot into an MCP server so external agents can reach real users through Teams chat with tools like find_user, notify, ask, and request_approval. Useful for human-in-the-loop workflows.
  • Bot-to-Bot with A2A — two Teams bots, each backed by its own agent, hand users off to each other over the Agent2Agent protocol, opening a proactive chat with the user so the conversation continues seamlessly.

All samples are available in the microsoft/teams.py examples.