Blocks
Google Docs
Read, write, and create documents
Integrate Google Docs functionality to manage documents. Read content from existing documents, write to documents, and create new documents using OAuth authentication. Supports text content manipulation for document creation and editing.
Block Preview
Google Docs
Read, write, and create documents
Usage
- Add the block to your workflow and connect it to the upstream step.
- Connect the required credentials or OAuth provider before running.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the google_docs block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: full
Options: Read Document, Write to Document, Create Document
Google Account
oauth-inputPlaceholder: Select Google account
Layout: full
Provider: google-docs
Select Document
file-selectorPlaceholder: Select a document
Layout: full
Provider: google-drive
Condition: operation = "read"
Select Document
file-selectorPlaceholder: Select a document
Layout: full
Provider: google-drive
Condition: operation = "write"
Or Enter Document ID Manually
short-inputPlaceholder: ID of the document (from URL)
Layout: full
Condition: operation = "read" AND documentId = ""
Or Enter Document ID Manually
short-inputPlaceholder: ID of the document (from URL)
Layout: full
Condition: operation = "write" AND documentId = ""
Document Title
short-inputPlaceholder: Enter title for the new document
Layout: full
Condition: operation = "create"
Parent Folder ID (Optional)
short-inputPlaceholder: ID of the parent folder (leave empty for root folder)
Layout: full
Condition: operation = "create"
Content
long-inputPlaceholder: Enter document content
Layout: full
Condition: operation = "write"
Content
long-inputPlaceholder: Enter document content
Layout: full
Condition: operation = "create"
Inputs (API)
operation
stringRequired
credential
stringRequired
documentId
stringOptional
manualDocumentId
stringOptional
title
stringOptional
folderId
stringOptional
content
stringOptional
Outputs
Primary response type:
{
"content": "string",
"metadata": "json",
"updatedContent": "boolean"
}