WorkflowSlackOpen

n8n workflow to add OpenAI summaries to WordPress

This second copy of the WordPress summary workflow in the collection uses OpenAI to add a summary to blog posts and logs each one. It fits site owners who publish often and want every article to open with a short recap, plus a record in Google Sheets and a Slack alert.

What it does

WordPress nodes fetch the latest or all posts, a date step limits the run to recent ones, and a loop sends each post through OpenAI. The post is then updated through an HTTP request, a sheet row is added and a Slack channel is told.

How to use it

Pick one trigger to enable: a schedule that polls the blog, or a webhook called when a post is published.

Requirements and limits

The collection holds this as a separate file with the same nodes as its twin.

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
category: Automation
kind: Workflow
software: Condition|Date Time|Google Sheets|HTTP request|Loop|Markdown|Schedule|Slack|Webhook|WordPress

AI-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

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/1273_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

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.