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

# Reply to channel message

> Send a reply beneath a Microsoft Teams channel message.

`replyToChannelMessage` posts in the reply thread of a root channel message.

## Example

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

export default automation("Reply in Teams", () => {
  const posted = onChannelMessagePosted({
    team: "Engineering",
    channel: "Help",
  })
  replyToChannelMessage({
    team: posted.teamId,
    channel: posted.channelId,
    messageId: posted.messageId,
    body: "We’re investigating.",
  })
})
```

## Inputs

Required `team`, `channel`, root `messageId`, and `body` accept compatible
signals. `bodyType` is `"text" | "html"` and defaults to `"text"`. Optional
`account` defaults to the project Microsoft binding.

## Output

Returns the created normalized `TeamsChatMessage`. Its `messageId` identifies
the reply and `replyToId` identifies the root. Use the root ID again to post
another reply or list the thread.
