# Slack

> Put Ally or one of your agents in Slack for DMs, channel @mentions, thread replies, and /ally.

Source: https://docs.getlinkai.com/integrations/slack

Slack connects your Slack workspace to Link AI so Ally or one of your agents replies in DMs, channel @mentions, threads, and the `/ally` slash command. It uses the same knowledge and skills the agent has everywhere else.

## What you can do

- **Direct messages**: team members DM the Link AI bot in Slack and get agent replies.
- **@mentions**: mention the bot in any channel it is in and it replies in that thread.
- **Thread replies**: the agent keeps context and continues the conversation inside a thread.
- **`/ally` slash command**: ask from anywhere with `/ally your question`. Slack acknowledges privately, then posts the reply.

## Before you start

- Installing the app into Slack is an admin action. If you are not a Slack admin, your admin approves the install first.
- Decide what answers in Slack. Each Slack connection routes to exactly one of:
  - **Ally**, your personal agent, or
  - **A specific agent**, one of your custom agents.

The assignment is exclusive: picking one clears the other, so it's always clear who is answering.

## Connect

### Open the integration
Open **Integrations** → **Slack** and click **Connect**.

### Authorize Link AI
A Slack window asks you to authorize Link AI for your Slack workspace. Approve it. You return to Link AI with Slack connected.

### Pick what answers
In the Slack tile, choose **Ally** or a specific agent from your agents list.

You should now be able to DM the bot, mention it in a channel, or use `/ally` from anywhere in that Slack workspace.

## How it works

- Messages from Slack are verified, then routed to your chosen agent.
- Replies post back into the same DM or thread, so conversations stay in context.
- The agent uses the same knowledge base, tools, and skills it uses in chat and other channels.
- Each Slack workspace connects to one Link AI workspace and routes to one agent at a time.
- Disconnecting Slack removes only the connection. Your agents and their settings stay as they are.

## Troubleshooting

**The bot does not reply in a channel**
Add the bot to that channel and mention it directly with `@`.

**/ally says not connected**
Your Slack workspace has not finished connecting to a Link AI workspace. Run the connect flow first.

**DM sent, no reply**
Confirm an agent is assigned in the Slack tile (Ally or a specific agent). With no assignment, nothing answers.

**Replies stopped after removing the app**
If the app was uninstalled or its access revoked in Slack, the connection deactivates automatically. Reconnect from **Integrations** → **Slack**.

**Wrong agent is answering**
Open the Slack tile and switch the assignment. The previous choice clears automatically.

## Next steps

**[Ally](https://docs.getlinkai.com/getting-started/ally)**:
See what Ally can do for your team.

**[Channels](https://docs.getlinkai.com/agents/channels)**:
Run your agent on every channel.
