Connect Slack with data federation

This page explains how to use the data federation feature in Gemini Enterprise to perform real-time searches of your Slack account.

About data federation

With data federation, Gemini Enterprise directly retrieves information from the third-party data sources using APIs, instead of copying the data into Gemini Enterprise. Using this approach, you can access external data sources immediately, without waiting for ingestion.

Before you begin

Before you set up your connection, do the following:

  • Verify that you have access to the Slack workspace you want to connect.
  • Verify that you have a Slack plan that includes Slack AI Search.

Create a federated search connector with Slack

Console

Use the following steps for Google Cloud console to perform federated search through Slack from Gemini Enterprise.

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

    Gemini Enterprise

  2. In the navigation menu, click Data Stores.

  3. Click Create Data store.

  4. On the Select a data source page, scroll or search for Slack Federated to connect your third-party source.

  5. In the Authentication settings section, do the following:

    1. Click Login.
      slack-fs-login
      Login
    2. In the Slack dialog, select your workspace from the menu in the top-right corner.
      slack-allow
      Choose a workspace
    3. Click Allow to be redirected to the Google Cloud console.

    4. Click Continue.

  6. In the Entities to search section, select the entities you want to search from the following:

    • Message

    • File

  7. Click Continue.

  8. In the Configure your data connector section, do the following:

    1. Select a region for your data store. You cannot change the region later. For more information on multi-regions, see Gemini Enterprise locations.

    2. Enter a name for your data connector. You can change the name later.

      configure-data-connector
      Configure data connector

    3. Optional. To change the data connector ID after entering the name, click Edit and change the value. You cannot change the data connector ID after creating the data store.

    4. Click Create. Gemini Enterprise creates your data store and displays it on the Data Stores page.

Once the data store is created, go to the Data Stores page and click your data store name to see the status. The Connector state changes from Creating to Active when the connector is ready for use.

User authorization

After creating a federated search data store, you can see it listed as one of the data sources in your source management panel. If you haven't previously authorized Gemini Enterprise, wait 10 minutes and click Authorize to proceed.

To initiate the authorization flow:

  1. Click Authorize.

  2. Sign in to your Slack account.

  3. Click Grant access. After granting access, you are redirected back to Gemini Enterprise to complete the authorization flow. Gemini Enterprise obtains the access_token, and uses it to access the third-party search.

    user-authorization
    User authorization

Query execution

After you authorize Slack, and send a search request to Gemini Enterprise:

  • Gemini Enterprise sends your search query to the Slack API.

  • If the Gemini Enterprise app is connected to multiple data stores, a blended search result is displayed. For more information, see About blended search.

Data handling

When using third-party federated search, your query string is sent to the third-party search backend. These third parties can associate queries with your identity. If multiple federated search data sources are enabled, the query might be sent to all of them.

Once the data reaches the third-party system, it is governed by that system's terms of service and privacy policies.

Rate limits

Slack supports approximately 10 requests per minute, depending on the complexity of the query.

Known limitations

  • You can search for files based on their content. However, search results can vary and are not always comprehensive of the entire file content.

Next steps