Markdown to Google Docs icon

Markdown to Google Docs

Transform Markdown content into Google Docs API requests

Create Document

AI-generated

Overview

This node operation creates a new Google Docs document in a specified Google Drive folder from Markdown content. It supports using a template document with placeholders for dynamic content injection, including parsing Markdown into formatted Google Docs content. Users can specify the drive, folder, document title, and additional options like template settings and page break strategies. This is useful for automating document creation workflows, such as generating reports, proposals, or documentation from Markdown sources.

Use Case Examples

  1. Create a project report document in a specific Google Drive folder from Markdown input.
  2. Generate a Google Docs document using a predefined template and inject Markdown content into placeholders.
  3. Automate creation of meeting notes documents with custom page breaks and formatting from Markdown.

Properties

Name Meaning
Drive The Google Drive where the new document will be created. Supports selecting by list, URL, or ID.
Folder The folder within the selected drive where the document will be created. Supports selecting by list, URL, or ID.
Markdown Input The Markdown content to convert and inject into the new Google Docs document.
Document Title The title to assign to the newly created Google Docs document.
Additional Options Optional settings including template usage and page break strategies.

Output

JSON

  • documentId - The ID of the created Google Docs document.
  • documentUrl - The URL to access the created Google Docs document.
  • title - The title of the created document.
  • driveId - The ID of the Google Drive where the document was created.
  • folderId - The ID of the folder where the document was created.

Dependencies

  • Google Docs API with OAuth2 authentication

Troubleshooting

  • Ensure the Markdown Input is not empty if using markdown injection, as it is required and will cause an error if missing.
  • Verify that the Drive and Folder IDs or URLs are valid and accessible with the provided credentials.
  • If using template settings, ensure the template folder and document IDs are correct and accessible.
  • Invalid JSON in placeholder data will cause an error; validate JSON format before input.

Links

  • Google Docs API - Official documentation for the Google Docs API used to create and manipulate documents.

Discussion