Skip to main content
The Onboarding API handles everything needed when a new business signs up. The backend orchestrates all tasks via a single endpoint - the frontend just triggers it and can navigate away.

Flow

When a user completes payment and onboarding:
Optimized Flow: All GROUP 1 tasks run in parallel. GROUP 2 starts when scrape completes. GROUP 3 starts when products are discovered - it can start before GROUP 2! GROUP 3a and 3b run in parallel with each other.

Endpoints

The frontend calls these endpoints:
All other onboarding tasks are internal services called by generate-all. They are not exposed as HTTP endpoints.

Internal Services

The generate-all orchestrator calls these shared services directly (not via HTTP):
Services in shared/ are used by multiple modules (onboarding, cron, domain). Services in onboarding/generate_all/ are only used during onboarding.

What Gets Created

After onboarding completes, the business has:
The business entity is created by POST /api/business before generate-all is called. All other assets are created by the backend orchestrator running in the background.

Prompt Generation Strategy

All prompts are tied to products: If a store has fewer than 10 products, prompts per product is increased to ensure at least 50 total.

Regenerating Prompts

If prompts need to be regenerated for a product:

Testing

Run all onboarding tests: