Data Hub

Configure notifications

Choose in-app and Slack notifications for new runs and comments, including per-instrument subscriptions, the workspace Slack channel, and Slack app setup for personal DMs.

ForAdministrators, members, and engineers

Data Hub can notify you in the app and via Slack when new runs arrive or when someone comments on a run you care about. Open Settings → Notifications while signed in. Personal Slack DMs also need a Slack app and environment variables on the web app.

Settings Notifications page with in-app preferences and the notification bell

In-app and Slack preferences are independent: you can enable either channel for a type without forcing the other.

In-app preferences

SettingEffect
Mute all instrument notificationsSuppresses new-run notifications for every instrument. Per-instrument choices are preserved and resume when you unmute.
Comments on runs you ranNotify when someone comments on a run you are attributed to.
Replies to your commentsNotify when someone comments on a run you previously commented on.

Per-instrument subscriptions

Under Per-instrument, toggle the instruments you want new-run notifications for. Rows are disabled while Mute all is on. You can also subscribe from the instruments table’s notifications column when that column is shown.

The bell icon in the app chrome lists recent notifications and links to the relevant run.

Slack direct messages

Connect your Slack account on the same settings page to receive matching events as personal DMs. After connecting, choose which types also go to Slack:

  • New runs (respects your instrument subscriptions and mute)
  • Comments on runs you ran
  • Replies to your comments

Disconnect or reconnect from the same card. OAuth must use your organization’s Slack workspace; the wrong workspace is rejected.

Workspace Slack channel (admins)

Admins see a Slack channel section for the shared webhook that posts when a new run is created (lab-wide channel traffic, separate from personal DMs). Configure or rotate the webhook there; the card shows who last updated it. That webhook is set in the UI after deploy; it doesn’t use the bot token variables below.

Set up the Slack app for personal DMs

Personal Slack DMs use a shared bot token and Sign in with Slack (OpenID Connect). Create the app once in the Slack API portal, then set the variables on each environment that should send DMs. Without them, Connect to Slack doesn’t complete.

You can reuse an existing Slack app, including one already used for the channel webhook.

Create the app and scopes

In the Slack API portal, choose Create New App → From scratch, or open an existing app.

Under OAuth & Permissions, add these scopes:

Bot Token Scopes:

ScopePurpose
chat:writeSend DMs with chat.postMessage

User Token Scopes:

ScopePurpose
openidSign in with Slack (OIDC)
profileDisplay name in the identity token

Under Redirect URLs, add one callback URL per environment. The path is always /api/v1/settings/slack/callback:

EnvironmentExample URL
Localhttp://localhost:3000/api/v1/settings/slack/callback
Staginghttps://staging.datahub.example.com/api/v1/settings/slack/callback
Productionhttps://datahub.example.com/api/v1/settings/slack/callback

SLACK_REDIRECT_URI, or the request origin plus that path when unset, must match a listed URL exactly.

Under Install App, choose Install to Workspace (or Reinstall after changing scopes). Copy the bot token and app credentials for the variables below.

Set environment variables

Set these on the web app for each environment that should offer Slack DMs:

VariableWhere to find itRequired
SLACK_BOT_TOKENInstall App → Bot User OAuth Token (xoxb-…)Yes
SLACK_CLIENT_IDBasic Information → App CredentialsYes
SLACK_CLIENT_SECRETBasic Information → App CredentialsYes
SLACK_STATE_SECRETGenerate with openssl rand -base64 32No (falls back to AUTH_SECRET)
SLACK_TEAM_IDWorkspace URL segment T… in app.slack.com/client/T…No (recommended so OAuth stays on your workspace)
SLACK_REDIRECT_URIFull callback URL when it differs from the request originNo

Redeploy or restart the web app after setting them. Members can then connect under Settings → Notifications. Deploy runbooks are linked from Deploy Data Hub.

On this page