Connect Box

This page describes how to connect Box to Agentspace. The connector supports both data ingestion and federated search. See the section for the approach you plan to use:

Connect Box (data ingestion)

Use the following procedure to sync data from Box to Agentspace.

After you set up your data source and import data the first time, the data store syncs data from that source at a frequency that you select during setup.

Before you begin

Before setting up your connection:

  1. You must have administrator access to the Box instance, with two-factor authentication enabled. All the set up instructions can only be performed from the administrator account.

  2. Set up access control for your data source. For information about setting up access control, see Use data source access control .

  3. Read Setup with JWT in the Box documentation for an overview of the setup, with screenshots.

Create a Box app

  1. Sign in to the Box Developer Console with your administrator account.
  2. Click Create platform app.
  3. Select App typeas Custom app.
  4. Enter the App name.
  5. Set the following properties:
    1. Purpose:Integration
    2. Categories:AI
    3. External system:Google Cloud Agentspace
  6. Select Authentication methodas Server authentication (with JWT).
  7. Click Create app.

Configure the Box app

  1. In the Box Developer Console , choose the Platform appand then go to the Configurationtab.
  2. In the App access levelsection, select App + Enterprise access.
  3. In the Application scopessection, select the following scopes:

    1. Read all files and folders stored in Box
    2. Write all files and folders stored in Box
    3. Manage users
    4. Manage groups
    5. Manage enterprise properties
  4. In the Advanced featuressection, select Make API calls using the as-user header.

  5. In the Add and manage public keyssection, click Generate a public/private keypair.

    1. The public keyis automatically uploaded to the console with an ID. This ID is used when creating a connection.
    2. You can download a configuration file with the private key and passphrase. Make sure to keep this file for later use.
    3. Optionally, to generate your own key, see the Box keypair setup guide .
  6. Click Save changes.

Authorize the Box app

  1. In the Box Developer Console , choose the Platform appand then go to the Authorizationtab.
  2. Click Review and submit.
  3. In the Review app authorization submissiondialog, click Submit.
  4. Sign in to the Box admin platform apps manager with your administrator account.
  5. Choose the Platform appthat you have configured.
  6. Click the three dots ( ...) in the corresponding row.
  7. Select Authorize appfrom the drop-down list.
  8. In the Authorize appdialog, click Authorizeto complete the authorization process.

Have the following Box authentication information ready:

  • Enterprise ID: Obtain it from the General settingstab.
  • Client IDand Client secret: Obtain it from the Configurationtab under OAuth 2.0 credentials.
  • Private key, Key ID, and Passphrase: These parameters were already generated and downloaded to a local file from the Configurationtab under Add and manage public keyswhile configuring the app.

Create a Box connector

Console

To use the Google Cloud console to sync data from Box to Agentspace, follow these steps:

  1. In the Google Cloud console, go to the Agentspacepage.

    Agentspace

  2. In the navigation menu, click Data stores.

  3. Click Create data store.

  4. On the Select a data sourcepage, scroll or search for Boxto connect your third-party source.

  5. Enter your authentication information in the Authentication settings. In the Private keyfield, copy and paste the following private key value.

       
     ----- 
     BEGIN 
      
     ENCRYPTED 
      
     PRIVATE 
      
     KEY 
     ----- 
     \ 
     n 
     MIIFLTBXBgkqhkiG 
     9 
     w 
     0 
     BBQ 
     0 
     wSjApBgkqhkiGK 
     7 
     wbIkV 
     f 
     2 
     jW\ 
     n 
     -----E 
     ND 
      
     ENCRYPTED 
      
     PRIVATE 
      
     KEY 
     ----- 
     \ 
     n 
     
    
  6. Select which entities to sync and click Continue.

  7. Select the Sync frequencyfor Full syncand the Incremental sync frequencyfor Incremental data sync. For more information, see Sync schedules .

    If you want to schedule separate full syncs of entity and identity data, expand the menu under Full sync and then select Custom options .

    Custom options for full data sync.
    Setting separate schedules for full entity sync and full identity sync.
  8. Select a region for your data store.

  9. Enter a name for your data store.

  10. Click Create. Agentspace creates your data store and displays your data stores on the Data storespage.

  11. To check the status of your ingestion, go to the Data storespage and click your data store name to see details about it on its Datapage. The Connector statechanges from Creatingto Runningwhen it starts synchronizing data. When ingestion is complete, the state changes to Activeto indicate that the connection to your data source is set up and awaiting the next scheduled synchronization.

    Depending on the size of your data, ingestion can take minutes or hours.

Next steps

Use the following procedure to search through your Box account using federated search.

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

Before you begin

Before creating a Box data store in Agentspace, you must register an OAuth 2.0 application in the Box Developer Console.

To register the application, do the following:

  1. Sign in to the Box Developer Console with your administrator account.

  2. Click Create Platform App.

    Create a new Platform App
    Create a new Platform App.
  3. Click Custom App.

  4. Fill out the required fields.

    Provide details for your app
    Provide details for your app.
  5. Select User Authentication (OAuth 2.0).

    Select the authentication method
    Select the authentication method.
  6. Click Create App.

  7. Copy the Client IDand Client Secret. These are required to create a federated search data store with Box in Agentspace.

    Record the OAuth 2.0 credentials
    Record the OAuth 2.0 credentials.
  8. In the OAuth 2.0 Redirect URIssection, add the following redirect URIs:

    • https://vertexaisearch.cloud.google.com/console/oauth/default_oauth.html
    • https://vertexaisearch.cloud.google.com/oauth-redirect
    Provide the redirect URIs
    Provide the redirect URIs.
  9. Select the following application scopes:

    • Read all files and folders stored in Box
    • Write all files and folders stored in Box
    Select the required scopes
    Select the required scopes.
  10. Click Save Changes.

Create a federated search connector with Box

Console

Use the following steps for Google Cloud console to perform federated search through Box from Agentspace.

  1. In the Google Cloud console, go to the Agentspacepage.

    Agentspace

  2. In the navigation menu, click Data stores.

  3. Click Create data store.

  4. On the Select a data sourcepage, scroll or search for Box Federatedto connect your third-party source.

    create-data-store
    Search for Box Federated

  5. Under Authentication settings:

    1. Enter the Client IDand Client secret.
    2. Click Authenticate.
    3. Click Continue.

      enter-auth-info
      Enter the authentication information
  6. Select a region for your data source.

  7. Enter a name for your data source.

    select-region-enter-name
    Configure your data connector

  8. Click Create. Agentspace creates your data store and displays your data stores on the Data storespage.

Once the data store is created, go to the Data storespage and click your data store name to see the status. If the Connector statechanges from Creatingto Active, the federated search connector is ready to be used.

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 Agentspace, then you can't select the data source. Instead, an Authorizebutton appears next to it.

To initiate the authorization flow:

  1. Click Authorize. You are redirected to the Box authorization server.

    click-authorize
    Click Authorize
  2. Sign in to your Box account.

  3. Click Grant access. After granting access, you are redirected back to Agentspace to complete the authorization flow.

    Agentspace obtains the access_token , and uses it to access the 3P search.

Query execution

When you enter a search query:

  • If Box federated search is authorized, Agentspace sends the query to the Box API.
  • Agentspace blends the results with those from other sources and displays them.

Data handling

When using third-party federated search, your query string is sent to the third-party search backend. These third parties may associate queries with your identity. If multiple federated search data sources are enabled, the query may 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 (not by Google Cloud's terms).

Design a Mobile Site
View Site in Mobile | Classic
Share by: