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

# Slack Integration

> Automatically capture and organize files shared in your Slack channels

## Overview

The Drive AI integrates with Slack to automatically capture, organize, and make searchable every file shared in your Slack channels. Stop losing important documents in the endless scroll of messages—files shared in Slack are automatically saved and organized in your Drive AI workspace.

## How It Works

Once connected and invited to a channel, The Drive AI monitors for shared files:

1. **A file is shared** in a channel where The Drive AI app is invited
2. **The AI reads the file content**, considers the channel context, and matches it against your existing folder structure
3. **The file is imported and organized** into the appropriate folder automatically

All of this happens in real time—no manual intervention required.

## Connecting Slack

<Steps>
  <Step title="Connect Your Slack Workspace">
    Go to **Settings** > **Integrations** > **Slack** and click **Connect Slack**. Sign in to your Slack workspace and authorize The Drive AI app.
  </Step>

  <Step title="Invite The Drive AI to Channels">
    In each Slack channel you want monitored, type:

    ```
    /invite @the-drive-ai
    ```

    The Drive AI app **only has access to channels you explicitly invite it to**. It cannot see or access any channel it has not been added to.
  </Step>
</Steps>

<Info>
  The app installs as a single connection per Slack workspace. You control access by inviting or removing it from specific channels.
</Info>

## What Gets Imported

The Drive AI imports files shared in channels where the app is invited:

* **Documents**: PDF, DOCX, DOC, TXT, RTF
* **Spreadsheets**: XLSX, XLS, CSV
* **Presentations**: PPTX, PPT
* **Images**: PNG, JPG, GIF

## Organization

The AI uses context-aware routing to place files in the right folders:

| Factor                 | Example                                       |
| ---------------------- | --------------------------------------------- |
| **File content**       | Contract detected → Contracts folder          |
| **Channel context**    | Shared in #legal → Legal folder               |
| **Existing structure** | Matches against your current folder structure |

You can also define custom routing rules to override or refine automatic decisions.

## Key Features

### Full-Text Search

Search the content of every file shared in Slack—not just filenames. Once imported, files are fully indexed and searchable through Chat Mode or the search bar.

### Permanent Storage

Files remain safe in your Drive AI workspace even when Slack deletes originals due to storage limits or retention policies.

### File Activity Audit

Complete logs showing who shared what, when, and where it was filed, with links back to the original Slack messages.

### Real-Time Notifications

Get alerts for important files with filtering by file type, sender, or keywords.

### Slack Connect Support

The integration works with shared channels between organizations.

## Managing Channels

### Adding a Channel

Invite the app to any channel you want monitored:

```
/invite @the-drive-ai
```

### Removing from a Channel

Remove the app from a channel to stop monitoring:

```
/remove @the-drive-ai
```

## Managing Your Connection

### Disconnecting

1. Go to **Settings** > **Integrations** > **Slack**
2. Click **Disconnect**
3. Confirm the disconnection

<Warning>
  Disconnecting stops future file imports. Files already imported to your workspace are not deleted.
</Warning>

## Privacy & Security

<AccordionGroup>
  <Accordion title="What data do you access?" icon="eye">
    The Drive AI only accesses files shared in channels where the app has been invited. We do not read or store your Slack messages—only the files attached to them.
  </Accordion>

  <Accordion title="Which channels can the app see?" icon="hashtag">
    Only channels where you explicitly invite the app using `/invite @the-drive-ai`. The app cannot see or access any other channels, DMs, or messages.
  </Accordion>

  <Accordion title="Is my data secure?" icon="shield-halved">
    All data transfers are encrypted. Your Slack credentials are handled through secure OAuth—we never see or store your password.
  </Accordion>

  <Accordion title="Can I revoke access?" icon="key">
    Yes. You can disconnect The Drive AI from Slack at any time. You can also revoke access from your Slack workspace settings.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Files Not Importing" icon="file-circle-xmark">
    * Make sure The Drive AI app is invited to the channel — type `/invite @the-drive-ai` in the channel
    * Check that the Slack integration is connected in Settings
    * Ensure the file type is supported
    * Check that you have sufficient storage space
  </Accordion>

  <Accordion title="App Not Appearing in Slack" icon="plug-circle-xmark">
    * Verify you completed the authorization in Settings > Integrations > Slack
    * You may need Slack workspace admin permissions to install apps
    * Try disconnecting and reconnecting
  </Accordion>
</AccordionGroup>

## What's Next?

<CardGroup cols={2}>
  <Card title="Microsoft Teams" icon="users" href="/integrations/microsoft-teams">
    Auto-organize files from Microsoft Teams.
  </Card>

  <Card title="Email Integration" icon="envelope" href="/integrations/email-integration">
    Auto-import attachments from Gmail and Outlook.
  </Card>
</CardGroup>
