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

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 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

  • The workflow returns a single JSON list of keywords via Respond to Webhook node.

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.


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.

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