🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Google Trends + WordPress: drafts ready to edit

Lisa Granqvist Partner Workflow Automation Expert

Chasing trends manually is exhausting. By the time you find a topic, research it, outline it, and finally open WordPress, the spike is already fading and you’re stuck with half-finished tabs.

This is where Google Trends WordPress automation helps most: a marketing manager trying to publish faster, a solo site owner who can’t write daily, and an SEO consultant who needs fresh drafts to hand off. You get review-ready WordPress drafts created from what people are searching for right now.

Below is the exact workflow logic, what it produces, what you’ll need, and the practical gotchas that matter when you run it every day.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Google Trends + WordPress: drafts ready to edit

The Problem: Trending topics move faster than your workflow

Trends don’t wait for your content calendar. One day a query spikes, and the next day your competitors have three posts live while you’re still collecting sources and trying to decide on a headline. The worst part is the context switching: Google Trends, a bunch of searches, notes, outlines, then WordPress. Somewhere in there, you lose the thread, forget what you found, or publish too late. And if you’re doing this daily, the time cost isn’t small. It’s about an hour (sometimes more) of “just getting ready to write” before you’ve written anything useful.

It adds up fast. Here’s where it usually breaks down.

  • Trend research turns into a browser-session graveyard, and the “best” topic gets picked based on what you happened to click first.
  • You repeat the same steps for every post: search, skim, summarize, outline, then rewrite everything again inside WordPress.
  • Publishing gets delayed because the draft doesn’t exist yet, so editing can’t even begin.
  • Manual copy-paste creates small mistakes (missing sources, broken formatting, messy headings) that take longer to clean up than you expect.

The Solution: Google Trends topics become WordPress drafts automatically

This workflow runs on a schedule (daily at 8:45 PM by default), pulls the latest trending searches from Google Trends for a country you choose, and then does the “research sweep” for you. It takes the top trending topics (top 3 in this setup), runs follow-up searches to collect helpful context, and composes a clean summary of what matters. Then GPT‑4o writes a structured, SEO-friendly blog draft from that research, including a proper title and organized content. Finally, n8n creates a new draft inside WordPress so you can review, tweak, and publish when it’s ready.

The workflow starts with a scheduled trigger and a simple region setting (country code). From there it gathers trend queries, enriches them with search details, and feeds that into GPT‑4o to generate a draft. WordPress receives the output as a draft post, so nothing goes live without your approval.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you want to publish 3 trend-based posts per week. Manually, a typical cycle looks like 20 minutes to find a topic, about 30 minutes of searches and skimming, then another 30 minutes to outline and create the WordPress draft. That’s roughly 1.5 hours per post, or about 4-5 hours a week just to get drafts ready. With this workflow, you spend maybe 10 minutes reviewing three drafts in WordPress, then hand off edits or polish them yourself. The “setup work” mostly disappears.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • WordPress for creating draft posts automatically.
  • SerpApi to fetch Google Trends and search results.
  • OpenAI API key (get it from your OpenAI dashboard).

Skill level: Intermediate. You’ll mainly connect credentials, adjust a couple fields (like country code), and test runs to confirm the draft format looks right.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A schedule kicks it off. At 8:45 PM (or whenever you choose), n8n starts the run automatically, so you don’t have to remember to “go check trends.”

Your region is set once. The workflow uses an “Edit Fields” step to define the country code (IR by default). Change that value and you’re targeting a different market, without rebuilding anything.

Trends are fetched and narrowed down. SerpApi pulls trending searches, a parsing step cleans the list, and a limit is applied so you’re not generating dozens of posts you’ll never review.

Search context is gathered, then GPT‑4o writes. For each top trend, the workflow collects additional search details, composes a research summary, and passes it into the GPT‑4o writing prompt. The output is forced into a structured format, so you get consistent titles and clean post bodies.

WordPress receives a draft. n8n creates a new draft post in WordPress, ready for edits and final approval, which means you can build a publishing rhythm without the frantic “draft creation” step.

You can easily modify the target country and the number of trends processed based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

This workflow starts on a timed schedule and then flows through region setup, trend retrieval, and content publishing.

  1. Add Scheduled Automation Start as your trigger node.
  2. Set the schedule rule to run daily at Hour 20 and Minute 45 (as shown in the node’s rule configuration).
  3. Confirm your workflow timezone matches your desired region (this workflow uses Asia/Tehran in settings).
  4. Connect Scheduled Automation Start to Define Target Region.

Step 2: Connect Trend Data Sources

