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:

  1. Enable the “Folder” input in “Configure Inputs”
  2. Connect to a node that outputs either:
    • A folder link: https://drive.google.com/drive/folders/FOLDER_ID
    • A folder ID: FOLDER_ID
  3. The document will be saved to the specified folder
Valid folder link: https://drive.google.com/drive/folders/1xGA0zvylsPs2t8FoC5DP2YQgO3tptIxI
Valid folder ID: 1xGA0zvylsPs2t8FoC5DP2YQgO3tptIxI

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:

  1. Configure your AI prompt to generate properly formatted Markdown or HTML
  2. Connect the AI node’s output to the Google Docs Writer’s content input
  3. Set the appropriate Content Format (Markdown or HTML)

Example Ask AI prompt for Markdown output:

Generate a daily report in Markdown format with the following sections:
- Summary (level 1 heading)
- Key Metrics (level 2 heading)
- Action Items (level 2 heading with bullet points)
- Next Steps (level 2 heading)

Use proper Markdown formatting with headings, bullet points, bold for important items, and tables if needed.

Output just the Markdown content without any Markdown backticks.

Example Workflows

1. Automated Daily Reports

Airtable Reader → Ask AI → Google Docs Writer
Setup:
- Title: "Daily Report - {current_date}"
- Content Format: Markdown
- Folder: Reports folder
Purpose: Generate formatted daily business reports

2. Client Documentation Updates

Gmail Reader → Extract Data → Google Docs Writer
Setup:
- Use Existing Doc: Yes
- Document ID: Client documentation ID
- Insert at Start: Yes
Purpose: Add latest client communications at the top of docs

3. Dynamic Report Organization

Categorizer → If-Else → Google Docs Writer
Setup:
- Dynamic folder input based on category
Purpose: Sort reports into different folders based on content

Format Examples

Markdown

# Main Heading
## Subheading
**Bold text** and *italic text*
- Bullet point 1
- Bullet point 2

[Link text](https://www.example.com)

HTML

<h1>Main Heading</h1>
<h2>Subheading</h2>
<p><strong>Bold text</strong> and <em>italic text</em></p>
<ul>
  <li>Bullet point 1</li>
  <li>Bullet point 2</li>
</ul>
<a href="https://www.example.com">Link text</a>

Important Considerations

  1. Requires Authentication with Google - Set up in the Credentials page
  2. Document permissions can be set using “Make Doc Public” option
  3. Markdown/HTML formatting must be properly structured
  4. When editing existing docs, you must have edit access
  5. Content placement (top/bottom) only applies when editing existing documents
  6. When using dynamic folders, ensure the account has write access to the destination folder
  7. 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.