Skip to main content

Slack integration

The Slack integration posts Guard messages to a channel you choose. A routing workflow decides which events go there.

Connect SlackDirect link to Connect Slack​

  1. In the Guard Cloud dashboard, open Settings > Integrations > Slack.
  2. Select Connect Slack workspace and approve the HOL Guard app in Slack.
  3. Choose a channel under Choose Slack channel, then select Validate & save.
  4. Select Send test message to confirm delivery.
  5. Add a Slack action to a workflow under Settings > Automations. See Actions.

The channel list shows only channels the app can see. If it is empty, check the scopes below and select Reconnect workspace.

Slack scopesDirect link to Slack scopes​

ScopeWhy Guard asks for it
channels:readList public channels so you can pick one
groups:readList private channels the app belongs to
chat:writePost messages
chat:write.publicPost to a public channel without joining it first

Guard stores a bot token for the workspace. It does not ask for user scopes.

Private channelsDirect link to Private channels​

Invite the HOL Guard app to a private channel before you pick it. A message to a channel the app has not joined fails with not_in_channel.

What a message containsDirect link to What a message contains​

A message shows the investigation title, severity, status, and summary. For a real investigation it also has three buttons:

ButtonEffect
Assign To MeAssigns the investigation to the Guard account that connected Slack. It does not assign it to the Slack member who clicked
ResolveMarks the investigation resolved in Guard and records who clicked in Slack
Open In GuardOpens the investigation in the dashboard

When Guard already has a message for an investigation, later updates go to the same thread. Test messages have no buttons.

Guard does not map a Slack member to a Guard member when a button is clicked. Anyone who can see the message can use the buttons, so post to a channel limited to people who may act on investigations.

A Slack action in a workflow can also set a message template and the options Thread replies and Include event summary. See Actions.

TroubleshootingDirect link to Troubleshooting​

Guard shows the Slack error code in the delivery result.

ErrorFix
not_in_channelInvite the HOL Guard app to the channel, then retry
channel_not_foundThe channel was deleted, renamed, or made private. Choose it again
is_archivedChoose an active channel
invalid_auth or account_inactiveThe stored bot token is no longer valid. Select Reconnect workspace
missing_scopeReconnect Slack so Guard can request the current scopes
rate_limitedSlack asked Guard to slow down. Guard waits for the period Slack names before it retries

If messages stop arriving, check the health checklist on the service page, send a test message, and confirm the workflow that uses Slack is active.

NextDirect link to Next​