Designing onboarding for a workspace with sample data
Seeding the workspace before the first step
When a new person lands in an empty workspace they cannot see the value of the product. A tour that points at a blank list or an idle chart teaches nothing. The fix is to populate the account with realistic sample data before the tour starts, then point each step at that data.
Create a deterministic seed script that runs once per new workspace. The script should insert: - Two completed projects with different statuses - Three sample tasks assigned to the new user - One comment thread with replies - A dashboard widget showing a non-zero metric
Store a flag onboarding_seeded = true on the workspace record so the script never runs twice.
Wiring the tour to the seeded records
Each tour step uses a CSS selector that matches the seeded elements. For example, the step that highlights the project list targets [data-project-id="seed-proj-1"]. Because the IDs are stable, the step never drifts onto a different element.
Add a final step that explains how to delete or archive the sample data. Use a selector for the archive button on seed-proj-1 so the learner performs the real action on real data.
Worked example: before and after
Before – Tour step 2 points at .project-list .empty-state. The learner sees "No projects yet" and a generic "Create project" button. They click, land on a blank form, and drop off.
After – Tour step 2 points at [data-project-id="seed-proj-1"] .project-name. The learner sees "Website redesign" with real tasks inside. They click, land on a populated project board, and continue.
Verification: open the workspace in an incognito window, start the tour, confirm step 2 highlights the seeded project card.
Reusable seed checklist
seed_checklist:
- projects: 2
- tasks_per_project: 3
- comments: 1
- dashboard_metrics: true
- flag_column: onboarding_seeded
Exception: workspaces created via SSO provisioning may already contain imported data. Detect existing records first; if projects.count > 0, skip seeding and attach the tour to the newest project instead.
Result: the first tour step now lands on a living project board, not an empty state.
Related: Onboarding Tours features.
