Skip to main content

Slack

Send messages, create channels, and react to events in Slack from your Hakona workflows.

Connecting Slack

  1. Go to Settings → Integrations → Slack.
  2. Click Add Connection and authorize Hakona in your Slack workspace.
  3. Grant the requested scopes (see below) and click Allow.

Required scopes

ScopeUsed for
chat:writePosting messages
channels:readListing channels in the variable picker
channels:historyReading messages as trigger data
reactions:writeAdding emoji reactions

Triggers

New message in channel

Fires when a new message is posted in a specific channel. The trigger data includes the message text, sender, timestamp, and channel ID.

App mention

Fires when someone mentions your Hakona app in a channel or DM.

Actions

Post message

Post a plain-text or Block Kit message to a channel or DM.

FieldDescription
ChannelChannel name, ID, or @username for a DM
MessageText content. Supports Slack mrkdwn and variable interpolation.
ThreadOptional — thread reply to an existing message timestamp

Add reaction

Add an emoji reaction to a specific message.

Create channel

Create a new public or private channel.

Example workflow

Notify on GitHub PR merge → Slack

  1. Trigger: GitHub — Pull request merged
  2. Action: Slack — Post message to #engineering

Message:

:merged: *{{trigger.pull_request.title}}* was merged by {{trigger.pull_request.merged_by.login}}
{{trigger.pull_request.html_url}}