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.
Related Templates
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments