slack.addReaction adds the installed bot’s emoji to a message.
Example
automations/react-to-slack-message.automation.ts
Inputs
Output
ReturnsSignal<void>. Slack can reject an unknown emoji or a duplicate reaction from the same bot.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add an emoji reaction to a Slack message.
slack.addReaction adds the installed bot’s emoji to a message.
import { automation } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Acknowledge Slack messages", () => {
const posted = slack.onMessagePosted()
slack.addReaction({
conversationId: posted.conversationId,
emoji: "eyes",
timestamp: posted.message.transform((message) => message.timestamp),
})
})
| Input | Type | Required | Description |
|---|---|---|---|
conversationId | string | Yes | Conversation containing the message. |
timestamp | string | Yes | Target message timestamp. |
emoji | string | Yes | Emoji name without surrounding colons, such as eyes. |
Second argument: { account } | string | IntegrationAccountReference<"slack"> | No | Slack binding. |
Signal<void>. Slack can reject an unknown emoji or a duplicate reaction from the same bot.