Automate SEO Keyword Generation with n8n Webhook Workflow

Struggling with manual SEO keyword research? This n8n workflow automates keyword generation via a webhook using Google’s autocomplete API, delivering sorted, aggregated keyword lists for smarter SEO strategies. Save hours and eliminate errors with this seamless automation.
webhook
httpRequest
xml
+5
Workflow Identifier: 1507
NODES in Use: Webhook, HTTP Request, XML, Split Out, Set, Aggregate, Respond to Webhook, Sticky Note
Automate SEO keyword generation with n8n and Google API

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This n8n workflow takes keyword queries and returns many clean Google autocomplete suggestions automatically.
It stops marketers from copying suggestions by hand.
The workflow fetches data from Google and organizes keyword lists fast.
This saves time and stops human mistakes.

When running, the workflow gets query words from a webhook.
Then it talks to Google’s autocomplete API.
It changes Google’s XML reply to JSON format to work inside n8n.
Next, it breaks out each suggestion into items.
After cleaning keywords, it bundles them into one list.
Finally, it sends the full keyword list back to the caller.


Beginner step-by-step: How to use this workflow in n8n production

Step 1: Import the workflow

  1. Download the workflow file using the Download button below.
  2. Open n8n editor.
  3. Use the Import from File option to add this workflow.

Step 2: Configure the workflow

  1. Check that the Webhook node path is unique and correct.
  2. Add any needed credentials or API keys if any external nodes require them (not mandatory here).
  3. Update any IDs, emails, Slack channels, Google Sheets tables, or folders in nodes if you customize later.

Step 3: Test the workflow

  1. Trigger the webhook URL with a query parameter ?q=your+keyword in a browser or HTTP client.
  2. Watch the execution in the n8n editor and verify keywords are returned.

Step 4: Activate for production

  1. Turn on the workflow to “Active” in n8n so it listens to webhook calls.
  2. Use the webhook URL in your marketing tools or integrations.

If self hosting n8n, see self-host n8n for stable server setup.


Inputs → Processing Steps → Output

Inputs

  • Keyword query sent as HTTP GET with parameter q to the webhook URL.

Processing Steps

  • Webhook node receives the query.
  • HTTP Request node calls Google autocomplete API with the query.
  • XML node parses the XML response into JSON.
  • Split Out node breaks keyword suggestions into individual items.
  • Set node cleans keywords and extracts the main text.
  • Aggregate node combines all cleaned keywords into a single array.

Output

  • Respond to Webhook node sends back the full array of keywords as JSON.

Who Should Use This Workflow

This automation is best for digital marketers who do SEO keyword research.
Non-technical people who need quick keyword ideas can use it.
It helps anyone who wants to stop manual copying and get lists fast.


Tools & Services Used

  • n8n: Automation platform to build and run workflow.
  • Google Autocomplete API: Provides keyword suggestions as XML.
  • HTTP Request node: Calls Google API with dynamic query.
  • XML node: Converts XML response to JSON.
  • Split Out node: Splits keyword list items.
  • Set node: Cleans and extracts keywords.
  • Aggregate node: Combines keywords into a list.
  • Respond to Webhook node: Sends final keyword list back.

Customization Ideas ✏️

  • Change gl=US in HTTP Request URL to other country codes to get localized keywords.
  • Add hl=en or client=firefox parameters to Google API for language or client tweaks.
  • Store keywords to Google Sheets or Airtable after aggregation for tracking.
  • Send keywords via email or Slack using service nodes to notify teams.
  • Add extra cleaning steps to remove duplicates or filter keywords.

Troubleshooting 🔧

  • Webhook not receiving requests
    This happens if the webhook is inactive or URL is wrong.
    Activate the webhook and test URL carefully.
  • HTTP Request returns empty or bad XML
    Could be wrong URL or empty input query.
    Check URL expression and that webhook passes correct query.
  • Aggregate node fails to combine keywords
    May be wrong field names or no data.
    Check field names in Set node and debug logs.

Pre-Production Checklist ✅

  • Test webhook URL with different keywords.
  • Verify HTTP Request node returns proper XML.
  • Confirm XML node parses correctly to JSON.
  • Ensure Split Out node separates suggestions.
  • Check that aggregate returns full final list.
  • Backup workflow JSON for easy restore.

Deployment Guide

Activate the Webhook node to listen for requests.
Watch execution in n8n dashboard.
Use logs to debug errors.
Schedule tests if running in production.


Summary

✓ Saves hours spent copying keyword suggestions manually.
✓ Prevents human mistakes in keyword research.
✓ Provides clean, aggregated Google autocomplete keywords.
✓ Easy to trigger remotely via webhook.
✓ Can be extended with storage or notifications.
→ Delivers fast, reliable keyword lists for SEO work.


Automate SEO keyword generation with n8n and Google API

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The Webhook node listens for HTTP GET requests that include the keyword in the URL parameter q.
After import, set the webhook path, add any necessary credentials, and update IDs or channels if used.
This happens if the query input is missing or if the Google autocomplete API URL is incorrect.
Yes, by modifying the gl parameter in the HTTP Request node URL to any supported country code.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.