Microsoft Teams SDK Adds HTTP Server Adapter for Existing AI Agents

The Microsoft Teams SDK now provides an HTTP server adapter that allows developers to connect existing AI agents to Microsoft Teams without modifying their core code. This approach lets agents built for other platforms like Slack or LangChain run in Teams with minimal changes.
The Pattern
The core pattern involves three steps using the Teams TypeScript SDK:
import { App as TeamsApp, ExpressAdapter } from '@microsoft/teams.apps';
const adapter = new ExpressAdapter(expressApp); // 1. wrap your server
const teamsApp = new TeamsApp({ httpServerAdapter: adapter }); // 2. create the app
teamsApp.on('message', async ({ send, activity }) => {
// 3. handle messages
await send(/* your agent's response */);
});
await teamsApp.initialize(); // registers POST /api/messages on your server
The SDK injects a POST /api/messages route into your existing Express app. This is the endpoint Teams uses to deliver messages to your bot. Your server remains unchanged otherwise; the SDK just adds that one endpoint.
Scenario 1: Slack Bot Integration
If you have a Slack bot built with Bolt, you can run both Slack and Teams bots on the same Express server. The Teams SDK mounts at /api/messages while Slack uses /slack/events, allowing shared agent logic (LLM calls, database lookups, business rules) to live in plain functions that both handlers call.
Scenario 2: LangChain Integration
For existing LangChain chains, you can create a bridge file that imports your chain and connects it to Teams. The Teams message handler can invoke your LangChain chain and return responses to Teams users.
The SDK handles verification of incoming requests to ensure they're legitimately from Teams before invoking your handler, and automatically routes messages to the correct event handlers.
📖 Read the full source: HN AI Agents
👀 See Also

Zora: Offline-First AI Agent with Default-Deny Security and Local Memory
Zora is an AI agent that runs fully offline via Ollama by default, starts with zero access permissions, and maintains persistent memory across sessions. It addresses security and cost issues seen in other agents.

AI Agent Session Center: 3D Dashboard for Monitoring Claude Code Sessions
AI Agent Session Center is a real-time dashboard that visualizes Claude Code sessions as 3D robots in a cyberdrome, with animations showing agent status and features including live terminal views, approval alerts, and session resume. It installs via npx with lightweight bash hooks.
Cue AI Uses Gemma 4 for Faster Voice Dictation: 44% Latency Drop, 30% More Usage
Cue AI replaced a cloud-based text polish step with Google DeepMind's Gemma 4 E4B running locally via Ollama, cutting median latency from 876ms to 488ms and increasing dictation usage by 30%.

Introducing Lean Collab: A Multi-Agent Orchestrator for Long-Running LLM Tasks
Lean Collab is an open-source orchestrator designed to manage long-running LLM tasks using coordinated, parallel sub-agents.