You can reach out to support@langdock.com to set up your integration together in a call.

Important:

  • You need to be a workspace-admin to connect a Google Drive for the entire workspace. If you are not an admin, please reach out to your admin or refer to the user-level integration guide.

  • You need the Google Administrator account to set up this integration for the entire workspace.

  • This integration uses domain-wide delegation More Information


Start Setup in Langdock

  1. Go to your integrations.

  2. Add an integration. Click on Google Drive (Workspace-level)

  3. You get to the integration management page. Here you can set up the connection.

  4. Click on Setup Connection to view the required connection fields.

Create a Google Service Account

  1. In a new tab, sign in to Google Cloud as a super administrator. Click on the three line icon menu in the top right corner, then on IAM & Admin and then Service accounts.
  1. Click on Create a new Service Account. Then, give it a name (e.g. Langdock Service Account) and enter a service account id. Click on Create and continue. Then click done.

  2. Click on the newly created service account, navigate to the tab Keys and click on Add Key. Select Create new key and then JSON as the key type. You will receive the key as a JSON file in your downloads. You will need the clientID in step 11 again.

Enable the Google Drive API and the Admin SDK API in the Google Cloud Console

  1. Enable the Google Drive API in the Google Cloud Console: https://console.developers.google.com/apis/api/drive.googleapis.com/

  2. Enable the Admin SDK API in the Google Cloud Console: https://console.cloud.google.com/apis/api/admin.googleapis.com/

Set up domain-wide delegation in Google Account

  1. Ensure your logged-in Google Account has super administrator rights, before continuing with this guide.Open the Google Workspace admin console in a new tab: Google Admin Console

  2. In the Google Admin console, go to Menu > Security > Access and data control > API controls > Manage Domain Wide Delegation.Click Add New and fill out the fields:

Paste credentials in Langdock

  1. Open the JSON you downloaded in step 7 and copy the clientID of the service account (labelled as Unique ID in Cloud Console). Paste it into the Private Key field in Langdock.

Copy everything between the " ". The key inbetween will look like this:

-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----\n

Add the service account email and the Google administrators’ email of the Google Drive service account to the according fields in Langdock.

  1. Click on Save.

  2. The connection is tested automatically and will be shown as successful or unsuccessful.

You can now access your Google Drive files in a normal chat or in assistants.

If there are any questions or issues you run into, please reach out to support@langdock.com.