Automate SEO Blog Creation with GPT-4, Perplexity & n8n [Full Workflow]

Build a fully automated SEO blog writing workflow using GPT-4, Perplexity for research, and n8n for publishing. Includes the complete workflow JSON.
agent
wordpressTool
gmailTool
+7
Workflow Identifier: 1144
NODES in Use: formTrigger, httpRequest, set, chatTrigger, agent, wordpressTool, gmailTool, mcp.mcpClientTool, lmChatOpenAi, stickyNote
Automate SEO blog posts with n8n and GPT-4

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

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow accepts a topic or question input live through a web form.
It runs research using the Perplexity API, then creates a short SEO-friendly blog post using GPT-4.
The article is published automatically to WordPress, then emails and Slack messages notify the team.
Finally, the article details get logged into a Notion database for tracking.
This automation saves many hours every week by handling all repetitive blog content tasks with little chance of errors.


Tools and Services Used

  • n8n: Core automation platform hosting the workflow.
  • Perplexity API: Provides live, credible research summaries.
  • OpenAI GPT-4o-mini model: Generates SEO-optimized blog content.
  • WordPress Tool: Publishes articles on WordPress sites.
  • Gmail Tool: Sends email notifications using OAuth2.
  • Slack MCP Client Tool: Sends messages to Slack channels.
  • Notion MCP Client Tool: Creates records in Notion databases.

Inputs, Processing, and Outputs

Inputs

  • Topic or question text from a web form triggered webhook.

Processing Steps

  • Send input topic to Perplexity API for fresh research.
  • Format response, replacing citation tokens with links.
  • Feed cleaned research to GPT-4o-mini prompt to write a blog post with headings.
  • Sequentially publish article to WordPress, then send notifications and log data.

Outputs

  • New SEO-optimized blog post published on WordPress.
  • Email sent to notify about the new article.
  • Slack channel message announcing the publication.
  • Content details stored as new entry in Notion database.

Who Should Use This Workflow

This workflow fits digital content creators, marketers, or small teams who want to generate SEO blog posts faster.
It helps people who find researching and manual publishing slow and error-prone.
No deep coding or AI expertise needed, only basic n8n knowledge.


Beginner Step-by-Step: How To Use This Workflow In Production In n8n

1. Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Go inside the n8n editor.
  3. Choose Import from File and select the downloaded workflow.

2. Configure Credentials and Variables

  1. Add or update all API keys and credentials needed for Perplexity, OpenAI, WordPress, Gmail, Slack, and Notion nodes.
  2. Open the Edit Workflow Variables Set node and update your email address, Slack channel ID, and Notion database ID.

3. Test the Workflow

  1. Trigger the web form webhook URL by submitting a test topic.
  2. Watch the execution in the n8n editor to confirm every step completes successfully.

4. Activate the Workflow

  1. Once tests pass, activate the workflow by clicking the activate toggle.
  2. Make sure the webhook URL is publicly accessible or use a tunnel if needed.
  3. For users running self-host n8n instances, see self-host n8n resources.

Customization Ideas

  • Change the AI model inside the Generate SEO Blog Content (GPT-4o) node, like switching to “gpt-3.5-turbo”.
  • Edit the email message template by updating prompt text in the AI agent for your style.
  • Add more publish targets by extending the AI agent with new MCP Client Tool nodes for Medium or LinkedIn.
  • Adjust Notion logging fields, adding tags, authors, or dates for better tracking.
  • Modify Slack messages text to include more info or use different channels.

Troubleshooting

  • 401 Unauthorized on Perplexity Research node
    Cause: API Key missing or wrong in HTTP Headers.
    Fix: Check and update HTTP Header Authentication credentials.
  • 403 Forbidden when publishing WordPress article
    Cause: WordPress API permissions or keys are off.
    Fix: Adjust user permissions, regenerate keys, and update n8n credentials.
  • Slack messages not sent
    Cause: Wrong Slack channel ID or expired token.
    Fix: Verify Slack channel ID in the workflow variables and refresh tokens.

Pre-Production Checklist

  • Submit a research query to the webhook and confirm triggering.
  • Validate all API credentials are correct, valid, and active.
  • Check Notion database schema and permissions.
  • Confirm Slack channel ID and email address in workflow variables.
  • Run a full end-to-end test with a sample topic.

Deployment Guide

Enable the workflow inside n8n after setup and testing.
Make sure the webhook is accessible over the internet or a tunnel is set.
Use n8n’s dashboard for monitoring runs and errors.
For self-hosted users, external logging tools help with tracking.


Summary

✓ Automates blog content from live input to publishing.
✓ Saves hours by removing manual research and posting.
✓ Sends timely notifications by email and Slack.
✓ Logs articles in Notion for easy tracking.
✓ Easy to import, configure, and activate in n8n.
→ Results in fresh, SEO-optimized posts with no missed deadlines.


Automate SEO blog posts with n8n and GPT-4

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, the user can switch the AI model inside the Generate SEO Blog Content (GPT-4o) node to models like gpt-3.5-turbo.
A missing or invalid API Key in the HTTP Header Authentication causes 401 Unauthorized errors.
The workflow sends an email via the Gmail node and posts a message in a Slack channel using the MCP Client Tool.
The user submits a test topic to the webhook URL and watches the execution in the n8n editor to confirm steps finish successfully.

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.