Gebo.ai setup guide · Integrations · Page 11

Google Drive and Workspace

Let Gebo.ai read shared drives and folders of your Google Workspace through a service account that acts on behalf of a user.

Time
15 minutes, most of them in the Google consoles.
You need
A Google Cloud project with a service account, its JSON key, domain-wide delegation granted in the Workspace admin console, and the user Gebo.ai will read as.

1In Google Cloud and Workspace: the service account

  1. In console.cloud.google.com create or pick a project and enable the Google Drive API.
  2. IAM & Admin → Service accounts → Create service account; then Keys → Add key → JSON: a .json file is downloaded.
  3. In the Workspace admin console: Security → Access and data control → API controls → Domain-wide delegation → Add new: the service account’s client ID with the scope https://www.googleapis.com/auth/drive.readonly.
Why a user to impersonateWith domain-wide delegation the service account reads as a Workspace user. Choose a user who sees the shared drives to index, for example a dedicated gebo@yourcompany.com account.

2In Gebo.ai: enter the credentials

In Setup → Enterprise integrations click Google Drive/Workspaces integration, then + Google Drive.

A new Google Drive connection.
A new Google Drive connection.
  1. Google user to impersonate: the e-mail of the Workspace user.
  2. Google credentials json content: paste the whole content of the downloaded .json key file.
  3. Give it a description and click Create.

3Then add the data source

Admin → Knowledge bases & projects → +Add data source → +google drive: pick the connection, the drives or folders and Publish!, as in step 5.

**+Add data source** (1), then **+google drive** (2).
+Add data source (1), then +google drive (2).