Configure the Gemini Enterprise app for Slack

Gemini Enterprise can integrate with Slack to deliver AI-powered answers and search to your Slack users, directly in their Slack workspace. After you configure the Gemini Enterprise app for Slack, your users can send prompts to Gemini Enterprise and receive answers that incorporate data from all connected Gemini Enterprise data stores.

Limitations

The Gemini Enterprise app for Slack has the following limitations:

  • The app only supports Gemini Enterprise search. Data store actions aren't supported.
  • The app doesn't support Workforce Identity Federation. An admin is required to set up the Gemini Enterprise app for Slack using Google Identity. For more information, see Before you begin.
  • The Gemini Enterprise app for Slack is only supported for Gemini Enterprise apps in the global region. Regionalized apps are not supported.

Before you begin

Ensure that you have the following before configuring the Gemini Enterprise app for Slack:

  • Access to the Slack AI add-on. For information about Slack AI, see the Slack website.
  • A Gemini Enterprise app. If you haven't created an app yet, see Create an app.
  • Configured data stores for any services that you want users to be able to search. For information about connecting Google and third-party data sources with Gemini Enterprise, see Introduction to connectors and data stores.
  • The [Project IAM Admin](/resource-manager/docs/access-control-proj#resourcemanager.projectIamAdmin) role (`roles/resourcemanager.projectIamAdmin`) for your Google Cloud project.
  • Google Cloud OAuth 2.0 credentials for your Slack instance. To get the credentials, do the following:
    1. In the Google Cloud console, navigate to APIs & Services > Credentials.

      Go to Credentials

    2. Click Create credentials, then select OAuth client ID.
    3. In the Application type drop-down, select Web application.
    4. For Name, enter a name for the OAuth 2.0 client.
    5. In the Authorized redirect URIs section, click Add URI.
    6. Enter the URL https://vertexaisearch.cloud.google.com/slack/oauth_callback.
    7. Click Create.
    8. When the OAuth client created dialog appears, copy the values of Client ID and Client secret.
  • The ID of your Slack workspace.

    To obtain your Slack workspace ID:

    1. Open your Slack workspace in a web browser.
    2. In the URL, copy the string starting with T. For example, in the URL https://app.slack.com/client/T09MKP8QQ1E/..., the workspace ID is T09MKP8QQ1E.

Connect your Slack workspace with Gemini Enterprise

Register your Slack workspace in the settings of your Gemini Enterprise app.

  1. In the Google Cloud console, go to the Gemini Enterprise page.

    Gemini Enterprise

  2. In the Apps list, select the Gemini Enterprise app to which you want to connect Slack. Ensure that you select an app in the global region.
  3. Click Integration > Slack.
  4. Fill out the required fields:
    • Enter your Slack workspace ID.
    • Enter your Google Cloud OAuth 2.0 client ID.
    • Enter your Google Cloud OAuth 2.0 client secret.
  5. Click Save.

Install the Gemini Enterprise app for Slack in your Slack workspace

After registering your workspace, install the Gemini Enterprise app for Slack in your Slack workspace.

  1. Click the following link:

    Install Gemini Enterprise app for Slack

  2. Click Allow.
  3. In your Slack workspace settings, verify that the app installed successfully. If you have a Workspace Owner or Workspace Admin role, you can check to see if the Gemini Enterprise app for Slack has been successfully installed by clicking Manage > Installed Apps.

After installing the app, each user must grant one-time access to the Gemini Enterprise app for Slack if they want Gemini Enterprise to search their data. This authorization is done separately by each user. For instructions, see User authorization.

Use the app in Slack

After users authorize the Gemini Enterprise app for Slack, they can interact with it in the following ways:

  • Direct messages: In a direct message with the Gemini Enterprise app for Slack, users can ask questions to get answers from Gemini Enterprise.
  • Slash commands: In any Slack channel, users can enter the slash command /Gemini Enterprise YOUR_QUESTION to ask a question. The Gemini Enterprise app for Slack replies with an answer that is only visible to that user.
  • Channel mentions: If a user mentions the Gemini Enterprise app for Slack in a channel, it replies in a thread that is visible to all other users in the channel.

Replace YOUR_QUESTION with the question that you want to ask Gemini Enterprise.

What's next