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

# Slack

> Connect your agent to Slack: threading, typing indicators, plan cards, Block Kit, and tool approval.

Use Slack as a messaging channel for your agent. Users can DM or @mention the bot. Novu keeps thread context, shows typing and plan cards during the turn, can attach files on replies, and can post Approve / Deny cards before gated tools run. Connect it from the [Setup](#setup) section.

## Capabilities

| Capability | Support |
| - | - |
| Full context history | Yes |
| Threaded replies | Yes |
| Live typing indicator (custom status text) | Yes |
| React with eyes on inbound messages | Yes |
| Plan card (native) | Yes |
| Rich text / Block Kit | Yes |
| Tap-to-respond buttons | Yes |
| Emoji reactions (both directions) | Yes |
| Message edits in place | Yes |
| Action / MCP tool approval | Yes |
| MCP connect card | Yes |
| Resolve conversation | Yes |
| File sharing | Yes |
| Streaming word-by-word | Yes |
| Quote reply | Plain post |

Full matrix: [Channels overview](https://docs.novu.co/agents/channels/overview.md).

## Examples

### Inbound thread

A user @mentions the agent in a thread. Novu adds an eyes reaction, shows typing and a plan card while the agent runs tools, then replies in the same thread with optional action buttons.

### Tool approval

When a tool is gated, Slack shows a native approval block (**Deny**, **Approve once**, **Always allow this tool**). The handler resumes after the user selects an option.

## Create a Slack app

When the dashboard or CLI asks for a Slack App Configuration Token:

1. Open [Slack API apps](https://api.slack.com/apps).
2. Under **Your App Configuration Tokens**, click **Generate Token**.

![Generate Slack token](https://mintcdn.com/novu-c5de82d9/GgsvkDH1Mx055NRY/images/agents/quickstart/generate-slack-token.png?fit=max\&auto=format\&n=GgsvkDH1Mx055NRY\&q=85\&s=3317c804540eb819472823bd49592682)

3. Select your workspace and click **Generate**.
4. Copy the token (starts with `xoxe.xoxp-`) and paste it into Novu or the CLI.
5. Finish the install / Allow flow in Slack.

![Install app](https://mintcdn.com/novu-c5de82d9/GgsvkDH1Mx055NRY/images/agents/quickstart/install-app.png?fit=max\&auto=format\&n=GgsvkDH1Mx055NRY\&q=85\&s=c1cc531047e6a1e0c5e3d4dcd2d9e0cc)

The configuration token is used once to create the Slack app. Novu does not store it.

## Distribute to other workspaces

A Slack app only works in the workspace where it was created. Users in any other workspace are blocked when they click your connect button until you enable Public Distribution.

1. Open your app in [Slack API apps](https://api.slack.com/apps).
2. Go to **Manage Distribution**.
3. Complete the checklist and click **Activate Public Distribution**.

Novu does not turn this on for you. Public Distribution is a manual setting in Slack, and the app manifest that Novu generates leaves it off.

## Setup

| Framework / Platform | Guide |
| - | - |
| AI SDK | [Connect AI SDK to Slack](https://docs.novu.co/agents/get-started/ai-sdk.md) |
| LangChain | [Connect LangChain to Slack](https://docs.novu.co/agents/get-started/langchain.md) |
| Mastra | [Connect Mastra to Slack](https://docs.novu.co/agents/get-started/mastra.md) |
| Claude managed agent | [Connect Claude managed agent](https://docs.novu.co/agents/get-started/claude-managed.md) |
| AWS Claude managed agent | [Connect AWS Claude managed agent](https://docs.novu.co/agents/get-started/aws-claude.md) |

## Connect component

Use `SlackConnectButton` from `@novu/react` so end users can install the Slack app and link it to your agent from your product UI. Render it on an authenticated page and pass the signed-in user's id as `subscriberId`. See [Connect components in production](https://docs.novu.co/agents/custom-code-agent/connect-components.md#use-connect-components-in-production).

```tsx theme={null}
import { NovuProvider, SlackConnectButton } from '@novu/react';

// userId: the signed-in user's id from your app's auth session
export function SlackConnect({ userId }: { userId: string }) {
  const subscriberId = userId;
  const integrationIdentifier = 'slack-integration-identifier';
  const agentIdentifier = 'agent-identifier';

  return (
    <NovuProvider
      applicationIdentifier={process.env.NEXT_PUBLIC_NOVU_APPLICATION_IDENTIFIER!}
      subscriberId={subscriberId}
    >
      <SlackConnectButton
        integrationIdentifier={integrationIdentifier}
        connectionIdentifier={`${subscriberId}:${integrationIdentifier}:${agentIdentifier}`}
        connectionMode="subscriber"
        connectLabel="Install agent ↗"
        connectedLabel="Connected to Slack"
        onConnectSuccess={() => {
          // Workspace linked
        }}
        onConnectError={(error: unknown) => {
          console.error(error);
        }}
      />
    </NovuProvider>
  );
}
```

Props and appearance options: [Connect components](https://docs.novu.co/agents/custom-code-agent/connect-components.md#slack-connect-button).

## Related

> [card] [Reply](https://docs.novu.co/agents/custom-code-agent/building-blocks/reply.md)
>
> Plain text, markdown, and interactive cards.

> [card] [Typing indicator](https://docs.novu.co/agents/custom-code-agent/building-blocks/typing-indicator.md)
>
> Custom status text while the handler runs.

> [card] [Tool approval](https://docs.novu.co/agents/custom-code-agent/building-blocks/tool-approval.md)
>
> Approve / Deny before tools execute.

> [card] [Edit sent messages](https://docs.novu.co/agents/custom-code-agent/building-blocks/edit-sent-messages.md)
>
> Update a sent message in place.

> [card] [Connect components](https://docs.novu.co/agents/custom-code-agent/connect-components.md)
>
> SlackConnectButton props and appearance.


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