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

# Create the Slack app

> Install the Sariva Slack app — the conversational interface and approval gate.

ⓘINFO

**Setup wizard → Step 9 (Slack; Step 5 — Chat surface on the VM path).** The wizard asks for your approval/alert channels and templates the tokens into `setup-secret.sh` (Kubernetes paths) or `.env` (the [VM path](https://sariva.mintlify.site/deploy/vm-docker-cc.md#5-fill-the-env)); create the Slack app and capture those tokens here **first**.

The Sariva platform uses Slack for two things:

1. **Conversational interface** — your team @-mentions the bot or DMs it to ask questions and to run growth operations (`add stage`, `add env`, `add cluster`).
2. **Approval gate** — every reversible action and every infrastructure PR is approved by a human in `#kafka-approvals` before the agent executes.

Without Slack, the Deployment Agent runs in **read-only mode** only.

Which channels to create and how Sariva keeps context in a DM versus a thread: [Channels and conversations](https://sariva.mintlify.site/prerequisites/channels-and-conversations.md).

## What you need first

* [ ] A Slack **workspace where you can install an app** (admin access). No workspace yet? [Create one](https://slack.com/get-started#/createnew) first.

## Recommended: create from the manifest

The fastest path (\~5 minutes instead of \~30) is to create the app from the manifest below.

1. Go to [api.slack.com/apps](https://api.slack.com/apps) → **Create New App → From a manifest**.
2. Pick your workspace.
3. Open the **JSON** tab and paste this manifest exactly as-is, then **Next → Create**:

```json theme={null}
{
  "display_information": {
    "name": "Sariva Platform",
    "description": "Sariva AI Platform - Kafka observability, deployment, and remediation agents.",
    "background_color": "#001949"
  },
  "features": {
    "bot_user": {
      "display_name": "Sariva Platform",
      "always_online": true
    }
  },
  "oauth_config": {
    "scopes": {
      "bot": [
        "chat:write",
        "commands",
        "app_mentions:read",
        "im:history",
        "im:read",
        "users:read",
        "users:read.email"
      ]
    }
  },
  "settings": {
    "event_subscriptions": {
      "bot_events": ["app_mention", "message.im"]
    },
    "interactivity": { "is_enabled": true },
    "org_deploy_enabled": false,
    "socket_mode_enabled": true,
    "token_rotation_enabled": false
  }
}
```

ⓘINFO

Use the **JSON** tab — **not YAML**. Slack's YAML tab currently rejects valid manifests (it errors even on Slack's own example), so JSON is the reliable path. The optional `_metadata` block and an empty `slash_commands` list (both in older copies of this manifest) also trip the importer, so they're omitted here — add `commands` slash commands later when you ship them.

4. **Install to Workspace:** left sidebar → **Install App** → **Install to Workspace** → review the permissions screen → **Allow**. (The same button also lives on **OAuth & Permissions**.) Once installed, the **Bot User OAuth Token** appears on the **OAuth & Permissions** page.
5. **Capture the [three secrets](https://sariva.mintlify.site/prerequisites/slack/scopes-secrets.md)** — that page has the exact clicks for the bot token, the app-level token (`connections:write`), and the signing secret.

⚠WARNING

Two things the manifest **cannot** set — do them by hand after import (both covered below): generate an **app-level token** (`connections:write`) for Socket Mode, and turn on the **App Home → Messages Tab** so users can DM the bot.

The display name and color above are cosmetic — change them freely. The **scopes, events, and Socket Mode** settings are what the Sariva platform relies on; keep those exactly as shown.

The manual flow below is the fallback for admins whose policy requires hand configuration.

## Manual app setup

1. **Event Subscriptions** → Enable Events → subscribe to bot events `app_mention`, `message.im` → Save.
2. **Interactivity & Shortcuts** → Interactivity **On** → Save.
3. **Socket Mode** → **On** (generates the app-level token if you haven't).
4. **Install to Workspace** → approve. The `xoxb-` token appears after install.

ⓘINFO

With Socket Mode on, Slack hides the **Request URL** field — events route over the WebSocket. No URL to configure.

## Turn on the App Home Messages Tab

⚠WARNING

The manifest **cannot** express this UI-only toggle. Without it, DMs to the bot show "Sending messages to this app has been turned off" and every DM-driven flow blocks before reaching the pod.

**Features → App Home → Show Tabs → Messages Tab** → tick **Allow users to send Slash commands and messages from the messages tab** → **Save Changes**.

Next: [Scopes & secrets](https://sariva.mintlify.site/prerequisites/slack/scopes-secrets.md).


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