> ## Documentation Index
> Fetch the complete documentation index at: https://docs.libraria.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive

> Paste a folder or a file

The Google Drive integration allows you to paste a folder link or a file.

## Accepted File Types

* DocX
* PDF

## How do I add files from my Google Drive?

#### Step 1: Adding Google Drive Datasource on Libraria.

1. Go to the **Knowledge Base** of the Library you want to add a custom answer to.
2. Click on the **External Data Sources** tab.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-docs-1.png" alt="Extenal data sources" />
</Frame>

3. Select **Google**.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-1.png" alt="Select Google drive" />
</Frame>

4. A window will pop up then click on `Add the Google Integration`.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-2.png" alt="Google integration" />
</Frame>

5. A new window will open to select your Google account. Select the account where the files you want to add are located.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/acc-1.png" alt="Google account" />
</Frame>

6. You will be redirected to choose what files you want Libraria to have access to, select what you allow access to then click `Continue`.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/acc-2.png" alt="Google files" />
</Frame>

7. Once done, you will see that under the **Active Direct Integrations** section, Google is now added.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-3.png" alt="Actice integrations" />
</Frame>

#### Step 2: Move to Google Drive Tab on Libraria

1. Go back to **Knowledge Base** and click `Add Knowledge`

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-4.png" alt="Add knowledge" />
</Frame>

2. Select **Scrape with links**

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-5.png" alt="Scrape with links" />
</Frame>

3. Select `Google Drive` from the tabs that are in the link section.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-6.png" alt="Google drive tab" />
</Frame>

#### Step 3: Paste your File URL or Folder URL

1. You can simply get the link to your drive by copying it from the URL field of your browser.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-7.png" alt="Drive url" />
</Frame>

2. Paste your Google file or folder URL. Click *Add more* if you want to add more URLs.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-8.png" alt="Pasted url" />
</Frame>

3. Click `Submit` button. Once submitted, a window will appear showing how much credits you will use and the files that will be added to your knowledge base.

<Frame>
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-9.png" alt="Submit" />
</Frame>

4. Click on the `Submit` button in the window to confirm and add it to your library.
