> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

> Connect alert destinations and Struct Agent conversations in Slack.

Connect Slack for the requested alert destinations and Struct Agent conversations. Reuse the current workspace connection and confirm which channels Struct should join or monitor.

## Inspect access and existing connections

Use a claimed workspace with permission to configure connections.

```bash theme={null}
struct whoami --json
struct connections catalog slack --json
struct connections list --json
```

Use the catalog's current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.

## Connect with the CLI

Relay the `waiting_for_human` URL immediately while reading JSON Lines. The person approves the intended provider account in a browser signed in to Struct as the CLI user.

Replace example values with the intended resource:

```bash theme={null}
struct connect slack --no-browser --json
```

Choose the intended channel and verify access:

```bash theme={null}
struct slack channels list --query production --json
struct slack channels join '#production-alerts'
```

Joining a public channel is safe to repeat. Invite Struct to private channels in Slack. A connection or channel join does not enable every job: configure [triage](https://docs.struct.ai/agent/jobs/triage-alerts.md), [monitor delivery](https://docs.struct.ai/observability/monitors/results-and-delivery.md) or [incident channels](https://docs.struct.ai/agent/jobs/incident-channels.md) separately.

## Verify and recover

Use the returned connection ID:

```bash theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null} theme={null}
struct connections show CONNECTION_ID --json
```

Inspect `health` and any missing access, not only the exit code. Struct has no saved-connection test for this app (`struct connections test` returns `test_not_supported`), so confirm access with the check below. If the approval link expired, start the connection command again and use the new link. Do not reconnect to a different account silently.

Connection health proves checked access; it does not prove an investigation or alert delivery.

Confirm that Struct can see the channel you will use: `struct slack channels list --query CHANNEL_NAME --json`. Invite Struct to a private channel first.

## Permissions

Struct's Slack app asks for bot scopes only, so it never acts as you. Reconnect Slack from Connections to grant scopes added later.

### Messages and threads

Read the messages Struct is mentioned in and the threads it works in, and reply.

Scopes: `app_mentions:read`, `channels:history`, `groups:history`, `im:history`, `mpim:history`, `metadata.message:read`, `chat:write`, `assistant:write`.

### Channels

Find channels, join the ones you invite Struct to, and read their details.

Scopes: `channels:read`, `channels:join`, `groups:read`, `im:read`, `mpim:read`.

### Create channels

Create a public or private channel, such as a channel for alerts. Only needed if you ask Struct to create one.

Scopes: `channels:manage`, `groups:write`.

### Files and canvases

Read files and canvases shared with Struct, and attach charts and reports.

Scopes: `files:read`, `files:write`, `canvases:read`.

### Links

Unfurl links to Struct investigations.

Scopes: `links:read`, `links:write`, `links.embed:write`.

### Reactions

Read and add reactions to show progress.

Scopes: `reactions:read`, `reactions:write`.

### People and workspace

Resolve who is in a conversation.

Scopes: `users:read`, `users:read.email`, `users.profile:read`, `team:read`.

### Calls

Read call details shared in channels.

Scopes: `calls:read`.

* If your workspace connected before `channels:manage` and `groups:write` were added, reconnect Slack from Connections before asking Struct to create channels.

Permission catalog version `2026-11-04.1`. See [permission changes](https://docs.struct.ai/reference/permission-changes.md).

## Persistent agents in Slack

Prefer the agent's own stable Slack app identity for posts, thread replies, and scheduled messages. Reuse the same app across sessions so teammates can mention and recognize it.

1. In the agent's host, find its existing Slack app or set up a dedicated one for the intended workspace. Record the handle and app or bot user ID. Invite that handle to the chosen channels. Complete any Slack approval the host reports.
2. Set the responder or routine to deliver through that app. If the app cannot post, keep the result in the session and report the missing access. Use the configured destination for each job.
3. Verify the author of a setup message or introduction. Test a teammate's mention in an alert thread and check that the same bot replies there. Test DMs if the team will use them. Keep telemetry access and changes within the permissions configured for the job.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.