# Microsoft Teams

> Connect a Lobu agent to Microsoft Teams as a bot.

Lobu's Microsoft Teams adapter supports direct chats, channel mentions, and interactive workflows.
Under the hood, Lobu uses the Chat SDK Teams adapter with Azure Bot Framework.

<PlatformChatExamples platform="teams" client:visible />

## Setup

1. Register a bot in the [Azure Portal](https://portal.azure.com) under **Azure Bot** (or **Bot Framework Registration**).
2. Note the **App ID**, **App Password** (client secret), and **Tenant ID**.
3. In the Azure Bot's **Channels** section, enable the **Microsoft Teams** channel.
4. Run `lobu connections add teams` to add the connection (prompts for the app ID and app password), or run `lobu init` to scaffold a new project and pick Microsoft Teams in the wizard.

## Configuration

<PlatformConfigTable platform="teams" />

## Authentication

The adapter supports two authentication modes:

- **Password auth** (default) — provide `appPassword` directly. Simplest setup.
- **Managed Identity (MSI)** — when `appPassword` is omitted, the adapter uses Azure Managed Identity. Useful for Azure-hosted deployments.

## Features

- **Direct messages** and **channel @mentions** trigger the agent.
- **Streaming responses** with throttled message edits.
- **Adaptive Cards** for interactive elements (permission grants, user prompts, configuration).
- **Access control** — restrict which users or groups can interact.
- **Multi-tenant and single-tenant** deployment modes.

## Typical Use Cases

- Internal assistant for engineering, HR, or IT teams.
- Workflow automation triggered by team conversations.
- Knowledge base bot accessible from Teams channels.
