Google Docs Writer
Create new Google Docs or update existing ones with text or markdown content
What does this node do?
The Google Docs Writer node creates new Google Docs or updates existing ones with text or markdown content. It supports two modes: creating a new document or updating an existing one, with the option to replace or append content.
Common uses:
- Save AI-generated content directly to Google Docs
- Create reports from workflow data
- Append logs or daily summaries to an existing document
Quick setup
Connect your Google account
Go to Builder → Integrations → Google and authenticate with the google_docs scope
Add the Google Docs Writer node
Find it in Integrations → Google → Docs Writer
Configure the write mode
Choose to create a new document or update an existing one, then connect your content input
Configuration
Version: 1.0 | Integration: google_docs
Inputs
content string required The text or JSON content to write to the document. JSON input is automatically converted to plain text. Connect this to the output of a previous node (e.g., LLM response, template output).
Parameters
integration_id string required The Google Docs integration to use. Select from your configured Google integrations.
create_new boolean default: false Whether to create a new document or update an existing one. When enabled, a new document is created with the specified title. When disabled, an existing document is updated.
document_id string The existing document to update. Use the Google Drive Picker to select the document. Required when create_new is disabled.
document_name string Display name of the selected document. Auto-filled when a document is selected via the Picker.
document_title string Title for the new document. Used when create_new is enabled.
tab_id string The specific tab ID to write to within the document. Leave empty to write to the default (first) tab.
tab_name string Display name of the selected tab. Auto-filled when a tab is selected.
folder_id string The Google Drive folder where the new document will be created. Use the Google Drive Picker to select a destination folder. Only used when create_new is enabled.
folder_name string Display name of the selected folder. Auto-filled when a folder is selected via the Picker.
input_type select default: plain_text The format of the input content.
| Value | Description |
|---|---|
plain_text | Content is treated as plain text |
markdown | Content is interpreted as markdown and converted to Google Docs formatting |
write_mode select default: replace How the content is written to the document.
| Value | Description |
|---|---|
replace | Overwrites all existing content in the document or tab |
append | Adds the new content at the end of the existing content |
Output
document_info string JSON string containing the document ID, title, and URL of the created or updated document.
{
"document_id": "1aBcDeFgHiJkLmNoPqRsTuVwXyZ",
"title": "Q1 Marketing Report",
"url": "https://docs.google.com/document/d/1aBcDeFgHiJkLmNoPqRsTuVwXyZ/edit"
}
Access the output: {{Google_Docs_Writer_0.document_info}}
Examples
Create a new document from LLM output
Generate a blog post with AI and save it as a new Google Doc:
graph LR
A[Text Input] --> B[LLM]
B --> C[Google Docs Writer]
Setup:
- Connect your LLM output to the
contentinput of Google Docs Writer - Enable
create_newand setdocument_titleto your desired title - Optionally select a destination folder via the Picker
- Set
input_typetomarkdownif your LLM outputs markdown
Append a daily report to an existing document
Collect data from multiple sources and append a daily summary:
graph LR
A[Google Sheets Reader] --> B[LLM]
B --> C[Merge With Template]
C --> D[Google Docs Writer]
Setup:
- Read daily metrics from Google Sheets
- Use an LLM to generate a summary
- Format with Merge With Template
- Set
write_modetoappendto add the report at the end of the existing document - Select the target document via the Picker
Best practices
- Use markdown input type for formatted content. When writing AI-generated content, set
input_typetomarkdownto preserve headings, lists, and links in the Google Doc. - Use append mode for logs and recurring reports. Instead of creating a new document each time, append to an existing one to keep a running record.
- Organize with folders. When creating new documents, always specify a destination folder to keep your Google Drive organized.
Common issues
Document not created or updated
Verify that the Google integration has write permissions. The google_docs scope must be enabled and the authenticated account must have edit access to the target document or folder.
Formatting is lost in the output document
Make sure input_type is set to markdown if your content contains formatting. With plain_text mode, all markdown syntax will appear as raw text in the document.