Skip to main content
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 (without colons), userId, optional itemUserId, and a discriminated item:
  • { type: "message"; conversationId; messageTimestamp; conversationType? }
  • { type: "file"; fileId }
  • { type: "fileComment"; fileId; fileCommentId }
Branch on item.type before accessing message or file-specific identifiers.