Set the target country and pull trending searches from Google Trends, then cap how many trends are processed.

  1. In Define Target Region, set Country to IR.
  2. Open Retrieve Trend Topics and set Operation to google_trends_trending_now.
  3. Set Geo to {{ $json.Country }}.
  4. Credential Required: Connect your serpApi credentials in Retrieve Trend Topics.
  5. In Parse Trend Queries, keep the JavaScript Code as return $input.first().json.trending_searches; to extract trend queries.
  6. In Cap Top Trends, set Max Items to 3.
  7. Ensure the flow follows: Define Target RegionRetrieve Trend TopicsParse Trend QueriesCap Top Trends.

Step 3: Query Detailed Search Results and Summarize

For each capped trend, the workflow queries Google Search and composes a formatted summary for AI drafting.

  1. In Query Trend Details, set Query (q) to {{ $json.query }}.
  2. Credential Required: Connect your serpApi credentials in Query Trend Details.
  3. In Compose Search Summary, keep the existing JavaScript Code that builds item.json.text from organic search results.
  4. Connect Cap Top TrendsQuery Trend DetailsCompose Search Summary.

Step 4: Set Up AI Drafting and Structured Output

The AI chain generates SEO-friendly content and parses it into structured fields for publishing.

  1. In Draft Blog Content AI, set Text to the full prompt with expression {{ $json.text }} embedded (keep the current prompt as provided).
  2. Confirm Prompt Type is set to define and Has Output Parser is enabled.
  3. Open OpenAI Chat Engine and select the model chatgpt-4o-latest.
  4. Credential Required: Connect your openAiApi credentials in OpenAI Chat Engine.
  5. Ensure OpenAI Chat Engine is connected as the language model for Draft Blog Content AI (AI language model connection).
  6. In Structured Result Parser, keep the Input Schema defining title and content as strings.
  7. Make sure Structured Result Parser is connected as the output parser for Draft Blog Content AI. Credentials for parsers are added to the parent AI node, not the sub-node.

Tip: If the parser fails, verify the AI output matches the schema in Structured Result Parser (must include title and content).

Step 5: Configure WordPress Publishing

Publish the AI-generated content as WordPress drafts using structured output fields.

  1. Open Publish WordPress Draft and set Title to {{ $json.output.title }}.
  2. In Additional Fields, set Status to draft.
  3. Set Content to {{ $json.output.content }}.
  4. Credential Required: Connect your wordpressApi credentials in Publish WordPress Draft.
  5. Connect Draft Blog Content AIPublish WordPress Draft.

Step 6: Test and Activate Your Workflow

Run a manual test to confirm data flows correctly from trends to a draft post.

  1. Click Execute Workflow to run a manual test.
  2. Verify Retrieve Trend Topics returns trending searches and Compose Search Summary produces text output.
  3. Check Draft Blog Content AI for structured output fields title and content.
  4. Confirm a new draft appears in WordPress created by Publish WordPress Draft.
  5. Toggle the workflow to Active to enable scheduled publishing.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • SerpApi credentials can expire or hit plan limits. If trends suddenly come back empty, check your SerpApi dashboard usage and key permissions first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Frequently Asked Questions

How long does it take to set up this Google Trends WordPress automation?

About 30-60 minutes if you already have the API keys.

Do I need coding skills to automate Google Trends to WordPress drafts?

No. You’ll paste API keys, connect WordPress, and tweak a few fields like country and post status.

Is n8n free to use for this Google Trends WordPress workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API usage and your SerpApi plan.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Google Trends WordPress automation for a different country and more topics?

Yes, and it’s straightforward. Change the country code in the “Define Target Region” (Edit Fields) step, then adjust the “Cap Top Trends” limit to process more than 3 topics. If you also want a different writing style, edit the prompt in the “Draft Blog Content AI” chain. Most teams also customize the WordPress post status (draft vs publish) inside the WordPress node once they trust the output.

Why is my WordPress connection failing in this workflow?

Usually it’s authentication. Re-check the WordPress credentials in n8n and confirm your site allows REST API access. Plugin security settings can block requests, and it can look like “bad credentials” even when they’re correct. If posts are created but empty, the structured parser output may not match what your WordPress node expects.

How many drafts can this Google Trends WordPress automation handle?

It will handle dozens per day, but most people keep it to a small batch (like the top 3) so review stays realistic. On n8n Cloud, your monthly execution limit depends on your plan; self-hosting has no platform limit and is mostly constrained by your server. In practice, the slowest part is API calls and AI generation, not WordPress.

Is this Google Trends WordPress automation better than using Zapier or Make?

Often, yes, because this workflow isn’t a simple two-step zap. You’ve got parsing, limiting, merging research, and structured AI output, which is where Zapier and Make can get pricey or awkward. n8n also gives you the self-hosting option, which is a big deal if you’re running daily automations. That said, if all you want is “new trend → send me an email,” Zapier is totally fine. If you’re unsure, Talk to an automation expert and we’ll point you to the simplest option.

Set it once, and you’ll wake up to drafts instead of tabs. The workflow handles the repetitive work so you can focus on publishing what’s actually worth publishing.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal