Skip to main content

Slack extension actions setup

Use Slack extension actions to let Glean Assistant and supported agent experiences send messages and perform supported Slack tasks without leaving Glean. It uses custom OAuth only for setup.

With this setup, you can:

  • Connect Slack to Glean using a customer managed Slack OAuth app.
  • Link the action pack to a Slack datasource instance.
  • Make Slack actions available in Assistant and supported agent experiences.

Prerequisites

Before enabling Slack actions:

  • You are a Slack workspace admin, or have equivalent permissions to create and configure Slack apps, approve OAuth scopes, and install apps to the workspace.
  • The Glean app is already set up and installed in Slack.
  • You can access Admin Console → Platform → Actions in Glean.
  • If you want to link the pack to a Slack instance, your Slack datasource must already be configured in Glean.

Setup instructions

Follow these steps to setup the Slack action pack:

  1. Create the Slack action pack in Glean:

    1. In Glean, go to Admin Console → Platform → Actions.
    2. Click Add.
    3. From the list in the Add pre‑set actions section, select Slack extension actions under Action templates.
    4. In the Configuration tab:
      1. Add the Instance Name.
      2. Select Datasource Instance to link this action to your Slack instance.
      3. Configure authentication. Slack actions use only custom OAuth app for authentication.
  2. Create a new OAuth app in Slack:

    In order to setup OAuth for Slack actions, create an app in Slack using the following steps:

    1. Log into Slack API apps.
    2. Click Create New App.
    3. Create a new app by selecting From scratch.
      1. Add the App Name.
      2. Select a workspace where you want to develop your app.
      3. Click Create App.
    4. After the app is created, you are redirected to the Basic information page. Copy the Client Secret and Client ID and save it.
    Slack Create New App from scratch: app name and workspace
    Slack app basic information with Client ID and Client Secret
  3. Fill the client ID and client secret in Glean configuration page:

    1. Navigate to Slack extension actions configuration page on the Glean admin console.
    2. Add the Client ID and Client secret information to the respective fields under the Authenticate section.
    3. Click Save.
    4. Copy the Callback URL and the Scopes given in the configuration page and save these details.
  4. Set permissions and scopes in Slack

    1. Go to the OAuth & Permissions tab in Slack.
    2. Go to the Redirect URLs section:
    3. Click Add New Redirect URL.
    4. Paste the Callback URL copied from Glean.
    5. Click Add.
    6. Go to the Scopes section:
    7. Click Add an OAuth Scope.
    8. Paste the scopes copied from Glean.
    Slack OAuth and Permissions: redirect URL and bot scopes
  5. Reinstall the Slack app to the workspace:
    In your Slack app, after adding the redirect URL and scopes, reinstall the Slack app to the workspace so the new scopes and redirect settings take effect:

    1. In the Slack app, go to Settings → Basic Information.
    2. Scroll to Install app.
    3. Click Install to Workspace.
    4. Review the consent screen and Allow.
  6. Click Edit settings under Enable Actions section to make actions visible for all or some users within Glean Chat and Agents.