Purpose
Creates AI-specific articles - 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
| Step | Service | Purpose |
|---|
| 1 | get_source_deployment | Get AI site URL and existing posts |
| 2 | scrape_ai_site | Scrape deployed AI site for content |
| 3 | generate_article_content | Use LLM to create new page content |
| 4 | generate_article_files | Generate HTML, update sitemap, llms.txt |
URL Structure
AI articles are published at root level for better AI SEO:
https://business.searchcompany.dev/topic-slug/
https://business.searchcompany.dev/another-topic/
Generated Files
| File | Purpose |
|---|
/{slug}/index.html | The AI article HTML |
/sitemap.xml | Updated with new page |
/llms.txt | Updated 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/
├── article_html.py
├── article_index.py
├── article_llms_txt.py
├── llms_txt_update.py
└── sitemap_update.py
{
"status": "success",
"files": [...],
"article_url": "https://business.searchcompany.dev/topic-slug/",
"article_path": "/topic-slug/",
"article_id": "article_abc123",
"title": "Topic Title",
"project_name": "business-abc123",
"ai_site_url": "https://business.searchcompany.dev",
"faq_category": "business_article"
}
This endpoint generates files but does NOT deploy. Call deploy-to-vercel separately with the returned files.