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

# Google Docs

<div style={{ display: 'flex', justifyContent: 'center', margin: '2rem 0' }}>
  <div className="video-card">
    <video src="https://mintcdn.com/lindyai/C8FfeR01UMnuv-H3/lindy-brand-assets/docs_0.mp4?fit=max&auto=format&n=C8FfeR01UMnuv-H3&q=85&s=2d28ef3deccaaed12b3675f456fced2c" width="600" autoPlay muted loop playsInline style={{ display: 'block', width: '100%', borderRadius: '16px' }} data-path="lindy-brand-assets/docs_0.mp4" />
  </div>
</div>

## Quick Overview

Google Docs integration enables your AI agents to become document management assistants. Create, edit, and manage documents automatically with both triggers and actions for complete document workflow automation.

Key benefits of Google Docs integration:

* **Automated document creation** – Generate docs from templates with dynamic data
* **Real-time content management** – Update and edit documents automatically
* **AI-driven editing** – Intelligent text processing and formatting
* **Approval workflows** – Streamlined document review and approval processes

## How to set up Google Docs

<Steps>
  <Step title="Add Google Docs to your workflow">
    Click on the plus sign at the bottom or right-click anywhere on the canvas and select "Add Trigger" or "Add Action" from the pop-up menu and choose "Google Docs"

    <Frame>
      <img src="https://mintcdn.com/lindyai/C8FfeR01UMnuv-H3/lindy-brand-assets/docs_1.png?fit=max&auto=format&n=C8FfeR01UMnuv-H3&q=85&s=1dc4adb1a2a90590111f01995f077567" alt="Add Google Docs to workflow" width="2580" height="1262" data-path="lindy-brand-assets/docs_1.png" />
    </Frame>
  </Step>

  <Step title="Connect and Configure your Google Docs">
    Click on "Add Account" and authorize your Google Docs for Lindy's integrations by granting permissions for Drive and Docs access. Choose which folders you want this Lindy to access.

    <Frame>
      <img src="https://mintcdn.com/lindyai/C8FfeR01UMnuv-H3/lindy-brand-assets/docs_2.png?fit=max&auto=format&n=C8FfeR01UMnuv-H3&q=85&s=625e2e03b8bab4ecdbf6a20e78576b70" alt="Google Docs connection" width="2584" height="1262" data-path="lindy-brand-assets/docs_2.png" />
    </Frame>
  </Step>
</Steps>

## Google Docs Triggers

#### New Document Created

<Frame>
  <img src="https://mintcdn.com/lindyai/C8FfeR01UMnuv-H3/lindy-brand-assets/docs_3.png?fit=max&auto=format&n=C8FfeR01UMnuv-H3&q=85&s=4a6a11f87fee40912096dbd7f80225d3" alt="Google Docs connection" width="2552" height="1266" data-path="lindy-brand-assets/docs_3.png" />
</Frame>

Fires the moment a brand-new Google Doc appears in a chosen folder:

* **Folder filtering** - Optionally select specific folder, defaults to watching entire Drive
* **Dynamic payload** - Provides title, url, documentId, createdTime, creatorEmail, parentFolders
* Perfect for auto-formatting new docs, posting Slack notifications, kickoff approval workflows

#### New or Updated Document

Fires on both creations and any subsequent modifications:

* **Real-time monitoring** - Detects text edits, images, style changes, etc.
* **Enhanced payload** - Includes lastModifiedTime, lastModifyingUser information
* Ideal for change-log summaries, content sync to CMS, maintaining documentation repos

<Tip>
  Google push notifications are near-real-time (5-15 seconds). For large organizations, segment by folder to avoid hitting daily push quotas.
</Tip>

## Google Docs Actions

#### Create Document

Creates new Google Docs with customizable settings:

* Complete document creation with title and folder selection
* Returns documentId, url for downstream actions
* Perfect for generating weekly report shells, customer proposal skeletons

#### Create Document from Template

Rapidly create documents using template merge:

