Overview
The Slack integration allows Tembo to send notifications, receive commands, and stream session updates to your Slack workspace. On the SaaS platform this is pre-configured — on self-hosted you need to create your own Slack app and point it at your instance.Step 1: Create a Slack App
- Go to api.slack.com/apps and click Create New App
- Choose From scratch
- Fill in:
| Field | Value |
|---|---|
| App Name | e.g. Tembo (self-hosted) |
| Workspace | Select your workspace |
- Click Create App
Step 2: Configure OAuth & Permissions
- In the left sidebar, go to OAuth & Permissions
-
Under Redirect URLs, add:
-
Under Bot Token Scopes, add the following scopes:
app_mentions:readchannels:historychannels:joinchannels:readchat:writeemoji:readfiles:readfiles:writegroups:historygroups:readim:historyim:readim:writempim:historympim:readreactions:readreactions:writeteam:readusers:readusers:read.email
-
Under User Token Scopes, add the following scopes:
channels:historyim:historysearch:read.publicsearch:read.imsearch:read.filessearch:read.usersusers:readusers:read.email
Step 3: Enable Event Subscriptions
- In the left sidebar, go to Event Subscriptions
- Toggle Enable Events to on
-
Set the Request URL to:
Slack will send a verification challenge to this URL — it should respond with a
200once your instance is running. -
Under Subscribe to bot events, add:
app_mentionmessage.channelsmessage.groupsmessage.immessage.mpimreaction_addedteam_join
- Click Save Changes
Step 4: Enable Interactivity
- In the left sidebar, go to Interactivity & Shortcuts
- Toggle Interactivity to on
- Set the Request URL to:
- Click Save Changes
Step 5: Install the App to Your Workspace
- In the left sidebar, go to Install App
- Click Install to Workspace and authorize
Step 6: Configure Tembo
From the Slack app settings page under Basic Information, gather the following values:- App ID
- Client ID
- Client Secret
- Signing Secret
/var/lib/tembo/config.json (via the VS Code server at http://<your-instance-ip>:8888 or via SSH) and add the following keys:
| Key | Where to find it |
|---|---|
slack.appId | Basic Information page, listed as App ID |
slack.clientId | Basic Information page, listed as Client ID |
slack.clientSecret | Basic Information page, listed as Client Secret |
slack.signingSecret | Basic Information page, listed as Signing Secret |
Step 7: Verify
- Go to your Tembo instance and navigate to Settings > Integrations
- Click Connect on the Slack integration
- Authorize the app in your workspace
- Try mentioning the bot in a channel or sending it a direct message