Automate AI Summaries for WordPress with n8n & OpenAI

This workflow automates adding AI-generated summaries to WordPress posts, saving time and avoiding duplicate summaries using Google Sheets and Slack notifications. It solves the specific problem of keeping blog content concise and engaging without manual effort.
wordpress
openAi
googleSheets
+11
Workflow Identifier: 1651
NODES in Use: manualTrigger, wordpress, googleSheets, splitInBatches, if, markdown, textClassifier, lmChatOpenAi, openAi, httpRequest, slack, noOp, dateTime, set
Automate AI summaries with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What this workflow does

This workflow gets new WordPress posts, checks if they have AI summaries, then creates bullet-point summaries using OpenAI GPT-4o-mini. It adds these summaries on top of posts without changing excerpts. Finally, it logs summaries in Google Sheets and sends alerts to Slack. This saves time by stopping manual summary writing and helps readers quickly understand posts.


Who should use this workflow

This is for content managers or small teams who publish WordPress posts regularly but want to avoid spending hours writing summaries. It is useful when manual summary updates cause delays or errors. Also, it helps when site’s speed matters and you prefer not to add slow WordPress plugins for summaries.


Tools and services used

  • n8n: Automates the entire process.
  • WordPress REST API: Reads and updates posts.
  • OpenAI API: Generates AI summaries with GPT-4o-mini.
  • Google Sheets API: Logs processed posts.
  • Slack API: Sends team notifications.

How the workflow works: Inputs, processing, and outputs

Inputs

Processing steps

  • Fetch posts using WordPress API with “context=edit” to get raw content.
  • Convert post content from HTML to Markdown for clear AI input.
  • Check Google Sheets if a summary for the post exists.
  • Classify content with a text classifier to detect if summarized.
  • If not summarized, generate a bullet point summary using OpenAI GPT-4o-mini with a custom prompt for electric mobility.
  • Update the WordPress post by adding summary HTML block at the top, preserving excerpts.
  • Log post ID, summary, and links to Google Sheets.
  • Send Slack message with summary info and post links.

Outputs


Beginner step-by-step: How to build this in n8n

1. Download and import workflow

  • Download the workflow file using the Download button on this page.
  • Inside the n8n editor, use “Import from File” to load the workflow.

2. Add credentials and configure settings

  • Enter your WordPress API credentials in the WordPress nodes.
  • Add your OpenAI API key in the OpenAI node.
  • Provide Google Sheets credentials and update sheet ID and table info.
  • Set your Slack channel ID and OAuth2 credentials for notifications.
  • Update any IDs, emails, or URLs in nodes if your environment differs.

3. Test the workflow

  • Run the workflow manually via the Webhook node Test button to check summary creation and updates.
  • Look in WordPress posts, Google Sheets, and Slack messages to confirm everything works.

4. Activate for production

  • Disable the manual trigger.
  • Enable either the Schedule Trigger or the Webhook node depending on how posts should be processed.
  • If using webhooks, set up the webhook URL and authentication in WordPress.
  • Monitor workflow runs in n8n dashboard to catch errors early.
  • Consider hosting n8n yourself using self-host n8n for full control and security.

Edge cases and common failures

  • WordPress updates failing with 401 error means API credentials are wrong or limited. Fix by verifying keys and user permissions.
  • Duplicate or missing summaries happen if Google Sheets columns do not match exactly or text classifier inputs are off.
  • Slack messages not sent if OAuth2 lacks proper scopes or wrong channel ID is set. Re-authenticate and test simple messages.
  • Not using “context=edit” when fetching posts prevents getting content for summary generation.

Customization ideas

  • Change AI system prompt inside the OpenAI node to match your blog topic for better summaries.
  • Modify summary HTML styles in the prompt to fit WordPress theme colors and fonts.
  • Add more fields like author or categories in the nodes that update Google Sheets and Slack messages.
  • Switch between manual, webhook, or scheduled triggers based on content workflow needs.
  • Send Slack notifications to multiple channels or with extra post stats.

Summary of results

✓ Saves several hours weekly by automating summaries.

✓ Avoids manual errors and inconsistent post summaries.

✓ Keeps WordPress site fast by skipping extra summary plugins.

✓ Provides clear, bullet-point summaries at top of posts.

✓ Tracks summarized posts in Google Sheets for workflow control.

✓ Notifies marketing teams instantly via Slack.


Automate AI summaries with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, changing the modelId in the OpenAI node allows different OpenAI GPT models.
Ensure Google Sheets columns exactly match workflow fields and the text classifier is set up correctly.
Incorrect or missing WordPress API credentials or insufficient user permissions cause 401 errors.
Use Slack OAuth2 with required scopes and set correct channel ID in the Slack node.

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.