* Pick any Google Doc as template with `{{mergeField}}` placeholders
* Auto-generates input fields for each detected placeholder
* Ideal for contracts, offer letters, invoices, personalized onboarding guides

#### Create PDF

Converts documents to PDF format:

* Source document selection with destination folder
* Returns Drive-hosted PDF link and file ID
* Perfect for auto-emailing signed PDFs, uploading to e-signature tools

#### Get Document

Retrieves document information:

* Fuzzy search by ID, Name, or URL
* Returns full plain-text body plus metadata
* Essential for feeding content into AI summarizers, content comparison

#### Update Document

Modifies existing document content:

* Multiple modes: append, prepend, replace
* Supports markdown, plain text, or HTML-like content
* Perfect for appending meeting minutes, adding notices, content revisions

#### Append Text (Premium)

Lightweight content addition optimized for speed:

* Choose start or end of document placement
* Optimized for streaming from AI-generated content
* Ideal for progressive content building

#### Replace Text (Premium)

Powerful text search and replacement:

* Regex support for complex pattern matching
* Match case sensitivity and replace all options
* Perfect for bulk redaction, brand-name swaps, token replacement

#### Append Image (Premium)

Add images to documents automatically:

* Image URL input with position control (start/end)
* Proxy fetch and embed for external images
* Great for automated report generation with charts/diagrams

#### Find Document (Premium)

Search and locate documents intelligently:

* Name-based search with folder scoping
* Returns array of matches with IDs, titles, links
* Essential for version control, avoiding duplicates, routing workflows

## Practical Implementation Scenarios

<AccordionGroup>
  <Accordion title="Instant Meeting Minutes Automation">
    Transform meeting recordings into structured documents:

    * Calendar Event Ended trigger activates workflow
    * AI generates meeting summary and action items
    * Create Document with structured format
    * Share link automatically via Slack or email
  </Accordion>

  <Accordion title="Contract Generation Pipeline">
    Streamline legal document creation:

    * Email trigger detects contract requests
    * Parse variables (Company, Fee, Terms) from email
    * Create Document from Template with merged data
    * Generate PDF and send to requester automatically
  </Accordion>

  <Accordion title="Living SOP Library Management">
    Maintain up-to-date standard operating procedures:

    * New Document Created trigger monitors SOP drafts folder
    * AI validates content against style checklist
    * Approved documents move to official SOP library
    * Failed validation triggers author notification with feedback
  </Accordion>
</AccordionGroup>

## Best Practices

<AccordionGroup>
  <Accordion title="Document Creation & Templates">
    Optimize your document generation workflows:

    * Use template-based creation for consistent formatting
    * Begin complex flows with Get Document to confirm you have the correct file
    * Store document URLs (not IDs) for easier human access
  </Accordion>

  <Accordion title="Content Management">
    Handle document updates effectively:

    * Combine Append, Replace, and Update actions thoughtfully for best results
    * Use Get Document to feed content into AI for intelligent processing and rewriting
  </Accordion>

  <Accordion title="Folder Organization">
    Structure your documents for automation success:

    * Implement proper folder organization and naming conventions
    * Use folder filtering on triggers to avoid unnecessary workflow activations
  </Accordion>

  <Accordion title="Workflow Integration">
    Connect documents with other tools seamlessly:

    * Use Conditions on triggers to route workflows by document type
    * Chain document actions with Gmail for automated sharing and notifications
    * Integrate with approval workflows using human-in-the-loop gates
  </Accordion>
</AccordionGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Google Drive Integration" icon="file-lines" href="/skills/popular-integrations/google-drive">
    Manage files and folders alongside documents
  </Card>

  <Card title="Gmail Integration" icon="envelope" href="/skills/popular-integrations/gmail">
    Combine document automation with email workflows
  </Card>

  <Card title="Document Processing" icon="file-lines" href="/use-cases/operations/document-processing">
    Build advanced document processing workflows
  </Card>

  <Card title="Agent Steps" icon="brain-circuit" href="/fundamentals/lindy-101/ai-agents">
    Create intelligent content generation agents
  </Card>
</CardGroup>
