π Create SEO outlines from top Google results with SerpAPI and GPT-4o
β‘ 334 views Β· π Market Research & Insights
π‘ Pro Tip β HTTP Request scraping tends to break when sites update their markup. If youβre scraping a major platform, check if ScraperNode covers it β it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
Overview
Use this workflow to create SEO-friendly outlines based on articles that do well in Google.
Enter a keyword, and the workflow scrapes the top results, scrapes the content, analyzes it with AI, and builds a MECE (mutually exclusive, collectively exhaustive) outline.
Itβs useful for content creators and SEO specialists who want relevant, well-structured content.
How it works
- Accepts a keyword submitted through a form
- Uses the SerpAPI to get top Google results for a chosen country
- Collects the top five URLs. We use five because we expect some to fail at the scraping stage
- Scrapes each URL separately
- Uses the first three articles to fit the AI modelβs context window
- Extracts the main text from the page body
- Converts HTML to Markdown to get rid of tags and attributes.
- Combines the cleaned text into a single list for AI processing
- Analyzes the content with an AI language model to find common topics and headings
- Generates an SEO-focused outline based on the most frequent topics
Setup steps
- Sign up for a SerpAPI account (free tier available)
- Create an OpenAI account and get an API key
- Set up your credentials within N8N
- Run the workflow and enter your keyword in the form.
- The workflow will generate an SEO-friendly outline for your content
Improvement ideas
- Add another LLM to turn the outline into an article
- Use the Google docs API to add the outline to a Google doc
- Enright the outline with data from Perplexity or Tavily
π Nodes Used
HTTP Request, Markdown, n8n Form Trigger, OpenAI
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File