Skip to main content

Slack connector

Connect Akmatori to Slack to post alerts and investigation results, listen for alert messages in channels, and answer @mentions and direct messages.

Quick setup

Create the Slack app from a ready-made app manifest, then add its tokens to Akmatori.

1

Create the Slack app

Click the button to create an Akmatori app in your Slack workspace from the manifest:

Create Akmatori App in Slack
This opens Slack's app creation page with the scopes, event subscriptions and Socket Mode already set.
2

Install to your workspace

After Slack creates the app, click Install to Workspace and approve the permissions.

3

Copy the tokens to Akmatori

In your new Slack app, collect these three values:

Bot TokenOAuth & Permissions → Bot User OAuth Tokenxoxb-...
App TokenBasic Information → App-Level Tokens → Generate Token and Scopesxapp-...
When generating the App Token, enter any name (e.g. akmatori) and add the connections:write scope. This is the only scope needed for Socket Mode.
Signing SecretBasic Information → App Credentialsabc123...

In Akmatori, open Connectors → Discover → Slack and enter these tokens. Then, on the Slack connector's Channels tab, create one or more channels for posting results, listening for alert messages, or delivering cron job output. Test connection checks the bot token.

4

Invite the bot to a channel

In Slack, invite the bot to each channel that Akmatori should listen to. Slack sends the bot only the messages of channels it is a member of:

text
/invite @Akmatori

Add an app icon (optional)

Upload the Akmatori logo so people can recognize the bot:

Akmatori Logo
  1. Download the logo with the button below
  2. In your Slack app settings, go to Basic Information
  3. Scroll to Display Information
  4. Click the app icon area and upload the logo
Download Akmatori Logo

Bot token scopes

The manifest requests these bot token scopes. The descriptions are Slack's own:

Actions Akmatori can take

app_mentions:readView messages that directly mention @Akmatori in conversations
channels:joinJoin public channels in a workspace
chat:writeSend messages as @Akmatori
chat:write.publicSend messages to channels @Akmatori isn't a member of
incoming-webhookPost messages to specific channels in Slack
reactions:writeAdd and edit emoji reactions

Information Akmatori can view

channels:historyView messages and content in public channels that Akmatori has been added to
groups:historyView messages and content in private channels that Akmatori has been added to
im:historyView messages in direct messages that Akmatori has been added to
channels:readView basic information about public channels in a workspace
groups:readView basic information about private channels that Akmatori has been added to
files:readView files shared in channels and conversations that Akmatori has been added to
metadata.message:readRead message metadata in channels that Akmatori has been added to
reactions:readView emoji reactions and their associated content
team:readView the name, email domain, and icon for workspaces Akmatori is connected to
users.profile:readView profile details about people in a workspace
users:readView people in a workspace
users:read.emailView email addresses of people in a workspace
Akmatori connects to Slack over Socket Mode, an outbound WebSocket connection. Slack does not need a public URL for your Akmatori instance, and you do not need to open inbound firewall ports for Slack.

Troubleshooting

Bot doesn't respond

Check that Socket Mode is on and the App Token is correct. Make sure the bot is a member of the channel.

Messages do not appear

Check that the Bot Token has the chat:write scope and that the Akmatori channel uses the Slack channel ID (for example C0123456789), not the channel name.

Missing App Token

Go to Basic Information → App-Level Tokens and click "Generate Token". Add the connections:write scope.

Slack channels

Akmatori can also listen to Slack channels for alerts that other bots and integrations post there. Use this when a monitoring tool already posts alerts to Slack and you do not want to set up a webhook for it.

By default, a listening channel processes only bot and integration messages as alerts. Top-level messages from people are ignored unless they @mention the bot, or you turn on Process human messages as alerts for the channel. To test a channel with the default settings, post from a monitoring tool or bot. To talk to Akmatori directly, @mention the bot.
Bot message detectionPicks up top-level messages from monitoring bots and integrations (a bot_message subtype or a bot ID). An LLM extracts the alert fields; only messages classified as alerts start an investigation.
Thread repliesWhile the agent works, the alert message has an hourglass reaction. The investigation result is posted as a thread reply to the alert.
@mentions@mention the bot in an alert thread to ask follow-up questions about the incident. Thread replies without a mention get no text answer.
Feedback captureWhen a thread reply is clearly feedback on the incident, Akmatori saves it to Memory and adds a thumbs-up reaction. If the reply @mentions the bot, Akmatori also posts a short confirmation in the thread.
Set up listening on the Slack connector's Channels tab. Add the Slack connector once, then turn on Can listen for each channel that Akmatori should monitor.

Next steps