Markdown to Google Docs icon

Markdown to Google Docs

Transform Markdown content into Google Docs API requests

Update Existing Document

AI-generated

Overview

This node operation updates an existing Google Docs document by injecting or modifying its content based on Markdown input. It supports multiple update modes such as appending content to the end, overwriting the entire document, inserting content after a specific section heading, or inserting content at a specific character index. This is useful for workflows that automate document updates, such as adding meeting notes, appending reports, or dynamically modifying document sections based on external data.

Use Case Examples

  1. Appending meeting notes to an existing Google Doc after the last character.
  2. Overwriting an entire Google Doc with new Markdown content for a fresh start.
  3. Inserting content at the end of a specific section heading, e.g., adding updates under 'Project Status'.
  4. Inserting content at a precise character index for advanced document editing scenarios.

Properties

Name Meaning
Document The Google Docs document to update, selectable by list, URL, or ID.
Markdown Input The Markdown content to convert or inject into the document.
Update Mode How to write the Markdown content into the existing document, with options to append, overwrite, insert after a heading, or insert at a specific index.
Section Heading The text of the heading to search for when inserting content after a section heading (case-insensitive).
Start Index The 1-based character position in the document body where content will be inserted when using the insert at index mode.
Update Fields Additional options for updating, including selecting or creating a tab within the document to write content to.

Output

JSON

  • json - The JSON response from the Google Docs API representing the updated document state.

Dependencies

  • Google Docs API with OAuth2 authentication

Troubleshooting

  • Ensure the Document ID or URL is valid and accessible with the provided credentials.
  • Markdown input should not be empty if required by the update mode; otherwise, errors may occur.
  • When using 'Insert at Index' mode, the index must be valid and consistent with the current document content to avoid insertion errors.
  • Proper permissions and OAuth2 credentials are required to update Google Docs documents.

Links

Discussion