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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free