Google Docs Writer
This document outlines the functionality and characteristics of the Google Docs Writer node, which enables automated document creation and editing in Google Docs.
Node Inputs
Required Fields
- Title: Name for new document
- Content: Text to be written to the document
- Content Format: Choose between Plain Text, HTML, or Markdown
Document Options
- Use Existing Doc: Toggle between creating new or editing existing document
- Document Link/ID: URL or ID of existing document (required if editing)
- Folder: Target Google Drive folder for new documents
- Make Doc Public: Option to make the document publicly accessible
- Insert Content at Start of Document: Choose whether to add new content at the beginning or end of an existing document
Configure Inputs
You can make these parameters dynamic by enabling them in “Configure Inputs”:
- Title: Document title
- Content: Document content
- Content Format: Format type (markdown, html, or text)
- Folder: Google Drive folder ID or link
Dynamic Drive Folders
This node supports specifying destination folders dynamically:
- Enable the “Folder” input in “Configure Inputs”
- Connect to a node that outputs either:
- A folder link:
https://drive.google.com/drive/folders/FOLDER_ID
- A folder ID:
FOLDER_ID
- A folder link:
- The document will be saved to the specified folder
Note: The folder input can’t be the folder name, it must either be the Drive folder URL or ID.
Node Output
- Doc Link: URL to access the created or edited document
Node Functionality
The Google Docs Writer node creates or modifies Google Docs documents.
Key features include:
- Support for multiple content formats (Text/HTML/Markdown)
- Options for new or existing document editing
- Control over content placement (top or bottom of document)
- Dynamic folder organization for new documents
- Public sharing configuration
- Batch processing via Loop Mode
- Secure authentication with Gumloop
Note: This node cannot upload or embed images directly into documents. For image inclusion, consider using Google Drive File Writer for the images and linking to them in your document.
Using AI-Generated Formatting
Markdown and HTML content can be directly passed from AI nodes like Ask AI to the Google Docs Writer. Simply:
- Configure your AI prompt to generate properly formatted Markdown or HTML
- Connect the AI node’s output to the Google Docs Writer’s content input
- Set the appropriate Content Format (Markdown or HTML)
Example Ask AI prompt for Markdown output:
Example Workflows
1. Automated Daily Reports
2. Client Documentation Updates
3. Dynamic Report Organization
Format Examples
Markdown
HTML
Important Considerations
- Requires Authentication with Google - Set up in the Credentials page
- Document permissions can be set using “Make Doc Public” option
- Markdown/HTML formatting must be properly structured
- When editing existing docs, you must have edit access
- Content placement (top/bottom) only applies when editing existing documents
- When using dynamic folders, ensure the account has write access to the destination folder
- Images cannot be directly embedded - use Google Drive links instead
In summary, the Google Docs Writer node streamlines document creation and editing in Google Docs, supporting various content formats, permission settings, and content placement options for flexible document management.