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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free