AI summary block for WordPress posts n8n workflow
This n8n workflow writes a short AI summary and adds it to the top of WordPress posts. It is for bloggers and content teams who want a summary block on new articles, a Google Sheets log of what changed, and a Slack note each time a post is updated.
What it does
It gets posts from WordPress, converts the HTML to markdown, uses an OpenAI text classifier and model to write the summary, updates the post over the WordPress API, adds a row to Google Sheets and notifies a Slack channel.
How to use it
Test with the manual trigger, then enable either the schedule trigger, which checks for newly published posts at a set interval, or the webhook trigger for production.
Requirements and limits
Needs WordPress, OpenAI, Google Sheets and Slack credentials.
More in Slack and the n8n workflow library.
Full text
Front matter
name: AI-Generated Summary Block for WordPress Posts - with OpenAI, WordPress, Google Sheets & Slack
description: Triggered on a schedule. Connects Condition, Date Time, Google Sheets, HTTP request, Loop, Markdown, Schedule, Slack. ## Trigger - Two Options To use this workflow, you have two trigger options. The default trigger is **"When clicking 'Test workflow'"**, allowing you to manually test the scenario. If you want to use this workflow in production, you can choose one of the following triggers. You'll need to **select the one you prefer and enable it**.: ### Schedule Trigger This trigger checks at regular intervals (e.g., every 5 minutes) if a new post has been published on your WordPress blog and triggers the w
category: Automation
kind: Workflow
software: Condition|Date Time|Google Sheets|HTTP request|Loop|Markdown|Schedule|Slack|Webhook|WordPressAI-Generated Summary Block for WordPress Posts - with OpenAI, WordPress, Google Sheets & Slack
Triggered on a schedule. Connects Condition, Date Time, Google Sheets, HTTP request, Loop, Markdown, Schedule, Slack. ## Trigger - Two Options To use this workflow, you have two trigger options.
The default trigger is "When clicking 'Test workflow'", allowing you to manually test the scenario.
If you want to use this workflow in production, you can choose one of the following triggers. You'll need to select the one you prefer and enable it.:
Schedule Trigger
This trigger checks at regular intervals (e.g., every 5 minutes) if a new post has been published on your WordPress blog and triggers the w
Steps
- When clicking ‘Test workflow’ (manualTrigger)
- Text Classifier (noOp)
- OpenAI Chat Model (noOp)
- Loop Over Items (splitInBatches)
- If Node (if)
- Webhook (webhook)
- Schedule Trigger (scheduleTrigger)
- Wordpress - Update Post (httpRequest)
- Google Sheets - Get rows (googleSheets)
- HTML to Markdown (markdown)
- OpenAI (noOp)
- Google Sheets - Add Row (googleSheets)
- Slack - Notify Channel (slack)
- Set fields - From Webhook input (set)
- Sticky Note (stickyNote)
- Date & Time - Substract (dateTime)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note6 (stickyNote)
- Sticky Note7 (stickyNote)
- Sticky Note8 (stickyNote)
- Set fields - Prepare data for Gsheets & Slack (set)
- Sticky Note9 (stickyNote)
- WordPress - Get Post2 (wordpress)
- No Operation, do nothing (noOp)
- Sticky Note10 (stickyNote)
- WordPress - Get Last Posts (wordpress)
- WordPress - Get Post1 (wordpress)
- WordPress - Get All Posts (wordpress)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Datetime/1272_Datetime_Webhook_Create_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- AI-Generated Summary Block for WordPress Posts - with OpenAI, WordPress, Google Sheets & Slack: Slack, ChatGPT and Condition (n8n workflow collection) (Datetime) (353)
- Vision-Based AI Agent Scraper - with Google Sheets, ScrapingBee, and Gemini: Google Sheets, HTTP request and Markdown (n8n workflow collection) (Splitout) (1576)
- Vision-Based AI Agent Scraper - with Google Sheets, ScrapingBee, and Gemini: Google Sheets, HTTP request and Markdown (n8n workflow collection) (Splitout) (1612)
- Httprequest Workflow: Slack, Code and Condition (n8n workflow collection) (466)
- Lineartrigger Workflow
- Googlesheets Workflow: ChatGPT, Condition and Google Sheets
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.