Skip to main content
Internal Service β€” This is not an HTTP endpoint. It’s called by the create-ai-article orchestrator.

Purpose

Uses Gemini to generate unique, SEO-optimized content for the AI article based on the scraped AI site content.

Function Signature

Returns

Content Generation

The LLM is prompted to:
  1. Analyze the scraped content to understand the business
  2. Identify a topic not covered by existing posts
  3. Generate comprehensive, helpful content
  4. Optimize for AI search engines

Deduplication

Existing post titles/slugs are passed to prevent generating duplicate content:
The LLM is instructed to create content on a DIFFERENT topic.

Code Location