> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Teams

> Learn how to integrate AI agents with Microsoft Teams using xpander.ai. Create intelligent AI agents that can securely access channels, chats, meetings, and files to automate tasks and improve team collaboration.

## About Microsoft Teams

**Microsoft Teams** is a cloud-based collaboration platform that enables organizations to communicate, meet, and work together in a unified workspace across chat, meetings, calls, and file sharing.

Key features include:

* **Channels and team collaboration**: Create teams and channels to organize conversations by department, project, or topic, with threaded discussions and shared workspaces.

* **Chat and messaging**: Communicate instantly through 1:1 chats, group chats, and channel messages with rich text, mentions, and file attachments.

* **Meetings and calls**: Host online meetings, video conferences, webinars, and voice calls with screen sharing and recording capabilities.

* **File sharing and collaboration**: Store and collaborate on shared files directly within Teams, integrated with Microsoft 365 apps.

* **Security and compliance**: Enterprise-grade security, identity management, and compliance controls built into the Microsoft 365 ecosystem.

## Authentication Options

Below are possible authentication options you can choose:

<Tabs>
  <Tab title="Built-in xpander.ai Auth">
    The simplest way to connect Microsoft Teams is by using xpander.ai's built-in authentication:

    1. Go to the **Connectors** section in the sidebar of your xpander.ai dashboard.
    2. Select **Microsoft Teams** from the available integrations.
    3. Click **+ Create new connection**.
    4. Enter a **connector name** as desired, e.g., "xpander-teams".
    5. Choose **OAuth2** as the authentication method.
    6. Click **Sign in with Microsoft Teams**.
    7. Grant xpander.ai permission to access your account.
    8. Save the configuration.

           <img src="https://mintcdn.com/xpanderai-099931d1/p8guNjwEWdyREJ70/images/connectors/microsoft-teams/img_1.png?fit=max&auto=format&n=p8guNjwEWdyREJ70&q=85&s=5feaef2ba78a42ff408fc76a0da10b0d" alt="Img 1" width="1966" height="1332" data-path="images/connectors/microsoft-teams/img_1.png" />
  </Tab>
</Tabs>

## Integration of Microsoft Teams into an AI Agent

Once you’ve configured your Microsoft Teams connector with the authentication option described above, you can integrate it into your AI agent with xpander.ai:

1. In your xpander.ai dashboard, navigate to the **Agents** page, then click an agent to open the **Agent Configuration** tab.

2. Select **Tools**, then click **Add Tools**.

3. Select **Connectors**.

4. Choose **Microsoft Teams** with the same **connector name** you configured in the previous section (e.g., xpander-teams).

5. Select the available Microsoft Teams operations that suit your use case.

   To grant your agent channel management and chat capabilities, enable the following operations.

   * **List User Chats**
   * **Create Chat**
   * **Create Chat Message**
   * **List Chat Messages**
   * **Create Joined Team Channels**
   * **List Joined Team Channel Messages**

6. Click **Deploy** to update your agent.

<img src="https://mintcdn.com/xpanderai-099931d1/p8guNjwEWdyREJ70/images/connectors/microsoft-teams/img_2.png?fit=max&auto=format&n=p8guNjwEWdyREJ70&q=85&s=1815950cac96c54933326ac509ca9e0c" alt="Img 2" width="2880" height="1558" data-path="images/connectors/microsoft-teams/img_2.png" />

## AI Agent Microsoft Teams Prompt Library

Below are possible prompts or use cases you can try after integrating Microsoft Teams into your xpander.ai AI agent:

```
List all the teams I’m a member of.
```

```
Get all channels in team <team_name>.
```

```
Create a new channel named <new_channel_name> in team <team_name>.
```

## Related Resources

* [Using Tools & Connectors in the xpander.ai platform](/guides/agents/tools-connectors)
* [Microsoft Teams Documentation](https://learn.microsoft.com/en-us/microsoftteams/)
