AI Summary Generator for WordPress Posts via OpenAI, Google Sheets, and Slack - n8n Workflow

Automate WordPress content enhancement using this robust n8n workflow. Generate AI summaries with OpenAI, use Google Sheets for logging, and receive instant Slack notifications. A powerful n8n template for content management.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content managers looking to automate SEO-friendly post summaries.

  • Blog owners who want to integrate AI features without installing additional WordPress plugins.

  • Technical users seeking a complex n8n template leveraging multiple integrations (OpenAI, WordPress, Google Sheets, Slack).

  • Developers needing a reliable n8n workflow with smart filtering and deduplication logic.

Overview

This sophisticated n8n workflow provides a robust solution for instantly enhancing new or existing WordPress content with high-quality, AI-generated summaries. By leveraging the power of the OpenAI n8n node, this automation ensures every post receives a concise, formatted summary block, crucial for improving user experience and SEO. The value of this n8n automation lies in its flexibility: it supports multiple triggering mechanisms (Webhook or Scheduled) and includes critical flow control measures like checking a Google Sheets database for previously summarized posts, ensuring posts are processed only once. This powerful n8n template keeps your WordPress site lightweight while maximizing content velocity and efficiency, offering a superior alternative to cumbersome proprietary plugins.

How it Works

This comprehensive n8n workflow starts with one of three potential entry points: a manual execution for testing, a Schedule Trigger for timed checks, or an event-driven Webhook n8n trigger for immediate processing upon post publication.


  1. Trigger & Retrieval: Upon triggering, the n8n workflow retrieves a batch of recently published WordPress posts using the WordPress n8n node.

  2. Looping & Deduplication: The Loop Over Items n8n node processes each post sequentially. A Google Sheets - Get rows n8n node checks if the post ID is already logged. If the ID exists in the Google Sheet, the item is skipped, preventing reprocessing.

  3. Content Preparation: For new posts, the content is retrieved using the WordPress n8n node and converted from HTML to clean Markdown format using the HTML to Markdown n8n node, optimizing it for AI processing.

  4. Pre-Summary Classification: A Text Classifier n8n node (powered by OpenAI) performs a secondary check to confirm the content does not already contain a summary block, ensuring workflow resilience.

  5. AI Generation: The OpenAI n8n node receives the Markdown content and, using a highly specific system prompt, generates a custom HTML summary block designed for insertion into the WordPress editor.

  6. Post Update: The Wordpress - Update Post n8n node executes an HTTP request to insert the newly generated HTML summary block at the beginning of the post content.

  7. Logging & Notification: The final steps utilize the Set fields n8n node to structure the data, followed by the Google Sheets - Add Row n8n node to log the successful operation, and finally, the Slack - Notify Channel n8n node to alert the team about the newly summarized post.

Installation Guide

To deploy this powerful n8n template, follow these steps:


  1. Import the Workflow: Copy the provided JSON data and import it directly into your n8n instance.

  2. Credentials Setup: Configure credentials for the following services:

WordPress API: Requires API credentials (often application passwords) for authentication to retrieve and update posts.
OpenAI: Set up your API key for the OpenAI and OpenAI Chat Model n8n node connections.
Google Sheets: Set up a Service Account connection for the Google Sheets n8n node to read and write logging data. Ensure the Google Sheet document is shared with the service account email.
Slack: Configure an OAuth2 credential to allow the Slack n8n node to post notifications to a designated channel.

  1. URL Customization: Update all hardcoded placeholder URLs in the following n8n nodes:

Wordpress - Update Post URL.
Set fields - Prepare data for Gsheets & Slack (specifically the edit_link field).

  1. Trigger Selection: Choose your preferred n8n trigger (Schedule or Webhook) and disable the others, including the manual trigger, for production use. Ensure your chosen trigger is active.

Node Details

Manual Trigger / Schedule Trigger / Webhook (n8n trigger): Provides multiple options to start the n8n workflow, allowing for scheduled polling or immediate, event-driven processing.
WordPress - Get All Posts / Get Post (n8n node): Retrieves post data. Crucially, it uses context=edit to get the raw content needed for updating and filtering.
Loop Over Items (n8n node): Essential for handling batches of posts returned by the WordPress n8n node, ensuring each post is processed sequentially.
Google Sheets - Get rows (n8n node): Checks for the existence of the post_id in the log sheet, enabling robust deduplication logic within the n8n workflow.
If (n8n node): Controls the flow, diverting already processed posts back to the Loop Over Items n8n node, saving OpenAI costs.
HTML to Markdown (n8n node): Converts complex HTML post content into clean Markdown, improving the quality of the input for the subsequent AI step.
Text Classifier (n8n node): Uses OpenAI (gpt-4o-mini) to classify content, providing an extra layer of validation by checking if an AI summary block already exists in the content.
OpenAI (n8n node): The core AI engine. Uses a detailed System Prompt to generate a structured, bullet-point AI Summary strictly formatted as a WordPress HTML block.
Wordpress - Update Post (n8n node - HTTP Request): Executes the update API call to insert the AI-generated HTML summary at the start of the existing post content.
Set fields - Prepare data for Gsheets & Slack (n8n node): Gathers and structures key metadata (post ID, links, summary text) before logging.
Google Sheets - Add Row (n8n node): Logs the success of the operation, ensuring the post is marked as summarized for future n8n workflow executions.
Slack - Notify Channel (n8n node): Sends a real-time notification to a dedicated channel upon successful post update.

Related n8n Workflows

Free

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

I am passionate about transforming complex processes into seamless automations with n8n. My expertise spans across creating ETL pipelines, sales automations, and data & AI-driven workflows. As an avid problem solver, I thrive on optimizing workflows to drive efficiency and innovation.

Featured*