batteriesincluded.com · Questions & Answers

When should a WaaS platform use routing workflows instead of orchestrator-worker patterns for site builds?

Selecting between routing workflows and orchestrator-worker patterns depends on task complexity, predictability, and latency requirements. In Website-as-a-Service (WaaS) platforms, architecture decisions directly impact LLM API costs and user generation speeds.

Routing workflows shine when user intents fall into well-defined, predictable categories. A router agent classifies incoming prompts - such as updating an existing contact section, generating an e-commerce catalog page, or tweaking global typography - and directs the request to a specialized sub-model or tailored prompt template. For example, simple CSS adjustments can route to a fast, cost-effective model, while complex JavaScript state management tasks route to a high-reasoning frontier model. This pattern reduces latency and keeps operational overhead low because each request follows a straightforward, single-hop path.

In contrast, orchestrator-worker workflows are essential when the scope of work is open-ended and unpredictable. In full-site vibe coding, a user might provide an ambiguous prompt like 'Build a booking portal for an equipment rental business.' Here, an orchestrator model breaks down the goal into dynamic subtasks: database schema definition, calendar component generation, payment integration, and microcopy creation. It delegates these subtasks to worker agents in parallel, analyzes their outputs, and synthesizes the final codebase.

As highlighted in foundational AI agent design patterns, teams should always start with the simplest functional architecture. If your platform primarily handles modular page edits and standard template adaptations, routing workflows provide superior speed and lower error rates. Transition to an orchestrator-worker system only when client requests require multi-step reasoning and dynamic runtime decomposition.

Category: AI Website Architecture

← All questions