> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.airweave.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.airweave.ai/_mcp/server.

# Google Docs

> Google Docs integration with Airweave

{/* AUTO-GENERATED CONTENT START */}

<img src="https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/airweave.docs.buildwithfern.com/2026-05-20T11%3A36%3A51.367Z/docs/pages/connectors/google_docs/icon.svg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260807%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260807T162704Z&X-Amz-Expires=604800&X-Amz-Signature=a424aacde7d8ef80b277d37f62be738a4edd5af1e1800dcf88d81d661249d917&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject" alt="Google Docs logo" width="48" height="48" />

<h1>
  Google Docs
</h1>

This connector enables AI agents and RAG systems to retrieve context from Google Docs through Airweave's unified search layer.

## Configuration

Google Docs source connector integrates with Google Drive API to extract Google Docs.

Connects to your Google Drive account to retrieve Google Docs documents.
Documents are exported as DOCX and processed through Airweave's file
processing pipeline to enable full-text semantic search across document content.

The connector handles:

* Document listing and filtering
* Content export and download (DOCX format)
* Metadata preservation (ownership, sharing, timestamps)
* Incremental sync via Drive Changes API

#### [View Source Code](https://github.com/airweave-ai/airweave/tree/main/backend/airweave/platform/sources/google_docs.py)

Explore the Google Docs connector implementation

### Authentication

This connector uses **OAuth 2.0 with custom credentials**. You need to provide your OAuth application's Client ID and Client Secret, then complete the OAuth consent flow.

#### OAuth Setup Required

1. Create an OAuth application in your provider's developer console
2. Enter your Client ID and Client Secret when configuring the connection
3. Complete the OAuth consent flow

### Configuration Options

This connector does not have any additional configuration options.

## Data Models

The following data models are available for this connector:

#### GoogleDocsDocumentEntity

Schema for a Google Docs document.

Represents a Google Doc file retrieved via the Google Drive API.
The document content is exported as DOCX and processed through
Airweave's file processing pipeline to create searchable chunks.

Reference:
[https://developers.google.com/drive/api/v3/reference/files](https://developers.google.com/drive/api/v3/reference/files)
[https://developers.google.com/drive/api/guides/manage-downloads](https://developers.google.com/drive/api/guides/manage-downloads)

| Field                  | Type                              | Description                                               |
| ---------------------- | --------------------------------- | --------------------------------------------------------- |
| document\_key          | str                               | Stable Google Docs file ID.                               |
| title                  | str                               | Display title of the document (without .docx extension).  |
| created\_timestamp     | datetime                          | Document creation timestamp.                              |
| modified\_timestamp    | datetime                          | Last modification timestamp.                              |
| description            | Optional\[str]                    | Optional description of the document.                     |
| starred                | bool                              | Whether the user has starred this document.               |
| trashed                | bool                              | Whether the document is in the trash.                     |
| explicitly\_trashed    | bool                              | Whether the document was explicitly trashed by the user.  |
| shared                 | bool                              | Whether the document is shared with others.               |
| shared\_with\_me\_time | Optional\[datetime]               | Time when this document was shared with the user.         |
| sharing\_user          | Optional\[Dict\[str, Any]]        | User who shared this document.                            |
| owners                 | List\[Dict\[str, Any]]            | Owners of the document.                                   |
| permissions            | Optional\[List\[Dict\[str, Any]]] | Permissions for this document.                            |
| parents                | List\[str]                        | IDs of parent folders containing this document.           |
| web\_view\_link        | Optional\[str]                    | Link to open the document in Google Docs editor.          |
| icon\_link             | Optional\[str]                    | Link to the document's icon.                              |
| created\_time          | Optional\[datetime]               | When the document was created.                            |
| modified\_time         | Optional\[datetime]               | When the document was last modified.                      |
| modified\_by\_me\_time | Optional\[datetime]               | Last time the user modified the document.                 |
| viewed\_by\_me\_time   | Optional\[datetime]               | Last time the user viewed the document.                   |
| version                | Optional\[int]                    | Version number of the document.                           |
| export\_mime\_type     | Optional\[str]                    | MIME type used for exporting the document content (DOCX). |
| web\_url\_value        | Optional\[str]                    | Direct link to the Google Docs editor.                    |

{/* AUTO-GENERATED CONTENT END */}