n8n

How to Generate WordPress Blog Posts from PDFs?

Turn PDFs into WordPress blog posts in minutes. An AI model writes a clear title and full HTML content. A human reviewer approves each draft before it goes live.

A simple form collects the PDF. The file text is extracted, then OpenAI gpt-4o-mini builds the article. The flow checks for title and content before sending an approval email in Gmail. After approval, it creates a WordPress draft, generates a featured image with Pollinations AI, uploads it to WordPress, and sets it on the post. Markdown builds a short summary, and Gmail and Telegram share status updates.

You will need accounts for WordPress, OpenAI, Gmail, Telegram, and imgbb. Expect faster publishing, less editing, and consistent structure across posts. Use it to repurpose reports, whitepapers, or training PDFs into search friendly articles. Follow the setup steps to connect credentials, update your site URLs, and test with a sample PDF.

What are the key features?

  • Form trigger collects a PDF file and starts the process
  • Extract From File reads text from the uploaded PDF
  • OpenAI gpt-4o-mini generates an SEO title and full HTML content
  • If node verifies that title and content exist before moving on
  • Gmail sends the draft to a reviewer for human approval
  • After approval, a WordPress draft is created with AI content
  • Pollinations AI creates a featured image based on the title
  • HTTP Request uploads the image to WordPress and sets it as featured
  • Markdown compiles a clean summary, while Gmail and Telegram send status updates
  • Optional imgbb upload stores a base64 image backup and shareable link

What are the benefits?

  • Reduce manual writing from 3 hours to 15 minutes per post
  • Streamline content steps by about 70% from intake to publish
  • Cut editing time by 50% with a consistent post structure
  • Connect WordPress, Gmail, Telegram, OpenAI, and imgbb in one flow
  • Handle 10 or more PDFs per day without extra staff
  • Lower posting errors with an approval gate and content checks

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with WordPress, Gmail, Telegram, OpenAI, imgbb and Pollinations AI. See the Tools Required section above for links to create accounts with these services.
  3. Open the Upload PDF node and confirm the form path and title. Keep the file field required and limited to .pdf.
  4. Double click the OpenAI node and in the Credential to connect with menu click Create new credential. Add your OpenAI API key from your OpenAI account.
  5. Double click the WordPress nodes and in the Credential to connect with menu click Create new credential. Enter your site URL and login method. Application Passwords are common for WordPress. Use a name you recognize for the credential.
  6. Open each Gmail node and connect using OAuth2. Click Create new credential, choose your Google account, and allow email permissions.
  7. Open each Telegram node and click Create new credential. Use the bot token from BotFather and set the chat ID in the node so messages reach the right channel or user.
  8. Open the Save Image to imgbb.com node. Add your imgbb API key as a query or header as needed. If unsure, place the key in the node and follow the on screen instructions.
  9. Check the Extract Text node and make sure the binaryPropertyName matches the form field, for example Upload_PDF_File.
  10. Review the AI prompt in the Write Blog Post or gpt-4o-mini node. Adjust tone and structure to match your brand.
  11. Update the WordPress URLs in Upload Image to Wordpress and Set Image on Wordpress Post so they point to your domain. Ensure the path includes /wp-json/wp/v2/.
  12. Run a test: submit a sample PDF through the form URL, approve the Gmail review email, then verify the WordPress post draft, featured image, and the Gmail and Telegram notifications. If a step fails, check node logs for 401 errors on WordPress, missing API keys on imgbb, or blocked emails, then retry.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

ImgBB

Sign up

3-Year Pro: $3.99 / mo (billed $143.64 every 3 years). Includes API access.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Pollinations AI

Sign up

Free tier: $0 — anonymous or token API access (Seed tier, ad-supported)

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

WordPress

Sign up

Free plan: $0 / mo (WordPress.com REST API supports creating posts)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.