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

# On app mention

> Start an automation when a message mentions the installed Slack bot.

`onAppMention` emits messages that directly mention the installed bot.

## Example

```ts automations/answer-slack-mention.automation.ts theme={null}
import { automation } from "automate.ax"
import { onAppMention, replyToThread } from "automate.ax/slack"

export default automation("Answer Slack mention", () => {
  const mention = onAppMention()
  replyToThread({
    conversation: mention.conversationId,
    text: "I saw your mention.",
    threadTimestamp: mention.message.timestamp,
  })
})
```

## Options

| Option    | Type                                             | Required | Default         | Description                              |
| --------- | ------------------------------------------------ | -------- | --------------- | ---------------------------------------- |
| `account` | `string \| IntegrationAccountReference<"slack">` | No       | Project default | Static Slack workspace binding to watch. |

## Trigger data

Returns a signal with `conversationId`, optional `conversationType`,
`eventTimestamp`, `workspaceId`, and a normalized `message`. The message always
has `text`, `timestamp`, and `type`; author, thread, Block Kit, attachment, file,
reaction, reply, app, bot, and subtype fields are present when Slack supplies
them.

The account cannot be chosen by a runtime signal. Slack only delivers mentions
visible to the installed app.
