Library / Content Writing & Generation
Content Writing & Generation
Add AI Summary Blocks to WordPress Posts with OpenAI
When run manually, by webhook or on a schedule, OpenAI summarizes WordPress posts, updates them with a summary block, and logs results in Google Sheets and Slack.
What it does
## 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 workflow accordingly. ✅ Easy to set up ✅ Automates AI summaries without manual intervention ⚠️ If you run the workflow manually once, the AI-generated summaries will be added to Google Sheets and processed in later steps to prevent duplication. 💡 Recommended follow-up nodes: If you choose this trigger, the following nodes are suggested in the template: - Date & Time - Subtract: Subtracts the scheduled interval from the current execution timestamp. For example, if the workflow runs every 5 minutes, it subtracts 5 minutes from the execution time. - WordPress - Get Posts: Uses the output of the Date & Time - Subtract node as a filter to retrieve only posts published after the last execution. ### Webhook Trigger If you're familiar with webhooks, you can set up a webhook that triggers when a new post is published. ✅ Faster than scheduled triggers ✅ More event-driven You can implement this using either: - A Webhook plugin on WordPress (not recommended due to plugin dependency). - A PHP function that triggers the webhook with authentication for security. ⚠️ Be cautious with how the webhook is triggered—you may not want it to fire on every post edit. 💡 Recommended follow-up nodes for this option: - Set Fields - From Webhook Input: Configures the fields based on the data sent to the webhook. - WordPress - Get Post: Retrieves the post using the post_id received from the webhook, ensuring higher accuracy than the schedule trigger approach.
The steps
- When clicking ‘Test workflow’
- Text Classifier
- OpenAI Chat Model
- Loop Over Items
- If
- Webhook
- Schedule Trigger
- Wordpress - Update Post
- Google Sheets - Get rows
- HTML to Markdown
- OpenAI
- Google Sheets - Add Row
- Slack - Notify Channel
- Set fields - From Webhook input
21 steps in total.
Similar automations
Content Writing & GenerationAdd AI Summary Blocks to WordPress Posts with OpenAI21 stepsContent Writing & GenerationAdd AI Summary Blocks to WordPress Posts with OpenAI45 stepsContent Writing & GenerationAdd AI Summary Blocks to WordPress Posts with OpenAI45 stepsBuilding Blocks & UtilitiesAI-Generated Summary Block for WordPress Posts - with OpenAI, WordPress, Google Sheets &21 steps