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

# Send channel message

> Send a new root message to a Microsoft Teams channel.

`sendChannelMessage` posts a new top-level channel message.

## Example

```ts automations/post-teams-update.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { sendChannelMessage } from "automate.ax/teams"

export default automation("Post Teams update", () => {
  onHttpRequest({ scope: "automation" })
  sendChannelMessage({
    team: "Engineering",
    channel: "General",
    bodyType: "html",
    body: "<p><strong>Deployment complete</strong></p>",
  })
})
```

## Inputs

| Input      | Type                                                 | Required | Default         | Description                                                   |
| ---------- | ---------------------------------------------------- | -------- | --------------- | ------------------------------------------------------------- |
| `team`     | `string`                                             | Yes      | —               | Exact team name or ID.                                        |
| `channel`  | `string`                                             | Yes      | —               | Exact channel name or ID.                                     |
| `body`     | `string`                                             | Yes      | —               | Message content.                                              |
| `bodyType` | `"text" \| "html"`                                   | No       | `"text"`        | Content representation; HTML must use Teams-supported markup. |
| `account`  | `string \| IntegrationAccountReference<"microsoft">` | No       | Project default | Microsoft binding.                                            |

## Output

Returns the created `TeamsChatMessage`, including its `messageId`, normalized
body, and any provider-generated timestamps, URL, sender, and related metadata.
