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

# Slack

Connect and interact with Slack workspaces through OAuth integration.

## Available Functions

### Channel Management

* `slack_list_channels`
* `slack_create_channel`
* `slack_archive_channel`
* `slack_invite_users_to_channel`
* `slack_kick_user_from_channel`
* `slack_set_channel_topic`
* `slack_set_channel_purpose`

### Messaging

* `slack_send_message`
* `slack_get_messages`
* `slack_reply_to_thread`
* `slack_get_thread_replies`
* `slack_start_thread`
* `slack_open_dm`
* `slack_send_dm`
* `slack_send_ephemeral_message`

### User Information

* `slack_list_users`
* `slack_get_user_info`
* `slack_get_user_profile`
* `slack_get_channel_members`

## OAuth Setup

### 1. Create Slack App

1. Visit [api.slack.com/apps](https://api.slack.com/apps)
2. Click **"Create New App"** → **"From scratch"**
3. Enter app name and select workspace

### 2. Configure OAuth

1. Go to **OAuth & Permissions**
2. Add redirect URL:
   ```
   https://yourexampledomain.com/api/slack/oauth/callback
   ```
3. Add required scopes:
   * `chat:write`
   * `channels:read`
   * `channels:history`
   * `users:read`
   * `users:read.email`

### 3. Install App

1. Go to **Install App**
2. Click **"Install to Workspace"**
3. Authorize access

### 4. Environment Variables

Add to your `.env` file:

```env theme={null}
SLACK_CLIENT_ID=your-client-id
SLACK_CLIENT_SECRET=your-client-secret
```

<Warning>
  HTTPS URLs are required for OAuth redirects. HTTP is not supported.
</Warning>
