AI Content Generation and Multilingual Metadata for WordPress and Social Media
detail.loadingPreview
This workflow generates blog content, creates a featured image, and publishes it to WordPress, while also distributing it to social media platforms with multilingual metadata.
About This Workflow
This n8n workflow automates the entire content creation and distribution pipeline, from ideation to publishing and social media sharing. It leverages AI models (OpenAI, Gemini, OpenRouter, Azure OpenAI) for content generation, image creation, and optimization. The workflow supports multilingual metadata generation (English and Chinese) and handles publishing to WordPress and various social media channels.
Key Features
- AI-powered Content Generation: Utilizes Langchain nodes with various LLMs (OpenAI, Gemini, Azure OpenAI) to generate article titles, body content, and optimize text.
- Multilingual Metadata: Generates structured metadata in both English and Chinese using LLMs and a structured output parser.
- Featured Image Generation: Creates unique featured images using OpenAI DALL-E.
- WordPress Integration: Publishes generated articles as draft posts to WordPress and attaches the featured image.
- Social Media Distribution: Distributes content to multiple social media platforms including X (Twitter), LinkedIn, Discord, Threads, and Bluesky.
- Conditional Logic: Employs 'If' and 'Switch' nodes for conditional execution and routing of content to different platforms.
- Trigger Flexibility: Supports both scheduled (every 3 hours) and manual triggers, as well as a Telegram bot for command-based initiation.
- Content Optimization: Includes an AI Content Optimizer node to refine generated text.
- OpenRouter Integration: Uses OpenRouter for flexible model selection and content generation.
- Structured Output Parsing: Leverages
outputParserStructurednodes to ensure consistent data formatting from LLMs.
How To Use
- Triggers: The workflow can be initiated via a
Scheduled Auto Trigger (Every 3 Hours)1, aTelegram Trigger, or aStart(manual trigger) node. - Topic and Title Generation: The
Topic Chooser and Title Makernode (usingGoogle Gemini Chat ModelandParse Blog Metadata JSON) generates initial topics and titles. TheArticle Generator (alt)andArticle Generator (alt2)nodes can also be used for alternative content generation. - Article Body Generation: The
Generate Article Bodynode, connected to theTopic Chooser and Title Maker, generates the main article content. TheAzure OpenAI Chat ModelandOpenAI Chat Modelare available as potential LLMs for this step. - Multilingual Metadata Generation: The
Topic Chooser and Title MakerandParse Blog Metadata JSONnodes are configured to produce structured metadata in English and Chinese. Ensure these nodes are properly configured with prompts to output JSON that includes keys for both 'en' and 'zh' metadata. - Featured Image Generation: The
Generate Featured Image (OpenAI)node creates an image based on the article content. - WordPress Publishing: The
Create WP Draft Postnode publishes the generated article as a draft. TheUpload Image to WordpressandAttach Feature Image to Postnodes handle adding the featured image. - Content Optimization and Distribution Preparation: The
AI Content Optimizernode refines the content. TheSplit Platform Contentnode prepares the content for different social media platforms. - Social Media Routing: The
Route to Platformnode directs the content to the appropriate social media nodes based on defined conditions. - Social Media Posting: Nodes like
Post to X,Post to LinkedIn,Post to Discord,Post to Threads, andPost to Blueskyhandle the actual posting. TheGenerate text container,Edit Fields, andGet Access Tokennodes are part of the social media posting logic, likely for authentication or specific platform formatting.
Key Configuration Points:
- LLM Nodes (
@n8n/n8n-nodes-langchain.*): Ensure API keys and model configurations are set correctly within each LLM node (e.g.,Google Gemini Chat Model,Azure OpenAI Chat Model,OpenAI Chat Model,lmChatOpenAi,lmChatGoogleGemini,lmChatOpenRouter). - WordPress Node: Configure your WordPress credentials.
- Social Media Nodes: Set up API keys and authentication for each social media platform.
outputParserStructuredNodes: These are crucial for defining the schema of the output from LLMs. The structure defined here will dictate the keys available for multilingual metadata (e.g.,en,zh). Ensure the prompt in the preceding LLM node instructs the model to output JSON conforming to this schema.
Apps Used
Workflow JSON
{
"id": "709a8310-e75d-436a-a90e-9a1f397c1e71",
"name": "AI Content Generation and Multilingual Metadata for WordPress and Social Media",
"nodes": 8,
"category": "Content Generation",
"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: 709a8310-e75d...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Wikipedia Podcast Telegram Bot
Generates podcast episodes about Wikipedia articles via Telegram.
Structured Metadata Generation for English and Chinese
This workflow automates the generation of structured metadata in both English and Chinese, leveraging Slack interactions and external API calls.
Automated News-to-Blog Post Generation with Multilingual Metadata
This workflow automates the creation of SEO-optimized blog posts from news articles, including title, slug, and meta descriptions, with potential for multilingual content generation.