Skip to main content

Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1

Workflow preview

Workflow preview
100%
Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1 preview
Open on n8n.io

1. Workflow Overview

Overview This workflow automatically converts PDF files stored in Google Drive into structured, SEO optimized blog articles in HTML format. It eliminates repetitive manual rewriting and formatting ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googledrive, n8n-nodes-base.splitinbatches, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1
Workflow name
Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1

Overview

This workflow automatically converts PDF files stored in Google Drive into structured, SEO-optimized blog articles in HTML format.

It eliminates repetitive manual rewriting and formatting by transforming raw PDF content into publish-ready blog files.

What This Workflow Does

  • Retrieves all PDFs from a specified Google Drive folder
  • Processes each file sequentially using Split In Batches
  • Downloads and extracts text from each PDF
  • Generates a long-form SEO blog article using OpenAI
  • Ensures the output is structured in HTML format
  • Saves the final blog back to Google Drive as a .html file
  • Automatically converts the original .pdf filename to .html

How It Works

The workflow begins with a manual trigger and fetches files from a configured Google Drive folder.

Using Split In Batches, each PDF is processed one at a time. This prevents API rate limits, reduces memory load, and ensures stable execution.

The extracted text is passed to OpenAI with a structured prompt that defines:

  • Blog length
  • SEO formatting
  • Heading structure (H1, H2, H3)
  • Tone and writing style
  • HTML output format

The generated content is then saved as an HTML file in a destination Google Drive folder.

Requirements

  • Google Drive credentials
  • OpenAI credentials
  • Source folder containing PDFs
  • Destination folder for generated HTML files

Output

For every PDF processed:

  • A long-form SEO blog article is created
  • Output is saved in HTML format
  • The original filename is retained and converted from .pdf to .html

Customization

You can modify:

  • The OpenAI prompt to change tone or niche
  • Blog length and SEO requirements
  • Destination folder
  • Output format if integrating with a CMS

This template is suitable for content teams, product managers, and creators who want to automate repetitive content transformation workflows while maintaining consistent output quality.

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 ‘Execute workflow’

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

Block 2 - Search files and folders

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

Block 3 - Loop Over Items

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

Block 4 - Download file

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

Block 5 - Extract from File

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

Block 6 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 7 - Create file from text

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Sticky Note2

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

3. Summary Table

Workflow Convert Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1
Complexity intermediate
Nodes 10
Categories Content Creation, Multimodal AI
Author Abhinav
Published 26 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13739/13739.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 Google Drive PDFs into SEO blog HTML using OpenAI GPT-4.1 do?

Overview This workflow automatically converts PDF files stored in Google Drive into structured, SEO optimized blog articles in HTML format. It eliminates repetitive manual rewriting and formatting ...

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 Content Creation, Multimodal AI use case.