Skip to content
Privacy Assessments
Astralis Assessments
Guides
Connecting Slack

Connect Slack to Astralis

The Slack chat provider runs assessment interviews in Slack and lets people start assessments by messaging the Astralis app. This guide covers creating the Slack app, connecting it to Astralis and enabling it.

The Chat providers settings need the privacyAssessments feature flag. Astralis Assessments needs alphaAssessmentsV2. See the configuration reference.

Prerequisites

  • Astralis is reachable from the internet over HTTPS. Slack sends events to it.
  • You can create apps in your Slack workspace.
  • An Astralis role that can manage chat providers, such as Owner.
  • The people who answer interviews have Astralis accounts with the same email addresses as their Slack accounts.

Create the Astralis Slack app

Each Astralis instance needs its own Slack app, because the app's event and OAuth URLs point to one instance. You can create several apps in one workspace, for example one for staging and one for production.

  1. Go to Slack's app management page (opens in a new tab) and click Create New App.
  2. Choose From a manifest and select your workspace.
  3. Paste the manifest below. Replace your-instance.example.com in both URLs with your Astralis domain.
  4. Click Create.
display_information:
  name: Astralis
  description: Powered by Astralis
  background_color: "#2b2e35"
features:
  bot_user:
    display_name: Astralis
    always_online: true
oauth_config:
  redirect_urls:
    - https://your-instance.example.com/api/v1/plus/chat/slack/callback
  scopes:
    bot:
      - app_mentions:read
      - channels:history
      - channels:join
      - channels:read
      - chat:write
      - groups:history
      - groups:read
      - im:history
      - im:write
      - users:read
      - users:read.email
settings:
  event_subscriptions:
    request_url: https://your-instance.example.com/api/v1/plus/chat/slack/events
    bot_events:
      - app_mention
      - message.channels
      - message.groups
      - message.im
  org_deploy_enabled: false
  socket_mode_enabled: false
  token_rotation_enabled: false

Slack checks the event request URL when you create the app, so Astralis must be reachable at that address. If the check fails, retry it later under Event Subscriptions in the app's settings.

On the app's Basic Information page, note the Client ID, Client Secret and Signing Secret.

The manifest grants these bot scopes:

ScopeUsed to
app_mentions:readReceive mentions of Astralis in channels
chat:writePost messages
channels:join, channels:readList and join public channels
channels:history, groups:historyRead thread replies in public and private channels
groups:readList private channels Astralis was invited to
im:history, im:writeRead and send direct messages
users:read, users:read.emailMatch Slack users to Astralis users by name and email

Add Slack as a chat provider

  1. Go to Settings > Notifications. Under Chat providers, click Add a chat provider.
  2. Set Provider type to Slack.
  3. Enter the Workspace URL, such as your-company.slack.com, and the app's Client ID, Client secret and Signing secret.
  4. Click Save.
The Configure your chat provider page with Provider type set to Slack, and the Slack chat provider configuration card with required Workspace URL, Client ID, Client secret and Signing secret fields

Authorize the app

Open the Slack provider and click Authorize with Slack. Slack asks you to approve the app's permissions. After you approve, Astralis shows "Slack authorization successful!" and the provider shows as authorized.

Enable the provider

In the chat providers list, turn on Enabled for Slack. Only one chat provider can be enabled at a time.

Verify the result

Mention the app in a channel, or send it a direct message, with start an assessment for <activity name>. Astralis replies in the thread. See starting assessments.

Run interviews in a Slack channel

Each interview runs as a thread in the interview channel and tags the activity's stewards. To choose the channel, go to Settings > Notifications, find Assessment interview channel, choose a channel in Interview channel and click Save. Slack channels are listed as #channel. See the interview channel setting. An assessment started by tagging Astralis in a channel thread keeps its interview in that thread. For a private channel, invite Astralis with /invite @Astralis. Slack connections made before groups:read was added must be authorized again to list private channels. See channel threads.

Next steps