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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Microsoft Teams

> Read teams and chats, send messages, and react to Microsoft Teams events.

Import Teams actions and triggers from `automate.ax/teams`. They use the shared
Microsoft account connection. Names are convenient configuration values, while
the returned `teamId`, `channelId`, `chatId`, and `messageId` values are stable
references for follow-up work. Action inputs accept plain values or compatible
signals; trigger options are static.

```ts theme={null}
import { automation } from "automate.ax"
import {
  onChannelMessagePosted,
  replyToChannelMessage,
} from "automate.ax/teams"

export default automation("Answer Teams channel posts", () => {
  const message = onChannelMessagePosted({
    team: "Engineering",
    channel: "Help",
  })
  replyToChannelMessage({
    team: message.teamId,
    channel: message.channelId,
    messageId: message.messageId,
    body: "Thanks — we’ll take a look.",
  })
})
```

## Accounts

Leave `account` unset to use the default Microsoft binding, or pass a binding
created with `microsoftAccount`. See [Integration accounts](/concepts/integration-accounts).
Microsoft Teams team APIs require a work or school Microsoft 365 account; some
are unavailable to personal Microsoft accounts.

<CardGroup cols={2}>
  <Card title="Channel messages" href="/reference/integrations/teams/actions/send-channel-message">
    Read and post in team channels.
  </Card>

  <Card title="Chats" href="/reference/integrations/teams/actions/create-chat">
    Create and work with one-to-one and group chats.
  </Card>

  <Card title="Teams and members" href="/reference/integrations/teams/actions/list-joined-teams">
    Discover teams, channels, and members.
  </Card>

  <Card title="Message triggers" href="/reference/integrations/teams/triggers/on-channel-message-posted">
    Start automations from channel or chat messages.
  </Card>
</CardGroup>
