Block 1 - LLM Engine for Market Intelligence Analysis
- Type / Role
- @n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
- Config choices
- Version 1.3
This workflow is provided as-is. Please review and test before using in production.
Description This workflow automates keyword level SEO research and content opportunity discovery using live Google SERP data and AI driven analysis. It takes a single keyword request, pulls real...
@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.errortrigger, n8n-nodes-base.slack, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-serpapi.serpapi, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.
Original n8n.io sourceš Description This workflow automates keyword-level SEO research and content opportunity discovery using live Google SERP data and AI-driven analysis. It takes a single keyword request, pulls real-time search results for the India market, converts raw SERP data into a structured SEO dataset, analyzes search intent and competition, identifies content gaps and high-impact opportunities, and delivers client-ready insights via email while logging results for tracking and audits.
Instead of manual keyword research, competitive scanning, and reporting, the system derives actionable SEO strategy directly from live search behavior. Outputs are structured for UI consumption, professional email delivery, and historical storage in Google Sheets. Any workflow failure triggers an automated Slack alert with diagnostic details.
This workflow replaces manual SEO research, gap analysis, reporting, and documentation with a repeatable, automated SEO intelligence pipeline.
š¢ Receive SEO Keyword Analysis Request via Webhook Accepts a POST request containing the target keyword for SEO analysis.
š§¹ Extract Keyword from Request Payload Cleans and isolates the keyword field for SERP processing.
š Run Google SERP Search for Keyword (India) Executes a live Google search via SerpAPI with India as the target region. Fetches: ⢠Organic search results ⢠Related searches ⢠Video SERP features ⢠Result count metadata
𧩠Normalize SERP Results into SEO Dataset Transforms raw SERP output into a structured dataset containing: ⢠Rankings, titles, snippets, and sources ⢠Video presence and platforms ⢠Related search intent signals
š§ Analyze Keyword SEO Opportunities Using AI Uses GPT-4o to determine: ⢠Search intent ⢠Competition level ⢠Content gaps ⢠High-impact content opportunities ⢠Recommended content formats Returns strictly structured JSON output.
š§Ŗ Parse Market Analysis Output JSON Validates and enforces the predefined SEO analysis schema.
š Flatten AI Output for Downstream Use Removes nested AI structures to simplify reporting and UI usage.
š§ Map SEO Fields for UI & Reporting Aligns SEO insights to UI-friendly keys, including confidence scoring and reporting fields.
š§ Generate Client-Ready SEO Insights Email Using AI Converts SEO analysis into a professional HTML email containing: ⢠Keyword & country context ⢠Search intent explanation ⢠Competition level ⢠Content gaps ⢠Top content opportunities with difficulty ⢠Recommended formats ⢠Overall confidence score
š¤ Send SEO Opportunity Report via Email Delivers the formatted SEO opportunity report to the configured recipient via Gmail.
š Log SEO Analysis Result to Google Sheets Stores keyword, intent, competition, confidence, gaps, and opportunities for: ⢠Tracking ⢠Audits ⢠Historical SEO analysis
šØ Error Handler Trigger ā Slack Alert Any workflow failure sends an automated Slack alert with node name, error message, and timestamp.
𧩠Prerequisites ⢠SerpAPI account ⢠OpenAI API key ⢠Gmail OAuth credentials ⢠Google Sheets OAuth access ⢠Slack API credentials ⢠Valid webhook endpoint for keyword submission
š” Key Benefits ā Automates keyword-level SEO research using live SERP data ā Identifies content gaps and opportunities based on real search behavior ā Produces client-ready SEO insight reports automatically ā Eliminates manual competitor analysis and documentation ā Logs SEO intelligence for long-term tracking and audits ā Provides immediate error visibility through Slack alerts
š„ Perfect For
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.
| Workflow | Automate SEO research & content gap analysis with GPT-4o, SerpAPI, and Gmail |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | Market Research, AI Summarization |
| Author | Rahul Joshi |
| Published | 17 Dec 2025 |
Use the JSON export at /data/workflows/11893/11893.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Description This workflow automates keyword level SEO research and content opportunity discovery using live Google SERP data and AI driven analysis. It takes a single keyword request, pulls real...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.