Automate SEO-Optimized WordPress Blogs with n8n & AI

This workflow automates creating SEO-optimized WordPress blog posts using Perplexity AI research, OpenAI language models, and n8n workflow automation. It solves the challenge of manual content creation by delivering researched, structured, and publish-ready blogs efficiently.
formTrigger
httpRequest
set
+5
Workflow Identifier: 1364
NODES in Use: formTrigger, httpRequest, set, agent, outputParserStructured, lmChatOpenAi, wordpress, telegram
Automate WordPress blogs with n8n and AI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow creates a full blog post draft from a simple topic.
The main problem it solves is saving time on deep research and writing while keeping the post accurate and SEO-friendly.
It gets a research query, finds trustworthy info, writes a well-structured blog, then uploads it as a draft on WordPress with images.
This helps content creators publish more often without manual work.


Who Should Use This Workflow

People making blogs regularly that want to save time on research and writing.
This is for marketers, content creators, or small teams working with WordPress who need SEO-ready posts fast.


Tools and Services Used

  • n8n: Automates the entire process inside workflows.
  • Perplexity AI API: Fetches current research summaries with sources.
  • OpenAI API (GPT-4o-mini): Writes the blog post and SEO metadata.
  • WordPress API: Uploads drafts and images.
  • Telegram Bot API: Sends notifications to the team.


How This Workflow Works (Input → Process → Output)

Inputs

User submits a research topic through a web form.

Processing Steps

  • Get the research query from form input.
  • Send query to Perplexity AI via HTTP POST request for trusted research results.
  • Clean the research text, add human-readable source citations.
  • Use OpenAI to write a long, SEO-optimized blog including the research.
  • Create SEO metadata: blog title, slug, and meta description via OpenAI with structured output.
  • Merge all content data into one payload.
  • Post draft blog on WordPress via API.
  • Upload an image and set it as the featured image for the blog post.
  • Send Telegram notification about the new draft post.

Output

A SEO friendly blog post draft with metadata and image is created as a WordPress draft.
The user/team receives a Telegram alert.


Beginner Step-by-Step: How to Use This Workflow in n8n

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and click on “Import from File.”
  3. Select the downloaded workflow file and import it.

Configure Credentials and IDs

  1. Open n8n Credentials tab.
  2. Add or update your WordPress API Key and URL.
  3. Add the OpenAI API Key.
  4. Add the Perplexity AI API Key.
  5. Set up Telegram Bot token and chat ID if you want notifications.
  6. If the workflow uses fixed image URLs or user IDs, update those with your own.

Test the Workflow

  1. Open the Webhook URL from the Webhook node (from form trigger).
  2. Submit a test blog topic using the form.
  3. Watch execution logs in n8n for errors.

Activate for Production Use

  1. If all tests pass, activate the workflow.
  2. Share webhook URL with your team for submitting blog queries.
  3. Monitor runs for any failing steps.
  4. Remember to keep API Keys up to date.

Try self-host n8n if planning to run this workflow steadily with control.


Customization Ideas

  1. Change the research source by editing the Perplexity HTTP Request payload.
  2. Add more images by fetching and uploading multiples, then attach them in WordPress.
  3. Make posts publish immediately by changing WordPress status to “publish.”
  4. Adjust SEO rules in the OpenAI agent prompt to fit other domains.
  5. Add Slack or email notifications along with Telegram using extra nodes.

Troubleshooting Common Issues

  1. 401 Unauthorized from WordPress API
    Check API key correctness and reauthenticate in n8n.
  2. Empty research responses from Perplexity AI
    Verify JSON body matches API specs and API key is set.
  3. Telegram notifications not arriving
    Confirm that Telegram bot token and chat ID are correct.
  4. Image upload fails or image not attached to post
    Make sure HTTP headers for image upload include proper content disposition.

Pre-Production Checklist

  • Test submitting sample queries to trigger the workflow.
  • Confirm research data is received from Perplexity correctly.
  • Check the OpenAI node outputs a full blog draft.
  • Make sure WordPress draft post is created with metadata.
  • Send a Telegram message test to validate notification.
  • Backup WordPress before bulk content publishing.

Deployment Guide

After workflow import and configuration, activate it in n8n.
Share the webhook URL with team members who give blog topics.
Watch workflow executions on the n8n dashboard and fix errors fast.
Keep API keys fresh and update prompts to keep content useful.
Consider self-host n8n if needing more control or scaling.


Summary

✓ Save many hours by automating research, writing, and publishing.
✓ Get SEO friendly, credible blog drafts ready as WordPress drafts.
✓ Receive quick notifications so the team knows when posts are ready.
✓ Easy to use even for beginners by importing and configuring credentials.


Automate WordPress blogs with n8n and AI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Submit the blog topic using the form at the workflow’s webhook URL. This triggers the process.
Check and update the WordPress API Key in n8n credentials to ensure correct access.
Yes. Replace the Perplexity HTTP Request node with another API but update JSON and prompts accordingly.
Send a test message in the Telegram node using correct bot token and chat ID to verify delivery.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.