> ## 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 Outlook

> Read, organize, draft, and send Outlook mail from TypeScript automations.

Import Outlook actions and triggers from `automate.ax/outlook`. They use the
shared Microsoft connection and expose normalized camelCase message, folder,
recipient, and attachment shapes. Action inputs accept plain values or
compatible signals, while triggers return message signals.

```ts theme={null}
import { automation } from "automate.ax"
import { markAsRead, onNewEmail } from "automate.ax/outlook"

export default automation("Mark Outlook mail as read", () => {
  const email = onNewEmail()
  markAsRead({ messageId: email.messageId })
})
```

## Accounts

Leave `account` unset to use the project's default Microsoft binding, or use
`microsoftAccount` for a named binding. See [Integration accounts](/concepts/integration-accounts).
Trigger account selection is static.

Outlook message IDs and conversation IDs are different. Actions on one message
use `messageId`; `conversationId` groups related mail but is not accepted as a
message ID.

<CardGroup cols={2}>
  <Card title="Send and draft" href="/reference/integrations/outlook/actions/send-email">
    Compose, draft, reply, and forward mail.
  </Card>

  <Card title="Read and search" href="/reference/integrations/outlook/actions/list-messages">
    List, search, and retrieve messages and folders.
  </Card>

  <Card title="Organize" href="/reference/integrations/outlook/actions/move-message">
    Update read state, flags, categories, and folders.
  </Card>

  <Card title="Attachments" href="/reference/integrations/outlook/actions/list-attachments">
    List, download, add, and remove attachments.
  </Card>
</CardGroup>
