Skip to main content

Convert markdown content to Google Docs document with automatic formatting

Workflow preview

Workflow preview
100%
Convert markdown content to Google Docs document with automatic formatting preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow is perfect for technical writers , content creators , marketers , and developers who write in Markdown but need to collaborate or publish using Google Docs format. Ideal for teams tha...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.markdown, n8n-nodes-base.set, n8n-nodes-base.converttofile, n8n-nodes-base.googledrive, n8n-nodes-base.merge, n8n-nodes-base.wait, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Roman Rozenberger.

Original n8n.io source

1.1 Workflow description

Title
Convert markdown content to Google Docs document with automatic formatting
Workflow name
Convert markdown content to Google Docs document with automatic formatting

This workflow is perfect for technical writers, content creators, marketers, and developers who write in Markdown but need to collaborate or publish using Google Docs format. Ideal for teams that want to streamline their content creation and review process.

What problem does this workflow solve?

Manual conversion from Markdown to Google Docs is time-consuming and often loses formatting. This workflow eliminates the tedious copy-paste process, automatically preserves formatting, and creates organized, timestamped documents in your Google Drive. Perfect for content teams who write in Markdown but need Google Docs for collaboration and review.

What this workflow does

  • Converts Markdown to HTML with proper formatting preservation (headers, lists, links, tables)
  • Creates timestamped Google Docs documents with automatic naming
  • Adds Drive location metadata for better organization and reference
  • Maintains document structure including emojis, tables, and text formatting
  • Automates file creation in specified Google Drive folders

Setup

  • Google Drive OAuth2 credentials configured in n8n
  • Target Google Drive folder URL
  • Input your content title and Markdown text in the "Set Input Data" node

How to customize this workflow to your needs

  • Modify HTML formatting options in the Markdown conversion node
  • Change file naming patterns to match your organization system
  • Adjust Drive folder structure and metadata inclusion
  • Update MIME type handling for different output requirements
  • Add additional processing steps like notifications or integrations

Perfect for technical documentation workflows, content publishing pipelines, blog preparation, and automated report generation.

Setup Instructions - Markdown to Google Docs Converter

Prerequisites

  • n8n instance (local or cloud)
  • Google account with Google Drive access
  • Basic understanding of n8n workflow configuration

Step 1: Import the Workflow

  1. Open n8n and navigate to Workflows
  2. Click "Add workflow" → "Import from JSON"
  3. Upload the Export_Markdown_Content_do_Google_Docs_Document.json file
  4. Save the workflow with a descriptive name

Step 2: Configure Google Drive Credentials

Create Google Drive OAuth2 Credentials

  1. In n8n, go to SettingsCredentials
  2. Click "Add credential" → "Google Drive OAuth2 API"
  3. Follow the OAuth setup to authorize n8n access to Google Drive:
    • Visit Google Cloud Console
    • Create or select a project
    • Enable Google Drive API
    • Create OAuth2 credentials
    • Add authorized redirect URI for your n8n instance
  4. Name the credential (e.g., "Google Drive - Markdown Converter")

Configure Google Drive Nodes

Update these nodes with your Google Drive credentials:

  • Create Empty File
  • Update Document with Correct HTML Formatting

In each node:

  1. Select your Google Drive credential from the dropdown
  2. Test the connection to ensure it works properly

Step 3: Prepare Your Google Drive

Create Target Folder

  1. Go to Google Drive (drive.google.com)
  2. Create a new folder for your converted documents
  3. Copy the folder URL (will look like: https://drive.google.com/drive/folders/FOLDER_ID)
  4. Ensure the folder has proper permissions for your Google account

Step 4: Configure Input Data

Set Your Default Values

  1. Open the "Set Input Data" node

  2. Update the assignments with your preferences:

    Google Drive URL:

    • Replace the example URL with your target folder URL
    • Format: https://drive.google.com/drive/folders/YOUR_FOLDER_ID

    Content Title:

    • Set a default title or leave placeholder text
    • This will be used in the document filename

    Content in Markdown:

    • Add your Markdown content or keep example for testing
    • Supports standard Markdown syntax (headers, lists, links, tables)

Step 5: Test the Workflow

Initial Test Run

  1. Ensure all credentials are configured
  2. Click the "Test workflow" button on the Manual Trigger node
  3. Monitor the execution - check for any errors in node outputs
  4. Verify the result:
    • Check your Google Drive folder
    • Look for a new document with timestamp in the name
    • Open the document to verify formatting

Troubleshooting Common Issues

Google Drive Permission Errors:

  • Verify OAuth2 credentials are properly configured
  • Check that the target folder exists and is accessible
  • Ensure Google Drive API is enabled in Google Cloud Console

Markdown Conversion Issues:

  • Check that your Markdown syntax is valid
  • Test with simple content first (headers, paragraphs, lists)
  • Verify the "Change Markdown To HTML" node settings

File Creation Problems:

  • Confirm the Google Drive folder URL format is correct
  • Check that the folder ID in the URL is valid
  • Ensure your Google account has write permissions to the folder

Step 6: Customize for Your Needs

Modify HTML Formatting Options

In the "Change Markdown To HTML" node:

  • Enable/disable emoji support (currently enabled)
  • Adjust table formatting (currently enabled)
  • Modify header ID generation (currently disabled)
  • Configure space requirements for headers

Update File Naming Pattern

In the "Create Empty File" node:

  • Change the naming convention: Currently uses _PUB {Content Title} {timestamp}
  • Modify timestamp format: Currently yyyy-MM-dd HH:mm:ss
  • Add prefixes or suffixes as needed for your organization

Step 7: Production Usage

Regular Workflow Execution

  1. Update the "Set Input Data" node with new content
  2. Execute the workflow manually or set up triggers
  3. Monitor execution logs for any issues
  4. Check Google Drive for generated documents

Integration Options

Webhook Integration:

  • Add a Webhook trigger to accept external Markdown content
  • Useful for automated content publishing workflows

Email Integration:

  • Add email notifications when documents are created
  • Include links to generated Google Docs

Advanced Configuration

Error Handling

  • Add error handling nodes after critical operations
  • Implement retry logic for API failures
  • Set up notifications for failed executions

Performance Optimization

  • Adjust the "Wait for Document Creation" timing if needed
  • Consider file size limits for Google Docs

Support and Troubleshooting

Common Solutions

  • Timeout errors: Increase wait time in "Wait for Document Creation"
  • Authentication failures: Refresh Google OAuth2 credentials
  • Formatting issues: Test with simpler Markdown first

Getting Help

  • Check n8n community forums for Google Drive integration issues
  • Review Google Drive API documentation for rate limits
  • Test with minimal Markdown content to isolate problems

Total setup time: ~15-20 minutes
Difficulty level: Intermediate
Requirements: Google account, n8n instance, basic OAuth2 setup knowledge

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Change Markdown To HTML

Type / Role
n8n-nodes-base.markdown - markdown
Config choices
Version 1

Block 3 - Add Information About Google Drive Location

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Convert Content to Text File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 5 - Create Empty File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 6 - Merge File With About Document ID

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 7 - Wait for Document Creation

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 8 - Change Mime Type of The File

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Set Input Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Update Document with Correct HTML Formatting

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Convert markdown content to Google Docs document with automatic formatting
Complexity intermediate
Nodes 11
Categories Document Extraction
Author Roman Rozenberger
Published 23 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5147/5147.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Convert markdown content to Google Docs document with automatic formatting do?

This workflow is perfect for technical writers , content creators , marketers , and developers who write in Markdown but need to collaborate or publish using Google Docs format. Ideal for teams tha...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.