> For the complete documentation index, see [llms.txt](https://docs.nisa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nisa.ai/connecting-data-sources/google-drive.md).

# Google Drive

Google Drive, a product from Google Workspace, is an extensive cloud storage platform facilitating file storage, synchronization, and sharing, suitable for both individuals and teams. Our Business Chatbot integrates seamlessly with Google Drive, allowing automatic collection, synchronization, and indexing of the following elements:

<table data-header-hidden><thead><tr><th width="358"></th><th></th></tr></thead><tbody><tr><td>Files</td><td>This includes Document ID, Name, Content, and Link.</td></tr><tr><td>Google Docs</td><td>We capture Google Docs title, content and link.</td></tr><tr><td>Google Sheets</td><td>We capture Google Sheets title, content and link.</td></tr></tbody></table>

By connecting your Google Drive with our Business Chatbot, you are essentially enhancing ChatGPT's ability to comprehend your documents better and provide more context-rich responses.

## Setting Up the Google Drive Connector

Before you can connect Google Drive to our Business Chatbot dashboard, you'll need to create an OAuth App on the [Google's Developer Console platform](https://console.cloud.google.com/). Follow these steps after logging into Google's Developer Console:

Step 1. Create a project and add access to Google Drive API to it. Follow this [link](https://console.cloud.google.com/projectcreate).

<figure><img src="/files/07MtkrYV67amsgaZBqMq" alt=""><figcaption></figcaption></figure>

Step 2. Click **Create**. Make sure to select the project that you previously created.

<figure><img src="/files/FPgvb3xs3GX7M4JJdjna" alt=""><figcaption></figcaption></figure>

Step 3. **Enable** access to the Google Drive API for this project. Go to [Libraries](https://console.cloud.google.com/apis/library) then search for **Google Drive API** and click Enable.

> Note: You also need to enable Google Docs API and Google Sheets API if you want to index these type of files.

<figure><img src="/files/huvDQ9eBAJpCeuUG8M3w" alt=""><figcaption></figcaption></figure>

Step 4. Configure oauth screen. Follow this [link](https://console.cloud.google.com/apis/credentials/consent).

Step 5. Select **Internal** as user type and provide app information:

* App Name (Nisa), User support email, and Developer contact information.

Step 6.  In the **Scopes for Google APIs** section, click **Add scope** and select the following scopes for the Google Drive API:

```
../auth/drive.file
../auth/drive.readonly
../auth/drive.appdata
../auth/drive.metadata.readonly
../auth/documents.readonly
```

Save and Continue.

Step 7. We must now create credentials for the OAuth application. Locate the **Credentials** menu item in the left sidebar, click **Create Credentials** and select **OAuth Client ID**.

<figure><img src="/files/iX7cTV3xpp3oq6429dJa" alt=""><figcaption></figcaption></figure>

Step 8. Fill out the OAuth form:

* **Application type**: Web application.
* **Name**: Nisa
* **Authorized JavaScript origins:** Dashboard domain URL. Ex. *<https://dashboard.nisa.ai>*
* **Authorized redirect URIs**: Your domain callback URL. Ex. *<https://dashboard.nisa.ai/oauth/googledrive>*

Step 9. Upon submission, you will be presented with a **Client ID** and **Client Secret**. Keep them handy, as we’ll need them in a moment.

Step 10. Now, in the Business Chatbot dashboard, go to the Sources section, add new Organizational Source, and find Google Drive. Enter the `Client ID` and `Client Secret` obtained from your Google's Developer Console. Save configuration.

Step 11. Connect to Google Drive and allow the app.

Congratulations! You have successfully added a connection to synchronize your Google Drive, Google Docs and Google Sheets files using Google OAuth Credentials. The Business Chatbot will now be able to capture and process data from these elements, providing enhanced insights and contextual responses.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nisa.ai/connecting-data-sources/google-drive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
