Automated SEO Blog Content Generation, Publishing, and Multi-Platform Notification - n8n Workflow

Use this powerful n8n workflow to research topics via Perplexity, generate SEO articles using a GPT-4 AI Agent, and automatically publish content to WordPress, notify via Gmail/Slack, and log entries in Notion.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

• Content Managers and Marketing Teams looking to scale blog production.
• SEO Specialists needing fast, research-backed content drafts.
• Developers and n8n users seeking advanced n8n templates utilizing AI Agents.
• Anyone wanting to automate the entire content lifecycle from topic submission to publication.

Overview

The modern content creation pipeline is often slow, involving manual research, writing, publishing, and notification steps. This robust n8n workflow solves this by creating a hands-free content assistant. Starting with a simple form submission (the primary n8n trigger), the system fetches real-time research from Perplexity. This data is then fed into an advanced AI Agent powered by GPT-4o. This central n8n node orchestrates the entire publication process, including publishing the SEO article to WordPress, sending confirmation via Gmail, notifying teams via Slack, and archiving the entry in a Notion database. This comprehensive n8n workflow significantly reduces time-to-publish and minimizes human error, offering a prime example of sophisticated AI-driven n8n templates.

How it Works

The entire process is initiated by the Start with Research Query Submission n8n trigger, which uses a web form to gather the desired topic.


  1. Live Research: The submitted topic immediately triggers the Perplexity Research n8n node, which performs a real-time HTTP request to the Perplexity API, sourcing reputable data.

  2. Data Preparation: The output is cleaned and formatted, including source citations, using the Format Research Output Set n8n node.

  3. Configuration: The Edit Workflow Variables Set n8n node ensures that dynamic details (such as the target email address, Slack channel ID, and Notion database ID) are available throughout the rest of the n8n workflow.

  4. AI Agent Orchestration: The core logic resides in the Copywriting AI Agent (Langchain Agent n8n node). This agent uses the formatted research and the Generate SEO Blog Content (GPT-4o) model to execute a multi-step mission, leveraging connected tool n8n nodes for publishing and notification.

  5. Publishing: The agent utilizes the Publish Article to WordPress n8n node to post the generated article (title and content) with a 'publish' status.

  6. Logging: It then uses the Insert Article in Notion n8n node (via an MCP Client Tool) to log the research query, title, content, and URL into the specified Notion database.

  7. Notification: The n8n workflow concludes by sending confirmation emails via the Send Email Notification (Gmail Tool) and posting a link notification using the Notify Slack Channel n8n node.

Installation Guide

To set up this advanced n8n workflow, follow these steps after importing the JSON into your n8n instance:


  1. AI Model Setup: Configure credentials for the OpenAI API (openAiApi) for the Generate SEO Blog Content (GPT-4o) n8n node. A powerful model like gpt-4o-mini is used here.

  2. Research Tool: Set up the Generic Credential Type (httpHeaderAuth) for the Perplexity Research n8n node, requiring your Perplexity API key.

  3. Publishing Credentials: Configure the WordPress API credentials (wordpressApi) for the Publish Article to WordPress n8n node.

  4. Notification Credentials: Set up the Gmail OAuth2 credentials (gmailOAuth2) for the Send Email Notification n8n node.

  5. Multi-Channel Protocol (MCP) Tools: This n8n workflow uses MCP Client Tool n8n nodes for Slack and Notion. You must set up the respective MCP Client API credentials for both Notion (QQbMEB7i2XAAWTSc) and Slack (mC6b1h1p0lFikSzU).

  6. Variable Configuration: Crucially, update the Edit Workflow Variables n8n node with your specific emailAddress, slackChannelId, and notionDatabaseId before activating the n8n workflow.

  7. Trigger Activation: Once all credentials are set, activate the workflow and access the public form URL provided by the Start with Research Query Submission n8n trigger to begin testing.

Node Details

Start with Research Query Submission (Form Trigger): The initial n8n trigger that captures user input (Topic or Question) via a dedicated web form.
Perplexity Research (HTTP Request n8n node): Sends a POST request to the Perplexity API using the sonar-pro model to fetch real-time, cited research based on the topic provided by the n8n trigger.
Format Research Output (Set n8n node): Cleans the JSON response from Perplexity, specifically formatting citations into readable source links, preparing the data stream for the AI agent.
Edit Workflow Variables (Set n8n node): A configuration n8n node used to define static environment variables necessary for multi-platform operations (Email, Slack Channel ID, Notion Database ID).
Copywriting AI Agent (Langchain Agent n8n node): The brain of this n8n workflow. It is programmed with a detailed, sequential prompt to use the research, write the article, and orchestrate publishing actions via specialized tool n8n nodes (WordPress, Gmail, Slack, Notion).
Generate SEO Blog Content (GPT-4o) (OpenAI LLM n8n node): Serves as the Large Language Model endpoint for the AI Agent, using gpt-4o-mini for fast and capable generation.
Publish Article to WordPress (WordPress Tool n8n node): Tool utilized by the AI Agent to post the generated content and title directly to the connected WordPress site, setting the status to 'publish'.
Send Email Notification (Gmail Tool n8n node): Tool used to send a confirmation email containing the title and URL of the new article to the specified recipient.


  • Insert Article in Notion (MCP Client Tool n8n node): Tool used to add a new page entry to a Notion database, documenting the topic, content, and final URL. This provides excellent logging capabilities for this n8n workflow.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

Automation expert and certified trainer. I create hands-on courses to master automation with n8n. Contact me to access my exclusive training and start building powerful workflows today. 🚀

Featured*