Google Docs
Last updated
Last updated
You may connect your Google Docs Account with BotDistrikt.
Navigate to Integrations and click on Docs
You will be presented with two options to integrate Google Docs with the BotDistrikt platform.
Use a User Account - allows you to connect to Google Docs from your personal user account.
Use a Service Account - allows you to connect to Google Docs from a service account.
Click on the Sign in with Google button and allow BotDistrikt to access your Google Account.
After successfully linking your Google account, you will be able to see all available documents in the dropdown selector.
To generate your Google Docs private key JSON file, you must first open the API Library.
In the search bar on the API Library page, search for Google Docs API.
In the Google Docs API product details, click on Enable.
At the APIs & Services dashboard, click on Credentials at the left navigation panel. Once at the Credentials tab, click on Create Credentials and select Service Account from the dropdown menu.
Once at the Create service account page, fill in the necessary information for the service account details and permissions, and click Done.
At the service account dashboard, click on the hyperlinked email address of the service account that was just created to access the Service account details page.
Click on the Keys tab to view all service account keys. Click on Add Key and from the dropdown menu, select Create new key.
In the modal that appears, select the JSON key type option and click on Create. You will be prompted to download the JSON file.
Before uploading the JSON file on BotDistrikt’s platform, please ensure that the Google Drive API is enabled. This can be done by searching for Google Drive API in the search bar on the API Library page and clicking on the Enable button.
At the Google Docs integration page on BotDistrikt’s platform, upload the JSON file containing the private key to link the service account.
To add a document as a source on the BotDistrikt platform via a Service Account, share the file with the service account email address.
Once shared, the file should show up as an available document to be used as a source on the BotDistrikt platform.
You can now head on to Sources to train your LLM to learn from your Google Docs