AI-Generated Summary Block for WordPress Posts
detail.loadingPreview
Automate the creation of AI-generated summaries for your WordPress posts, ensuring they are translated into both English and Chinese and stored in Google Sheets, with notifications sent to Slack.
About This Workflow
This workflow leverages AI (specifically OpenAI's models via n8n's Langchain integration) to automatically generate summaries for your WordPress posts. It handles content fetching from WordPress, processing through AI for summarization, and then updating the post with the generated summary. To prevent duplicate summarization, it checks against a Google Sheet. Finally, it logs the summarized post in Google Sheets and sends a notification to Slack.
Key Features
- Automated AI Summarization: Generates summaries for WordPress posts using advanced AI models.
- Dual Language Support: The system is designed to generate summaries that can be presented in both English and Chinese. The prompt explicitly mentions translating the
AI Summarytitle and implies the summary content should be in the user's language. - Duplicate Prevention: Utilizes a Google Sheet to track already summarized posts, preventing redundant AI processing.
- WordPress Integration: Fetches post content and updates posts with the generated summaries.
- Google Sheets Integration: Logs summarized posts and their metadata for record-keeping and auditing.
- Slack Notifications: Informs a designated Slack channel upon successful summarization and update of a post.
How To Use
- Prerequisites: Ensure you have active n8n, OpenAI, Google Sheets, and Slack credentials set up.
- WordPress Credentials: Configure your WordPress API credentials. The
nodeCredentialTypefor the WordPress nodes should point to your WordPress credentials. - Google Sheets Setup:
- Make a copy of the provided Google Sheets template (Template - AI Summary WordPress Posts).
- Update the
documentIdandsheetNamein theGoogle Sheets - Get rowsandGoogle Sheets - Add Rownodes to match your copied sheet.
- OpenAI Setup: Configure your OpenAI API credentials.
- Slack Setup: Configure your Slack API credentials and ensure the
channelIdfor theSlack - Notify Channelnode is correct. - Trigger Configuration:
- The workflow currently uses a
When clicking ‘Test workflow’trigger. - For production, enable either the
Schedule Triggeror theWebhooktrigger.- Schedule Trigger: Configure the
rule.intervalfor desired checking frequency. You might want to adjust theDate & Time - Substractnode's duration to match your schedule interval. - Webhook Trigger: Configure the webhook path and authentication. If using a webhook, consider removing the
Loop Over Itemsnode as it might process only one item at a time.
- Schedule Trigger: Configure the
- The workflow currently uses a
- WordPress - Get Post Node: If using the Schedule or Webhook trigger, you'll likely want to replace the
WordPress - Get Postsnode (which is only for initial testing) with a node that fetches a single post based on the trigger data (e.g., usingpost_idfrom a webhook or a query from the schedule trigger). - Review AI Prompts:
- OpenAI Chat Model: The
systemPromptTemplatein theText Classifiernode is crucial for determining how the AI classifies content. - OpenAI Node: The system prompt in the
OpenAInode defines the AI's behavior for generating the summary. Pay close attention to the output format, especially the requirement for HTML blocks and the translation of the 'AI Summary' title.
- OpenAI Chat Model: The
- Testing: Run the workflow manually using the
Test workflowbutton to verify each step. Check the logs for any errors. - Production Deployment: Once satisfied, enable your chosen trigger (
Schedule TriggerorWebhook) and disable theWhen clicking ‘Test workflow’trigger.
Apps Used
Workflow JSON
{
"id": "b591abdf-54ab-4913-a951-a6606be3552b",
"name": "AI-Generated Summary Block for WordPress Posts",
"nodes": 15,
"category": "Content Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b591abdf-54ab...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Generate Multilingual Metadata from Audio Transcripts
Automate the creation of structured metadata in English and Chinese by transcribing audio files stored in AWS S3.
Daily Poem for Telegram
Automatically fetches a random poem and sends it to a Telegram chat daily.