Bulk PDF Document to Markdown Conversion using LLM Parsing - n8n Workflow

Automate bulk PDF to Markdown conversion using Google Drive and LLM parsing within an n8n workflow. Perfect for creating searchable documentation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Knowledge managers needing to process large archives of documentation.
Content teams standardizing file formats for internal knowledge bases.
Users seeking powerful n8n templates for file processing.
Developers wanting to integrate advanced AI-powered PDF extraction into their n8n workflow.

Overview

Handling bulk unstructured data, especially complex PDFs, is a common automation challenge. This robust n8n workflow template addresses the need to efficiently convert large volumes of PDF documents into clean, structured Markdown format, ready for consumption by documentation systems or RAG knowledge bases.

This automation starts by fetching files from Google Drive, leveraging the power of the PDF Vector n8n node—which uses advanced AI parsing (LLMs)—to ensure high-quality text extraction and formatting into Markdown. The entire process, from file listing to saving the final output and sending a summary notification, is handled seamlessly by this efficient n8n automation. If you need a reliable method for processing documents in bulk, this n8n workflow offers a complete, production-ready solution.

How it Works

The process begins by using the Google Drive n8n node to list all files within a defined input folder ID. Although this specific implementation uses Google Drive, similar n8n templates could be initiated via an HTTP request or a standard n8n trigger.


  1. Filtering: The listed files are passed to an If n8n node, which rigorously checks the MIME type to ensure only actual PDF documents (application/pdf) proceed to the next step.

  2. Conversion Core: The workflow executes the core function using the specialized PDF Vector n8n node. This node fetches the PDF document link and converts the file contents into structured Markdown, utilizing its LLM capabilities for optimal parsing.

  3. Data Structuring: A Code n8n node then standardizes the resulting data, creating the correct Markdown file name (.md) and collecting crucial metadata, such as the original file name and conversion credits used.

  4. Saving Results: A second Google Drive n8n node uploads the newly generated Markdown file content to a specified output folder within Google Drive.

  5. Summarization: A Set n8n node calculates a comprehensive summary of the operation, counting the total converted items and summing up the credits used across the batch.

  6. Notification: The successful completion of this n8n workflow is finalized by sending a detailed notification message, including the conversion statistics, via the Slack n8n node.

Installation Guide

To deploy this n8n workflow template, follow these steps:


  1. Import: Copy the provided n8n workflow JSON code and paste it into your n8n instance's canvas using the 'New' -> 'Import from JSON' function.

  2. Credentials: Set up the necessary credentials for the external services:

Google Drive: Configure your Google Drive credentials for both the 'List PDFs' and 'Save Markdown Files' n8n node instances.
PDF Vector: Ensure you have configured the required API key for the PDF Vector n8n node (or the associated cloud service it relies on).
* Slack: Set up your Slack credentials for the 'Send Notification' n8n node.

  1. Configuration: Update the static parameters in the Google Drive n8n node (List PDFs) to specify the source folderId and the target outputFolderId parameter in the 'Save Markdown Files' n8n node. If you prefer a different starting method, you could replace the initial Google Drive listing with an n8n trigger suitable for your environment.

Node Details

Google Drive - List PDFs: The starting n8n node (acting as the initial trigger mechanism) that retrieves files. It uses the list operation, targeting a dynamically supplied folderId.
Filter PDFs Only (If): A core logic n8n node that ensures only items with mimeType equal to application/pdf proceed, ensuring efficient processing.
PDF Vector - Convert to Markdown: The central processing n8n node. It performs the parse operation on the document URL, using the auto LLM setting to convert complex PDF structure into clean Markdown content.
Prepare Output (Code): This custom n8n node cleans up file names (replacing .pdf with .md) and structures the output payload, including essential metadata required for the final summary.
Save Markdown Files (Google Drive): This n8n node performs the upload operation, saving the Markdown content to the specified output folder.
Conversion Summary (Set): An aggregation n8n node that calculates conversion totals and total credits used by iterating over all items, generating a single summary message.


  • Send Notification (Slack): The final n8n node that alerts stakeholders about the successful execution of the n8n workflow, including the detailed summary statistics.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by

A fully featured PDF APIs for developers - Parse any PDF or Word document, extract structured data, and access millions of academic papers - all through simple APIs.

Featured*