Back to Catalog

Auto-generate SEO articles in WordPress with Gemini AI and OpenAI images

Agent CircleAgent Circle
3551 views
2/3/2026
Official Page

This n8n template helps you automate the process of generating, uploading, and saving SEO-optimized articles as drafts in your Wordpress site using AI agents for both content and visuals.

Use cases are many:

  • Blog Owners: Effortlessly keep your Wordpress blog updated with automated, SEO-optimized articles and featured images.
  • Affiliate Marketers: Rapidly publish keyword-rich Wordpress posts to boost traffic and affiliate earnings without manual writing.
  • Newsrooms & Content Teams: Instantly draft and upload timely Wordpress articles to stay ahead on trending topics with minimal effort.
  • Agencies: Automate content creation and publishing across multiple client Wordpress sites, scaling your agency’s output.

How It Works

  • The workflow begins with a manual trigger in n8n.
  • The target Wordpress website domain - where the article will be published - is specified using the Fields – Set Website node.
  • The Agent – Topic Chooser & Title Generator uses Google Gemini to randomly select one of your pre-defined website-related topics and requests the model to generate article elements in your specified format. The results are then parsed and routed to the next AI agent.
  • The Agent – Article Generator (powered by Google Gemini) creates a complete, SEO-optimized article tailored to your settings and the selected topic.
  • The workflow then uploads the AI-generated article as a draft post to your Wordpress site.
  • Next, the article content is sent to the OpenAI to generate a unique, relevant featured image.
  • The generated image is uploaded and set as the featured image in the draft post.
  • (Optional) Finally, the workflow can notify you via Telegram (or any connected messaging app) that the post is ready as a draft on your Wordpress account for further review.

⚠️ Important Note:

In the default prompt setup of the first Agent – Topic Chooser & Title Generator, the website domain is set to Agent Circle, the industry is Technology and Artificial Intelligence, and the 5 available topics for article generation are: Artificial Intelligence (AI); AI Agents; Automation; Workflow; Prompts).

To get the best results for your site, please make sure to adjust this part of the prompt to match your own website domain, your industry, and the topics most relevant to your audience.

How To Set Up

  • Download and import the workflow into your n8n workspace.
  • Set up the necessary credentials for each tool:
    • Google Gemini API (for article elements generation) → connected to nodes Google Gemini Chat Model 1 and Google Gemini Chat Model 2.
    • OpenAI API (for creating unique featured images) → connected to the node OpenAI - Generate Image.
    • Wordpress API access (for posting, uploading, and setting featured images) → connected to the node Wordpress - Post Draft.
    • (Optional) Telegram or your preferred chat app (for completion notifications).
  • Adjust the Fields – Set Website node to match your target Wordpress website domain.
  • Manually trigger the workflow by clicking Test Workflow or Execute Workflow.
  • Wait for the process to complete.
  • Receive a chat notification or check the draft post directly in your Wordpress dashboard.

Requirements

  • An n8n instance (self-hosted or cloud).
  • OpenAI API access (for image generation).
  • Wordpress API access with admin permissions.
  • Access to Google Gemini (for advanced topic selection and article generation).
  • (Optional) API credentials for Telegram or another messaging app if you want to receive notifications when the process is complete.

How To Customize

  • Modify topics, article elements and guildelines: You can easily customize the pre-defined topics in the instruction prompt within Node Agent – Topic Chooser & Title Generator, as well as adjust the descriptions or structure of each article element to fit your needs and style.
  • Integrate other chat triggers: Link up with Slack, Discord, or any messaging tool to update progress.
  • Choose your AI model: Swap between Google Gemini and OpenAI for content generation, or add your preferred LLM.

Need Help?

If you’d like this workflow customized, or if you’re looking to build a tailored AI Agent for your own business - please feel free to reach out to Agent Circle. We’re always here to support and help you to bring automation ideas to life.

Join our community on different platforms for assistance, inspiration and tips from others.

Website: https://www.agentcircle.ai/ Etsy: https://www.etsy.com/shop/AgentCircle Gumroad: http://agentcircle.gumroad.com/ Discord Global: https://discord.gg/d8SkCzKwnP FB Page Global: https://www.facebook.com/agentcircle/ FB Group Global: https://www.facebook.com/groups/aiagentcircle/ X: https://x.com/agent_circle YouTube: https://www.youtube.com/@agentcircle LinkedIn: https://www.linkedin.com/company/agentcircle

n8n Workflow: Automated SEO Article Generation and WordPress Publishing with AI

