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