{% include 'nav.html' %}
Last Updated: scanning... | Packages: -

Domain → Business Pipeline

Complete data flow from raw domain input to fully assembled business-in-a-box output. Each stage transforms data through AI processing, validation, and assembly.

Legend: Input Output Component / File ✨ AI Model Validation
1

Domain Input

User Action

User enters raw domain names via text input or CSV file upload. The system cleans and deduplicates the list for batch processing.

Raw domain names (text, CSV)
Cleaned domain list
dashboard.html analyzeDomains() /api/analyze-domain
2

Domain Analysis

✨ AI Stage

AI decomposes domain keywords, explores cross-language meanings, acronyms, and mashups. Generates 7-10 scored niche ideas with monetization models, audience profiles, and valuation bands.

Clean domain name
Keywords & interpretations 7-10 scored niches Monetization models
aura.py:analyze_domain() llm.py:call_llm() SYSTEM_PROMPT_ANALYZER
validators.py:validate_analysis() auto-repair enabled
3

Niche Selection & Discovery

Interactive

User selects a niche, template type, layout, and density. A 4-step discovery modal captures brand personality, audience, values, and visual preferences. When skipped, _infer_discovery_from_niche() auto-generates rich context from niche data.

Analyzed niches User preferences
Chosen niche Template type Layout & density Discovery answers
dashboard.html (Discovery Modal) _infer_discovery_from_niche()
4

Blueprint Configuration

Engine

The Blueprint Engine assembles a site specification from 16 section types across 6 categories. Users choose a depth preset which controls how many sections are enabled, each with field specs and AI instructions.

Depth preset Section toggles
Blueprint object Enabled sections Field specs AI instructions
blueprint.py
Minimal
5
sections
Standard
9
sections
Comprehensive
13
sections
LEGENDARY
16
all sections
5

Content Generation

✨ AI Stage 16,384 tokens

The build engine transforms the blueprint + niche data + discovery context into a complete business package. GPT generates 3 brand identity options and full site copy for every enabled section in a single large JSON response.

Blueprint spec Niche data Discovery context
Brand identity (3 options) Full site copy Sales letter
aura.py:build_package() blueprint_to_prompt_spec() llm.py:call_llm() SYSTEM_PROMPT_BUILDER
6

Validation & Repair

3-Layer Pipeline

Raw AI JSON output passes through a 3-layer validation and auto-repair pipeline. Handles field aliases, nested object unwrapping, list coercion, missing field repair, and type normalization to guarantee consistent downstream data.

Raw AI JSON output
Validated data Normalized structure Auto-repaired fields
validators.py
_normalize_site_copy()
validate_site_copy()
validate_brand()
7

Asset Generation

✨ AI Stage DALL-E (gpt-image-1)

Generates hero images (1536×1024) and section-specific images using DALL-E. Images are generated sequentially to respect API rate limits. Prompts are derived from brand data, niche context, and visual style preferences.

Brand data Niche context
Hero image (1536×1024) Section images
llm.py:generate_image() gpt-image-1
8

Assembly & Output

Final Stage

All validated data, images, and sales materials are assembled into the final output. Users get a live preview site, a visual editor for refinements, a standalone sales page, and a ZIP export containing all assets.

Validated package Generated images Sales letter
Live preview site Visual editor Sales page ZIP export
site.html editor.html sales.html /api/export/{domain}
Hero
Visual-first
Comparison
Side-by-side
Data-Dense
Stats-focused
Gallery
Visual showcase

System Components

Infrastructure services powering the pipeline

LLM Service

Primary AI backbone for text and image generation

GPT-5 (text)
DALL-E / gpt-image-1

Database

Persistent storage for domains, packages, and assets

PostgreSQL (Neon)
SQLAlchemy ORM

Validation

Multi-layer data integrity and auto-repair system

Field alias resolution
Type coercion & repair

Blueprint Engine

Configurable site spec with sections, fields, and presets

16 section types
6 categories, 4 presets

SSE Streaming

Real-time progress updates via Server-Sent Events

Step-by-step progress
Batch queue tracking

Quality Gates

Automated architectural invariant checks

--
Click "Run Checks" to validate architectural invariants

Aura Architecture Map · Domain → Business Generator Pipeline