How ablelm/ai_web_sites_constructor works
YouPilot is a Django AI landing-page builder. A user supplies a business brief; the application queues generation, runs a structured AI workflow, stores a validated site document as a version, and exposes editing, preview/publication, and export. The README also documents accounts, dashboard, lead capture, and a billing foundation. The sampled generator, editor, and publishing code supports several internal relationships; other product branches are connected only where the README documents them. The tree does not include the README-mentioned assets app, so it is not represented as a source node.
Main entry points: generator/services.py Generation pipeline · models.py Projects and versions · views.py Project workflows · editor/services.py Document operations
Components 19
User access
- Accounts
apps/accounts/views.py - Project dashboard
apps/dashboard/views.py
Site creation
- Projects and versions
apps/projects/models.py - Project workflows
apps/projects/views.py - Generation jobs
apps/generator/models.py - Database worker
apps/generator/management/commands/runworker.py - Generation pipeline
apps/generator/services.py - AI client
apps/ai/client.py - AI schemas
apps/ai/schemas.py - AI prompts
apps/ai/prompts.py
Editing and publishing
- Editor endpoints
apps/editor/views.py - Document operations
apps/editor/services.py - Preview and publishing
apps/publishing/views.py - Rendering and ZIP export
apps/publishing/services.py
Product services
- Lead capture
apps/leads/views.py - Billing foundation
apps/billing/services.py - Payment provider
apps/billing/providers.py
Other components
- Site owner
- YouPilot AI service
Connections 23
- Site owner → Accounts: signs in
- Site owner → Project dashboard: manages sites
- Project dashboard → Projects and versions: lists projects
apps/dashboard/views.py - Site owner → Project workflows: submits brief
- Project workflows → Projects and versions: creates project
apps/projects/views.py - Project workflows → Generation jobs: queues generation
apps/projects/views.py - Database worker → Generation pipeline: runs jobs
apps/generator/management/commands/runworker.py - Generation pipeline → AI client: requests generation
apps/generator/services.py - AI client → YouPilot AI service: calls API
apps/ai/client.py - Generation pipeline → AI prompts: builds prompts
apps/generator/services.py - AI prompts → AI schemas: uses schemas
apps/ai/prompts.py - Generation pipeline → AI schemas: validates output
apps/generator/services.py - Generation pipeline → Projects and versions: saves versions
apps/generator/services.py - Site owner → Editor endpoints: edits site
- Editor endpoints → Document operations: applies changes
apps/editor/views.py - Document operations → Projects and versions: versions document
apps/editor/services.py - Document operations → AI client: requests AI edits
apps/editor/services.py - Site owner → Preview and publishing: previews or publishes
- Preview and publishing → Rendering and ZIP export: renders or exports
- Rendering and ZIP export → Projects and versions: reads site document
apps/publishing/services.py - Site owner → Lead capture: submits inquiry
- Site owner → Billing foundation: uses billing
- Billing foundation → Payment provider: supports adapter