Skip to main content

Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets

Workflow preview

Workflow preview
100%
Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow collects a keyword via an n8n form, pulls the top Google results using SerpApi, scrapes headings from competitor pages, and uses OpenAI to generate a structured SEO con...

Best for

  • Content Creation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.limit, n8n-nodes-base.html, n8n-nodes-base.aggregate, n8n-nodes-base.if

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets
Workflow name
Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets

Quick Overview

This workflow collects a keyword via an n8n form, pulls the top Google results using SerpApi, scrapes headings from competitor pages, and uses OpenAI to generate a structured SEO content brief, which it saves to Google Docs and logs to Google Sheets.

How it works

  1. Receives a keyword, target country, and search intent from an n8n form submission.
  2. Queries SerpApi’s Google Search API to fetch organic search results for the keyword and keeps the top 10 listings.
  3. Visits each competitor URL and extracts the page title plus H1/H2/H3 headings from the HTML.
  4. Aggregates the scraped competitor signals and stops if fewer than three competitor pages were successfully collected.
  5. Sends the competitor headings and the original inputs to OpenAI (GPT-4o) to generate a structured SEO content brief (titles, meta description, outline, keywords, gaps, and link ideas).
  6. Formats the brief as markdown, creates a new Google Doc, inserts the brief content, and appends the result to a Google Sheets tab for tracking.

Setup

  1. Add a SerpApi credential (query-string auth) and ensure your SerpApi plan allows Google search queries.
  2. Add an OpenAI API credential and confirm the workflow can access the GPT-4o model.
  3. Connect Google Docs and Google Sheets credentials with permission to create documents and append rows.
  4. Replace the Google Sheets spreadsheet URL/ID in the append step and ensure a sheet/tab named “Briefs” exists (or update the target sheet name).

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

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - Sticky Note6

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

Block 8 - When Form Submitted

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

Block 9 - Fetch SERP Results

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

Block 10 - Split Organic Search Results

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

Block 11 - Limit to Top 10 Competitors

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

Block 12 - Fetch Competitor Sites

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

Block 13 - Extract Page Headings

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 14 - Aggregate Competitor Signals

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

Block 15 - Check SERP Data Sufficiency

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

Block 16 - Generate SEO Content Brief

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

Block 17 - OpenAI Brief Model

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

Block 18 - Output Parser Schema

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 19 - Set Brief Format

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Create SEO Document in Docs

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

Block 21 - Insert Content into Document

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

Block 22 - Append Brief to Google Sheets

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

Block 23 - Handle Insufficient SERP Data

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

3. Summary Table

Workflow Generate SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets
Complexity advanced
Nodes 23
Categories Content Creation, AI Summarization
Author TakatoYamada
Published 13 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16335/16335.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 SEO content briefs from keywords with SerpAPI, OpenAI, Google Docs and Sheets do?

Quick Overview This workflow collects a keyword via an n8n form, pulls the top Google results using SerpApi, scrapes headings from competitor pages, and uses OpenAI to generate a structured SEO con...

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 Content Creation, AI Summarization use case.