↓ Download CV
← All Projects
04 2024 AI Agent Architect

Automated SEO Content Engine

Multi-Clinic AI-Powered Blog Content Pipeline with RAG

n8nOpenAI o3PineconeAirtableLangfuseWebflow

Context

Aesthetic clinics under a franchise model needed local SEO content at scale. Hiring copywriters per clinic was expensive and slow; generic content didn't rank. Without fresh content, organic traffic stagnated.

Solution

A multi-stage pipeline with 7 specialized AI agents: SEO Title, Meta Description, Content Structure, Blog Body Writer (with Pinecone RAG for brand context), Content Validator, Slug Generator, and Summary Generator. Each agent has validation loops with automatic retry. Full observability via Langfuse prompt versioning. Scales to N clinics with zero marginal cost.

Results

  • -90% content production time per article (3 hrs → <10 min)
  • Immediate scalability — handles N clinics with no marginal cost
  • Consistent quality with automatic validation loops
  • Clear approval pipeline: Airtable → Webflow CMS with one click
  • Full prompt observability via Langfuse versioning

Architecture

Webhook Trigger → Stage 1: Input Assembly
  Airtable (fetch Approved keywords + clinic metadata)

→ Stage 2: Brand Context (RAG)
  Pinecone (semantic search, topK: 27, text-embedding-3-large)
  → Clinic brand voice + services + messaging strategy

→ Stage 3: Content Generation (7 agents, each with validation loops)
  1. SEO Title Generator (55-60 char loop)
  2. Meta Description Generator (140-160 char loop)
  3. Introduction & Content Structure (JSON schema loop)
  4. Blog Body Writer (+ Pinecone RAG tool for brand grounding)
  5. Content Validator (HTML/SEO structure loop)
  6. SEO Slug Generator
  7. Blog Summary Generator

→ Stage 4: Storage & Publishing
  Airtable (status: Pending)
  → Webflow CMS (if Site ID configured)
  → Airtable (keyword status: Done)