Skip to main content

Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI

Workflow preview

Workflow preview
100%
Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI preview
Open on n8n.io

1. Workflow Overview

Who is this template for? This workflow is built for digital marketers, SEO/PPC specialists, and business owners who run or plan Google Ads campaigns and need a fast, structured way to discover and...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Zeljislav Petrovic.

Original n8n.io source

1.1 Workflow description

Title
Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI
Workflow name
Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI

Who is this template for?

This workflow is built for digital marketers, SEO/PPC specialists, and business owners who run or plan Google Ads campaigns and need a fast, structured way to discover and evaluate keywords. Instead of manually exporting data from Google Keyword Planner and sorting it in spreadsheets, this template automates the entire process — from raw seed keywords to a fully enriched, AI-analyzed keyword plan saved directly in Google Sheets.

What this workflow does

This n8n workflow connects Google Keyword Planner, OpenAI chat model, and Google Sheets to deliver a production-ready keyword research pipeline:

  1. User submits a form with their website URL, company name, industry/niche, seed keywords, and products/services
  2. Google Keyword Planner API returns keyword ideas with real search volume, competition level, and CPC bid range data
  3. OpenAI chat model (e.g, GPT-5.4-mini) analyzes all keyword ideas in business context — scoring relevance, classifying intent (informational, navigational, commercial, transactional), assigning keyword type (branded, competitor, product, application, etc.), and generating additional relevatn high-intent keyword suggestions.
  4. Google Sheets receives two outputs: a structured keyword plan sheet (AI-enriched, evaluated, scored, and classified) and a raw keyword ideas sheet (all Keyword Planner results)

The result is a complete, ready-to-use keyword strategy document your team can act on immediately.

How to set up

  1. Google Ads API — Create a Google Ads Developer Token and OAuth 2.0 credentials. Add your Google Ads Customer ID to the workflow. Follow the official Google Ads API quickstart.
  2. OpenAI — Add your OpenAI API credentials to the OpenAI chat model node.
  3. Google Sheets — Connect your Google account via OAuth 2.0. The workflow automatically creates a new spreadsheet for each run — no manual sheet setup required.
  4. Configure the HTTP Request node — Update the Customer ID, Developer Token, and geo/language targeting to match your market.
  5. Activate the workflow and submit the form to run your first keyword research & planning session.

Requirements

  • n8n (cloud or self-hosted)
  • Google Ads account with API access and a Developer Token
  • OpenAI API key (GPT-4.1-mini or higher recommended)
  • Google account with Sheets access

What you get in the output

The workflow automatically creates a new Google Spreadsheet on every run with two sheets:

📊 Keyword Plan

AI-evaluated, scored, and classified keywords ready for Google Ads — filtered to relevance score 5 or higher:

  • keyword — the keyword text
  • searchIntent — informational, commercial, transactional, or navigational
  • keywordType — branded, competitor, product/service, feature/spec, synonym, application, or solution
  • source — Keyword Planner or AI
  • seedKeyword — which seed keyword this idea originated from
  • relevanceScore — AI score (1–10) based on your business context
  • avgMonthlySearches — monthly search volume from Google Keyword Planner
  • competition — LOW / MEDIUM / HIGH
  • recommendedBid — AI-calculated CPC bid recommendation in USD
  • recommendedMatchType — recommended Google Ads match type (Broad, Phrase, or Exact)

📋 All Keyword Ideas

Raw, unfiltered output from Google Keyword Planner — useful as a reference or for manual review:

  • keyword — the keyword text
  • avgMonthlySearches — monthly search volume
  • competition — LOW / MEDIUM / HIGH
  • competitionIndex — numeric competition score (0–100)
  • lowTopOfPageBid — low end of the estimated CPC range in USD
  • highTopOfPageBid — high end of the estimated CPC range in USD

How to customize this workflow

  • Change the AI model — swap GPT-5.4-mini for Claude, Gemini, or any LLM supported by n8n
  • Add geo/language targeting — modify the HTTP request body to filter results by country and language
  • Adjust the relevance threshold — edit the AI prompt to change the minimum relevance score for inclusion
  • Add Slack or email notifications — append a notification node after the Google Sheets write to alert your team when a new keyword plan is ready
  • Connect to a CMS or ad platform — pipe the output directly into your Google Ads campaigns or content calendar

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Structure & format output for AI

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Parse AI output for Google Sheet

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - GPT 5.4-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 8 - Analyze & enrich keywords with AI

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 9 - Get keyword ideas from Google Keyword Planner

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 10 - Save keyword plan to Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Save all keyword ideas to Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 12 - Parse Google Keyword Planner output for Google Sheet

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Parse & normalize user inputs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Form trigger - User input

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 15 - Create spreadsheet for saving keyword plan & keyword ideas

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI
Complexity advanced
Nodes 16
Categories Market Research, AI Summarization
Author Zeljislav Petrovic
Published 22 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15243/15243.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate a Google Ads keyword plan from seed keywords with Keyword Planner and OpenAI do?

Who is this template for? This workflow is built for digital marketers, SEO/PPC specialists, and business owners who run or plan Google Ads campaigns and need a fast, structured way to discover and...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.