Automate Keyword Research with Google Autocomplete in n8n

Discover how this n8n workflow automates keyword expansion by leveraging Google’s autocomplete data for any input keyword. Save hours of manual research with automated A-Z query generation and controlled API requests to avoid Google blocks.
chatTrigger
httpRequest
code
+4
Workflow Identifier: 1584
NODES in Use: code, httpRequest, splitInBatches, wait, respondToWebhook, chatTrigger, stickyNote
Automate keyword research with n8n and Google

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow takes one base keyword from your chat input.
It adds every letter from a to z after the keyword.
Then it asks Google autocomplete for each of these new phrases.
It waits between batches to avoid getting blocked.
In the end, it collects all keyword suggestions into one list.
You get a combined list of many keyword ideas fast.

This saves time and finds more keywords than typing by hand.
It avoids errors and respects Google’s limits.


Inputs, Processing Steps, and Output

Inputs

  • Chat input keyword: The base word you want to research, entered via Langchain Chat Trigger node.

Processing Steps

  • Generate 26 queries adding letters a-z after the base keyword using a Code node.
  • Split these into batches of 10 with SplitInBatches node to control request rate.
  • Call Google autocomplete API for each query with HTTP Request node.
  • Pause 1 second between batches using a Wait node to avoid IP blocks.
  • Extract keyword suggestions from API response JSON with Code node.
  • Merge all keyword arrays into one large list in a final Code node.

Output


Who Should Use This Workflow

The workflow is for anyone who researches keywords manually and wastes time.
Anyone wanting more complete keyword lists from Google autocomplete should use it.
It helps digital marketers, bloggers, and SEO beginners.


Tools and Services Used

  • n8n: To design and run the automation workflow.
  • Langchain Chat Trigger Node: To input the base keyword interactively.
  • Google Autocomplete API: No API key needed, it provides keyword suggestions publicly.
  • HTTP Request Node: To call Google’s autocomplete endpoint with each query.
  • Code Nodes: To generate query lists and parse responses.
  • Wait Node: To delay requests during batch processing and avoid blocking.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button available on this page.
  2. Open n8n editor where the user is already working.
  3. Use the Import from File option in n8n to load the workflow JSON.

Step 2: Configure Workflow After Import

  1. Check if credentials or API keys are needed and add them if requested.
  2. Update any placeholders like email addresses, channel IDs, folder paths, or table names if the workflow exports data.
  3. Review the Code node that generates queries to confirm the base keyword input is mapped correctly.

Step 3: Test the Workflow

  1. Trigger the Langchain Chat Trigger by entering a sample keyword.
  2. Observe the workflow process, outputs, and error messages if any.

Step 4: Activate for Production Use

  1. Once testing is successful, enable the workflow in the n8n editor.
  2. Use the input trigger to automatically run the workflow when you need keyword research.
  3. Consider linking outputs to email or file nodes for easy access.

For users running self-host n8n, keep monitoring API rate limits and errors during runs.


Common Edge Cases and Errors

HTTP 429 Rate Limit Errors

This happens when queries to Google autocomplete are too fast.
To fix, increase wait time in the Wait node to 2+ seconds.
Reduce batch size if necessary in the SplitInBatches node.

Empty or Wrong Keyword Lists

Sometimes the Google API response format may change.
Review the Code node that parses JSON.
Make sure it matches the current response structure exactly.
Test the API manually if needed.


Customization Ideas

  • Change autocomplete language by editing the &hl=en parameter in the HTTP Request node to any language code.
  • Adjust batch size in the SplitInBatches node to balance speed and API safety.
  • Add nodes to export data automatically like Email Send or Google Sheets.
  • Link output to other workflows for content creation or paid ad campaigns.

Summary and Outcome

✓ Saves hours of manual keyword entry every week.
✓ Finds more keyword variations by adding letters a-z automatically.
✓ Runs safely without breaking Google’s API limits.
✓ Returns big lists of keyword suggestions in one go.
✓ Works directly from chat input with flexible outputs.

→ A helpful tool for anyone doing SEO or keyword research.
→ Easy to import, test, and activate inside n8n.
→ Flexible to customize and integrate with other services.


Automate keyword research with n8n and Google

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, webhook nodes or integrations like Google Sheets or Telegram can replace the Langchain Chat Trigger node.
No, Google autocomplete API is public and does not require API keys.
Error 429 happens when Google blocks requests that are sent too quickly. Slowing down requests with the Wait node helps avoid this.
Check JSON parsing code matches the Google autocomplete response format. Adjust if Google changes their API structure.
Author
Written By
Ritu Sanjali

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.