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:

  • Supports only Gemini Enterprise search. Data store actions are not supported.
  • Does not support Workforce Identity Federation. An administrator must set up the Gemini Enterprise app for Slack using Google Identity. For more information, see Before you begin.

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.
  • A configured Gemini Enterprise app that uses Google Identity as the identity provider. For information about setting up Google Identity, see Configure identity provider.
  • 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 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/T0123456789/..., the workspace ID is T0123456789.

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.

  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 you authorize the Gemini Enterprise app for Slack, you can interact with it in the following ways:

Direct messages with multi-turn support

You can message the Gemini Enterprise app for Slack directly to ask questions. These direct messages support multi-turn conversations. The Gemini Enterprise app remembers the context of your current session. You can ask follow-up questions or refine previous responses. To clear the current context and start a new session, click New chat.

Channel mentions

You can collaborate with the Gemini Enterprise app directly in your Slack channels and threads. Mention the app in a channel or thread with a prompt. For example: @Gemini Enterprise summarize this thread. The app adds an 👀 (eyes) reaction to your message to confirm receipt of the prompt. The app returns the response privately, and the message is marked as Only visible to you. You can review the response before sharing it in the channel or thread.

What's next