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

Purpose

Retrieves the AI site deployment URL and existing AI articles from the database.

Function Signature

Returns

What It Does

  1. Query ai_sites - Find the AI site for this business/product
  2. Get deployment URL - The Vercel deployment URL
  3. Get existing posts - From ai_articles table (for deduplication)
  4. Return entity_id - For later database updates

Code Location