Use this efficient n8n workflow to automate converting structured Markdown content into a fully formatted Google Docs document. This n8n template handles HTML conversion and file creation seamlessly.
Download this n8n workflow template and start using it instantly.
Manually converting detailed Markdown documents into Google Docs often results in lost formatting, requiring extensive manual cleanup. This custom n8n workflow solves this issue by systematically converting the Markdown content into HTML, ensuring all headers, lists, and formatting are preserved when imported into Google Docs. The core automation flow first creates an empty Google Doc file with a timestamped title and then updates that file with the rich HTML content. This powerful n8n solution eliminates manual steps, providing an efficient path for technical documentation and content preparation. Using the Google Drive n8n node, the process is fully integrated and robust.
This automation begins with a manual n8n trigger, which initiates the process. The first n8n node, 'Set Input Data', defines the target Google Drive URL, the desired document title, and the source Markdown content. The workflow then splits into two crucial parallel paths.
content.html). A critical step follows: a Code n8n node manually overrides the binary file’s MIME type to text/html. This ensures the subsequent Google Drive operation correctly interprets the content as rich HTML for formatting.Once both branches complete, the workflow uses an n8n Merge node to combine the newly generated File ID (from the creation path) with the correctly formatted binary HTML content (from the preparation path). After a brief wait period via the Wait n8n node (to ensure Google Drive is ready), the final Google Drive n8n node updates the document using the binary HTML data, resulting in a fully formatted Google Doc.
To utilize this n8n workflow, follow these steps:
Google Drive URL (the folder where the document should be saved), Content Title, and replace the placeholder Polish text under Conten in Markdown with your desired Markdown content. When clicking ‘Test workflow’ (Manual Trigger): The starting point for this specific n8n workflow. It acts as the manual n8n trigger to run the process on demand.
Set Input Data (Set n8n node): Defines essential variables for the rest of the flow, including the Google Drive destination URL, the final document title, and the source Markdown content.
Change Markdown To HTML (Markdown n8n node): Converts the input Markdown string into a rich HTML string, preserving formatting like headings and lists, which is vital for correct Google Docs conversion.
Convert Content to Text File (Convert To File n8n node): Takes the final HTML string and encapsulates it as a binary data object named 'file', preparing it for upload.
Change Mime Type of The File (Code n8n node): This is a custom n8n node script that forces the MIME type of the binary file from a default text type to text/html. This is a critical step for ensuring Google Drive renders the content as rich HTML during the update operation.
Create Empty File (Google Drive n8n node): Creates the initial placeholder document in Google Drive, utilizing the 'createFromText' operation with the convertToGoogleDocument option set to true. It captures the unique document ID required for the update.
Merge File With About Document ID (Merge n8n node): Synchronizes the two parallel branches, ensuring the binary HTML content is associated with the correct, newly created Google Document ID.
Update Document with Correct HTML Formatting (Google Drive n8n node): The final action. This n8n node uses the 'update' operation with the correctly MIME-typed HTML file to insert the rich content into the previously created Google Doc.
Use this comprehensive n8n workflow to automatically convert Markdown content into validated Contentful Rich Text JSON using an AI agent (GPT-4), ensuring perfect formatting for headless CMS publishing.

Use this efficient n8n workflow to automatically convert LinkedIn video URLs into MP4 files via RapidAPI, upload them to Google Drive, and track failures in Google Sheets. A powerful n8n template.

Use this powerful n8n workflow to convert LinkedIn post reactions into qualified leads automatically. This n8n template uses Apify scraping and AI classification to filter ICP matches.

Automate publishing complex Markdown content (including tables and nested lists) to Notion. This n8n workflow uses the Mark2Notion API for seamless, structured content conversion.








































