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
- In the Guard Cloud dashboard, open Settings > Integrations > Slack.
- Select Connect Slack workspace and approve the HOL Guard app in Slack.
- Choose a channel under Choose Slack channel, then select Validate & save.
- Select Send test message to confirm delivery.
- 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
| Scope | Why Guard asks for it |
|---|---|
channels:read | List public channels so you can pick one |
groups:read | List private channels the app belongs to |
chat:write | Post messages |
chat:write.public | Post 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:
| Button | Effect |
|---|---|
| Assign To Me | Assigns the investigation to the Guard account that connected Slack. It does not assign it to the Slack member who clicked |
| Resolve | Marks the investigation resolved in Guard and records who clicked in Slack |
| Open In Guard | Opens 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.
| Error | Fix |
|---|---|
not_in_channel | Invite the HOL Guard app to the channel, then retry |
channel_not_found | The channel was deleted, renamed, or made private. Choose it again |
is_archived | Choose an active channel |
invalid_auth or account_inactive | The stored bot token is no longer valid. Select Reconnect workspace |
missing_scope | Reconnect Slack so Guard can request the current scopes |
rate_limited | Slack 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.