This n8n workflow automates the entire process of generating SEO-optimized articles using AI and publishing them directly to WordPress, complete with AI-generated images. It leverages the power of Google Gemini for content generation and OpenAI for image creation, streamlining your content production pipeline.

What it does

This workflow simplifies and accelerates content creation by:

  1. Triggering Manually: The workflow is initiated manually, allowing you to control when new articles are generated and published.
  2. Generating SEO Article Content: Utilizes a Google Gemini Chat Model to generate comprehensive, SEO-friendly article content based on a defined prompt.
  3. Structuring AI Output: Employs a Structured Output Parser to extract key elements like title, content, and image prompt from the AI-generated text, ensuring consistent data for subsequent steps.
  4. Creating Article Image: Uses OpenAI to generate a relevant image based on the extracted image prompt, enhancing the visual appeal of the article.
  5. Preparing Data for WordPress: An Edit Fields (Set) node formats the AI-generated content and image URL into the structure required by WordPress.
  6. Publishing to WordPress: Creates a new post in WordPress with the generated title, content, and image.
  7. Notifying via Telegram: Sends a notification to a Telegram chat with a link to the newly published WordPress article, keeping you informed of successful publications.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • WordPress Account: Access to a WordPress site with REST API enabled.
  • Google Gemini API Key: For content generation.
  • OpenAI API Key: For image generation (DALL-E).
  • Telegram Bot Token and Chat ID: For receiving notifications.

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Set up your WordPress credential with your site URL, username, and application password.
    • Configure your Google Gemini Chat Model credential with your Google API Key.
    • Set up your OpenAI credential with your OpenAI API Key.
    • Configure your Telegram credential with your Bot Token and Chat ID.
  3. Customize AI Prompts:
    • In the "Google Gemini Chat Model" node, adjust the prompt to define the type of SEO articles you want to generate. You can include variables for dynamic content.
    • The "Structured Output Parser" is pre-configured to expect a JSON output from Gemini containing title, content, and image_prompt. Ensure your Gemini prompt guides the AI to produce this structure.
  4. Execute the Workflow: Click the "Execute workflow" button on the "Manual Trigger" node to run the workflow. It will generate an article, create an image, publish to WordPress, and send a Telegram notification.

Related Templates

Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4

💥 Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale. --- ⚙️ What problem this workflow solves Manually creating videos for TikTok can take hours — finding trends, writing scripts, recording, and editing. By combining Veed.io, ElevenLabs, and GPT-4, this workflow transforms a simple Telegram input into a ready-to-post TikTok video featuring your AI avatar powered by Veed.io — speaking naturally with your cloned voice. --- 🚀 What this workflow does This automation links Veed.io’s video-generation API with multiple AI tools: Analyzes TikTok trends via Perplexity AI Writes a 10-second viral script using GPT-4 Generates your voiceover via ElevenLabs Uses Veed.io (Fabric 1.0 via FAL.ai) to animate your avatar and sync the lips to the voice Creates an engaging caption + hashtags for TikTok virality Publishes the video automatically via Blotato TikTok API Logs all results to Google Sheets for tracking --- 🧩 Setup Telegram Bot Create your bot via @BotFather Configure it as the trigger for sending your photo and theme Connect Veed.io Create an account on Veed.io Get your FAL.ai API key (Veed Fabric 1.0 model) Use HTTPS image/audio URLs compatible with Veed Fabric Other APIs Add Perplexity, ElevenLabs, and Blotato TikTok keys Connect your Google Sheet for logging results --- 🛠️ How to customize this workflow Change your Avatar: Upload a new image through Telegram, and Veed.io will generate a new talking version automatically. Modify the Script Style: Adjust the GPT prompt for tone (educational, funny, storytelling). Adjust Voice Tone: Tweak ElevenLabs stability and similarity settings. Expand Platforms: Add Instagram, YouTube Shorts, or X (Twitter) posting nodes. Track Performance: Customize your Google Sheet to measure your most successful Veed.io-based videos. --- 🧠 Expected Outcome In just a few seconds after sending your photo and theme, this workflow — powered by Veed.io — creates a fully automated TikTok video featuring your AI avatar with natural lip-sync and voice. The result is a continuous stream of viral short videos, made without cameras, editing, or effort. --- ✅ Import the JSON file in n8n, add your API keys (including Veed.io via FAL.ai), and start generating viral TikTok videos starring your AI avatar today! 🎥 Watch This Tutorial --- 📄 Documentation: Notion Guide Need help customizing? Contact me for consulting and support : Linkedin / Youtube

Dr. FirasBy Dr. Firas
39510

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601