Skip to main content
slack.onReactionAdded emits reactions added to Slack items visible to the installed bot.

Example

automations/handle-slack-approval.automation.ts

Options

account?: string | IntegrationAccountReference<"slack"> statically selects the workspace and defaults to the project’s Slack binding.

Trigger data

Returns eventTimestamp, workspaceId, reaction, userId, optional itemUserId, and item. The reaction value doesn’t include colons.
  • { type: "message"; conversationId; messageTimestamp; conversationType? }
  • { type: "file"; fileId }
  • { type: "fileComment"; fileId; fileCommentId }
item.type identifies which item fields are present.