# Slack

The connector calls the [Slack API](https://api.slack.com/methods).

**Before you start**

You need:

- **A Slack account in the workspace you want to read.** You sign in with it when you authorize the configuration. The connector reads the workspace's users, its public channels and their messages.

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.

## Create New Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **Slack** connector.
Then click **Authorize Account** to [authorize the configuration](https://help.keboola.com/components/authorization/). 

Select the template you wish to use:

- Smart Mode -- using this mode you always get just missing data (recommended), loads data [incrementally](https://help.keboola.com/storage/tables/incremental-loading/#incremental-loading).
- Full Mode -- using this mode you always get everything.

You can download:

- Users
- Channels
- Messages

After you select one of the two templates, remember to **save** the configuration.

![Slack Configuration](https://help.keboola.com/components/extractors/communication/slack/slack-1.png)

You can also [switch to the JSON editor](https://help.keboola.com/components/extractors/generic-extractor/#template-mode).

Click **Run Component**.

**Check:**

### Prompt

```text title="Prompt" wrap
Did the latest job of my Slack configuration succeed, and which tables did it load, with row counts?
```

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

### UI

The job ends with status **Success** and Storage has the tables `users`, `channels` and `messages`.

### CLI / API

```bash
kbagent job list --component-id keboola.ex-slack --config-id 123456789 --limit 1
kbagent storage tables --bucket-id in.c-keboola-ex-slack-123456789
```

Replace `123456789` with your configuration ID: `status` shows whether the job succeeded, and `id` lists the `users`, `channels` and `messages` tables it loaded, with their `rows_count`.

---
