Skip to main content

Purpose

Creates AI-specific β€œboosted pages” - SEO-optimized content pages designed to increase visibility in AI search results. Each page targets a specific topic related to the business.

Architecture

4-Step Pipeline

StepServicePurpose
1get_source_deploymentGet AI site URL and existing posts
2scrape_ai_siteScrape deployed AI site for content
3generate_boosted_contentUse LLM to create new page content
4generate_boosted_filesGenerate HTML, update sitemap, llms.txt

URL Structure

Boosted pages are published at root level for better AI SEO:
https://business.searchcompany.dev/topic-slug/
https://business.searchcompany.dev/another-topic/

Generated Files

FilePurpose
/{slug}/index.htmlThe boosted page HTML
/sitemap.xmlUpdated with new page
/llms.txtUpdated with new page reference

Code Location

src/app/apis/cron/create_boosted_page/
β”œβ”€β”€ routes.py              # HTTP endpoint
β”œβ”€β”€ mini_orchestrator.py   # Main orchestrator
β”œβ”€β”€ url_utils.py           # URL/slug utilities
└── children/
    β”œβ”€β”€ step_1_get_source.py
    β”œβ”€β”€ step_2_scrape_ai_site.py
    β”œβ”€β”€ step_3_generate_content.py
    β”œβ”€β”€ step_4_generate_files.py
    └── templates/
        β”œβ”€β”€ boosted_html.py
        β”œβ”€β”€ boosted_index.py
        β”œβ”€β”€ boosted_llms_txt.py
        β”œβ”€β”€ llms_txt_update.py
        └── sitemap_update.py

Response Format

{
  "status": "success",
  "files": [...],
  "boosted_url": "https://business.searchcompany.dev/topic-slug/",
  "boosted_path": "/topic-slug/",
  "boosted_id": "boosted_abc123",
  "title": "Topic Title",
  "project_name": "business-abc123",
  "ai_site_url": "https://business.searchcompany.dev",
  "faq_category": "business_boosted"
}
This endpoint generates files but does NOT deploy. Call deploy-to-vercel separately with the returned files.