Marketing Advanced

Scrape Website Content and Extract SEO Keywords with GPT-5-mini and Airtable

Submit a URL via a form, fetch and clean the page content, pass it through GPT-5-mini for topic and keyword extraction, and upsert the structured result into Airtable.

At a glance

Scrape Website Content and Extract SEO Keywords with GPT-5-mini and Airtable is an advanced-level marketing automation built with n8n and Airtable. Scrape a page, clean the HTML, extract 90 SEO keywords with GPT-5-mini, upsert to Airtable.

Tools required
n8n Airtable
Tags
#seo #keywords #web-scraping #gpt-5-mini #ai-agent
Difficulty
Advanced
Published
· 2 min read

How It Works

The workflow collects a website URL through a form trigger, fetches the page with an HTTP Request, and strips the HTML down to plain text in a code node. The cleaned text runs through two GPT-5-mini AI Agents in sequence: the first extracts topic-wise information from the page, and the second generates a 90-keyword SEO list. A second code node removes residual markdown artefacts like ### and ** between the two agents. The structured output, cleaned data, keyword list, and workflow status, lands in Airtable through an upsert so repeat runs on the same URL update rather than duplicate.

Setup Steps

  1. Prepare Airtable: Create a base with a table that has Website Name (string), Data (string), Keyword (string), and Status (single-select with Todo, In progress, Done).
  2. Connect Credentials: Add OpenAI credentials with GPT-5-mini access and Airtable credentials in n8n.
  3. Point the Airtable Node: In the Airtable Upsert node, select the base, table, and the field that acts as the upsert key (usually Website Name).
  4. Tune the Prompts: Open each AI Agent node and adjust the system prompt if you need keyword counts other than 90 or want topic extraction scoped to a specific industry.
  5. Activate the Form: Publish the form trigger so researchers can paste URLs and kick off the pipeline without opening n8n.

Automation Workflow

Form Trigger (URL Input) → HTTP Request (Fetch Page)
↓
Code (HTML to Plain Text) → Split Out → AI Agent (Topic Extractor, GPT-5-mini)
↓
Code (Text Cleanup) → Split Out → AI Agent (Keyword Extractor, GPT-5-mini)
↓
Wait → Merge → Airtable (Upsert Website, Data, Keywords, Status)

Benefits

Advanced Features

Use Cases

Related Automations