Se rendre au contenu

Website Workflow

Generate complete, multi-page responsive websites with AI-powered content creation, professional design, and SEO optimization.

9
Stages
2
Approval Gates
1-10
Pages Generated
GPT-4
AI Provider

Overview

The Website Workflow creates complete, production-ready websites by guiding AI through a structured content creation process. Starting from a simple description of your business or project, the workflow:

  • Analyzes your industry and target audience
  • Proposes an optimal page structure and navigation
  • Generates compelling copy for each page
  • Applies professional themes and styling
  • Publishes directly to the website module
Portal Wizard Available

End users can create website projects through a guided wizard at /portal/create/website without any technical knowledge required.

Prerequisites

  • AI Workflow Framework modules installed
  • ai_workflow_website module installed
  • OpenAI API key configured in AI Provider settings
  • Website module enabled

Quick Start

Option 1: Portal Wizard (Recommended)

  1. Navigate to /portal/create/website
  2. Fill in the wizard form with your business details
  3. Click "Create Project"
  4. Monitor progress on the portal dashboard
  5. Review and approve the design when prompted
  6. Review and approve each generated page
Website Creation Wizard

Website creation wizard in the portal

Option 2: Python API

Python
# Create a website project via code
template = env.ref('ai_workflow_website.website_template')

project = env['project.project'].create({
    'name': 'My Company Website',
    'ai_template_id': template.id,
})

# Set project parameters
project.write({
    'ai_params': {
        'industry': 'Technology',
        'website_type': 'corporate',
        'page_count': 5,
        'target_audience': 'B2B decision makers',
        'description': 'Professional website for a SaaS company',
        'company_name': 'TechCorp Inc',
        'theme_style': 'modern',
    }
})

# Start the workflow
project.action_start_workflow()

Stage Breakdown

The website workflow progresses through 9 distinct stages:

1
Discovery

Captures initial requirements from the wizard or API parameters.

execution_mode: manual Input: User wizard data
2
Research

AI analyzes the industry, competitors, and target audience to inform content strategy.

execution_mode: ai Output: Research report JSON
3
Generate Design Proposal

AI proposes page structure, navigation, color scheme, and content strategy based on research.

execution_mode: ai Output: Design proposal JSON
4
Design Review Approval Gate

Human reviews the proposed design and page structure. Can request changes or approve to proceed.

execution_mode: manual Requires: Human approval
5
Create Page Tasks

System creates individual tasks for each page to be generated based on the approved design.

execution_mode: system Output: Task records
6
Generate Pages

AI generates content and HTML for each page task. Pages are generated sequentially or in parallel depending on configuration.

execution_mode: ai Output: Page HTML content
7
Page Review Approval Gate

Human reviews each generated page. Can provide feedback for regeneration or approve individual pages.

execution_mode: manual Requires: Human approval per page
8
Publish

Approved pages are published to the website. Navigation menus are created and linked.

execution_mode: system Output: Published website pages
9
Complete

Project is marked complete. Website is live and accessible.

Final Stage Output: Live website URL

Configuration Options

The following parameters can be set when creating a website project:

Parameter Type Description Default
company_name String Name of the company/organization Required
industry String Industry category (e.g., "Technology", "Healthcare") Required
website_type Selection "corporate", "portfolio", "ecommerce", "blog", "landing" "corporate"
page_count Integer Number of pages to generate (1-10) 5
target_audience String Description of target audience Optional
description Text Detailed description of the business/project Required
theme_style Selection "modern", "classic", "minimal", "bold" "modern"
color_preference String Primary color or color scheme preference Optional

Output Details

The website workflow produces the following artifacts:

Website Pages

Fully rendered HTML pages stored in website.page records:

  • Homepage with hero section
  • About page with company info
  • Services/Products pages
  • Contact page with form
  • Additional pages as configured
Navigation Menu

Automatically created menu structure in website.menu:

  • Main navigation menu
  • Page links with proper ordering
  • Dropdown menus if applicable
  • Footer navigation links
Theme Configuration

Applied styling and design tokens:

  • Color scheme variables
  • Typography settings
  • Component styling
  • Responsive breakpoints
SEO Metadata

Search engine optimization data:

  • Page titles and descriptions
  • Open Graph tags
  • Structured data (JSON-LD)
  • Sitemap entries

API Reference

Model: website.workflow

Extends ai.workflow.contract and ai.content.workflow.mixin

Python
# Key methods available on website workflow projects

# Start workflow execution
project.action_start_workflow()

# Get current stage
current_stage = project.stage_id

# Check if approval is pending
if project.ai_state == 'approval_pending':
    # Show approval wizard
    project.action_open_approval_wizard()

# Approve current stage
project.action_approve_stage()

# Request changes with feedback
project.action_request_changes(feedback="Please make the hero section larger")

# Get all generated pages
pages = project.ai_artifact_ids.filtered(
    lambda a: a.artifact_type == 'website_page'
)

# Get the live website URL
website_url = project.website_url
Testing Tip

Use the website.super.test model to run integration tests with auto-approval mode enabled:

gen = env['website.super.test'].create({'auto_approve': True, 'run_ai': True})
gen.generate_and_run()