Workflows Introduction

Workflows are automated multi-step processes that orchestrate agents, skills, and tasks to accomplish complex goals. Instead of manually coordinating multiple steps, workflows handle the coordination for you.

What Are Workflows?#

Workflows combine multiple Bootspring capabilities into cohesive processes:

┌─────────────────────────────────────────────────────────────────┐ │ Workflow │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ Step 1 │───>│ Step 2 │───>│ Step 3 │───>│ Step 4 │ │ │ │ Agent │ │ Skill │ │ Agent │ │ Quality │ │ │ │ Plan │ │ Code │ │ Review │ │ Gate │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘

Why Use Workflows?#

Without Workflows#

Manual coordination of each step:

  1. Ask architecture-expert for planning
  2. Remember the plan and ask database-expert
  3. Remember schema and ask backend-expert
  4. Remember API design and ask frontend-expert
  5. Remember everything and ask testing-expert
  6. Manually run quality checks

With Workflows#

Automated orchestration:

Use the feature-development workflow to build a user dashboard with usage analytics and billing information.

The workflow:

  1. Plans architecture automatically
  2. Passes context between steps
  3. Coordinates multiple agents
  4. Applies skills as needed
  5. Runs quality gates
  6. Reports progress

Available Workflow Packs#

Launch Pack#

Everything needed to launch a product:

WorkflowPurpose
launch/pre-launchPre-launch checklist and preparation
launch/waitlistViral waitlist implementation
launch/landing-pageHigh-converting landing page
launch/launch-dayLaunch day execution plan
launch/post-launchPost-launch optimization

Example:

Use the launch/pre-launch workflow to prepare for our product launch next week.

Fundraising Pack#

Complete fundraising workflow:

WorkflowPurpose
fundraising/readinessAssess fundraising readiness
fundraising/materialsPrepare pitch materials
fundraising/targetingIdentify and research investors
fundraising/pitchingPitch meeting framework
fundraising/closingTerm sheet and closing

Example:

Use the fundraising/readiness workflow to evaluate if we're ready to raise a Series A.

Growth Pack#

Data-driven growth strategies:

WorkflowPurpose
growth/pmfProduct-market fit measurement
growth/metricsSaaS metrics and dashboards
growth/acquisitionUser acquisition channels
growth/retentionRetention and churn prevention

Example:

Use the growth/metrics workflow to set up MRR, NRR, and churn tracking.

Enterprise Pack#

Enterprise sales and compliance:

WorkflowPurpose
enterprise/readinessEnterprise feature checklist
enterprise/salesEnterprise sales process
enterprise/securitySecurity and compliance
enterprise/implementationEnterprise onboarding

Example:

Use the enterprise/readiness workflow to identify gaps for enterprise customers.

Development Workflows#

Technical development automation:

WorkflowPurpose
feature-developmentEnd-to-end feature building
database-migrationSafe database migrations
security-auditComprehensive security review
performance-optimizationPerformance improvement

Example:

Use the feature-development workflow to build a notification system with email, push, and in-app channels.

How Workflows Execute#

1. Initialization#

The workflow loads with your project context:

Starting workflow: feature-development Project: my-saas-app Stack: Next.js, Prisma, PostgreSQL Phase 1: Planning ─────────────────

2. Phase Execution#

Each phase runs in sequence with context passing:

Phase 1: Planning ✓ ├── architecture-expert analyzed requirements ├── Recommended: Server components + API routes └── Created: feature-spec.md Phase 2: Data Layer ✓ ├── database-expert designed schema ├── Created: prisma migration └── Validated: foreign keys, indexes Phase 3: Implementation ⟳ ├── backend-expert implementing API...

3. Checkpoints#

Workflows save progress and can resume:

Checkpoint saved: phase-2-complete To resume: bootspring workflow resume feature-dev-abc123

4. Completion#

Summary and artifacts:

Workflow Complete: feature-development ═══════════════════════════════════════ Files Created: ├── prisma/migrations/20240219_notifications/ ├── app/api/notifications/ ├── components/NotificationCenter/ └── tests/notifications/ Quality Gate: PASSED ├── TypeScript: ✓ ├── Tests: 94% coverage └── Security: No issues Duration: 12 minutes

Starting Workflows#

Natural Language#

Use the feature-development workflow to build [feature description].

CLI#

1# List workflows 2bootspring workflow list 3 4# Start a workflow 5bootspring workflow start feature-development 6 7# Resume a workflow 8bootspring workflow resume <workflow-id> 9 10# Check status 11bootspring workflow status

MCP Tool#

Use the bootspring_orchestrator tool to start the security-audit workflow.

Workflow Configuration#

Custom Phases#

Modify workflow behavior in config:

1// bootspring.config.js 2module.exports = { 3 workflows: { 4 'feature-development': { 5 phases: ['plan', 'database', 'api', 'frontend', 'test', 'review'], 6 skipPhases: [], // Phases to skip 7 agents: { 8 plan: 'architecture-expert', 9 database: 'database-expert', 10 api: 'backend-expert', 11 frontend: 'frontend-expert', 12 test: 'testing-expert', 13 review: 'security-expert', 14 }, 15 qualityGates: ['pre-commit'], 16 }, 17 }, 18};

Workflow Templates#

Create custom workflows:

1// bootspring.config.js 2module.exports = { 3 workflows: { 4 'my-custom-workflow': { 5 name: 'Custom Feature Workflow', 6 description: 'Our team workflow for features', 7 phases: [ 8 { 9 name: 'design', 10 agent: 'ui-ux-expert', 11 prompt: 'Create wireframes and design specs', 12 }, 13 { 14 name: 'implement', 15 agent: 'frontend-expert', 16 prompt: 'Implement the designs', 17 }, 18 { 19 name: 'review', 20 agents: ['code-review-expert', 'security-expert'], 21 prompt: 'Review implementation', 22 }, 23 ], 24 }, 25 }, 26};

Workflow Composition#

Sequential Workflows#

Run workflows one after another:

Run the database-migration workflow, then the security-audit workflow.

Parallel Execution#

Some workflow phases can run in parallel:

1// bootspring.config.js 2module.exports = { 3 workflows: { 4 'parallel-example': { 5 phases: [ 6 { name: 'plan', agent: 'architecture-expert' }, 7 { 8 name: 'parallel-impl', 9 parallel: [ 10 { agent: 'backend-expert', task: 'Build API' }, 11 { agent: 'frontend-expert', task: 'Build UI' }, 12 ], 13 }, 14 { name: 'integrate', agent: 'testing-expert' }, 15 ], 16 }, 17 }, 18};

Adaptive Workflows#

Workflows can adapt based on results:

1{ 2 phases: [ 3 { name: 'security-scan', agent: 'security-expert' }, 4 { 5 name: 'fix-issues', 6 condition: 'security-scan.issues > 0', 7 agent: 'security-expert', 8 prompt: 'Fix the identified security issues', 9 }, 10 ], 11}

Monitoring Workflows#

Check Status#

bootspring workflow status

Output:

Active Workflows ════════════════ ID: feat-dev-abc123 Name: feature-development Status: Running Phase: 3/5 (Implementation) Started: 5 minutes ago ID: sec-audit-xyz789 Name: security-audit Status: Paused (waiting for input) Phase: 2/4 (Scan) Started: 1 hour ago

View Logs#

bootspring workflow logs feat-dev-abc123

Pause/Resume#

# Pause a workflow bootspring workflow pause feat-dev-abc123 # Resume a workflow bootspring workflow resume feat-dev-abc123

Workflow Artifacts#

Workflows produce artifacts saved in .bootspring/:

.bootspring/ └── workflows/ └── feat-dev-abc123/ ├── state.json # Workflow state ├── plan.md # Architecture plan ├── decisions.md # Decisions made ├── artifacts/ # Generated files └── logs/ # Execution logs

Best Practices#

1. Start with Existing Workflows#

Before creating custom workflows, try the built-in ones:

What workflows are available for launching a product?

2. Save Checkpoints#

For long workflows, ensure checkpoints are saved:

1// bootspring.config.js 2module.exports = { 3 workflows: { 4 checkpointFrequency: 'phase', // Save after each phase 5 }, 6};

3. Review Before Proceeding#

Configure review points:

1{ 2 phases: [ 3 { name: 'plan', reviewRequired: true }, 4 { name: 'implement' }, 5 { name: 'deploy', reviewRequired: true }, 6 ], 7}

4. Use Quality Gates#

Always include quality gates:

1{ 2 phases: [ 3 // ... implementation phases 4 { 5 name: 'quality', 6 type: 'gate', 7 gates: ['pre-commit', 'security'], 8 }, 9 ], 10}

Workflow Tiers#

TierWorkflows Available
FreeBasic development workflows
ProLaunch, Growth, Fundraising, Enterprise packs
TeamAll Pro + Custom workflow templates

Troubleshooting#

"Workflow stuck"#

Check status and logs:

bootspring workflow status bootspring workflow logs <workflow-id>

Resume or restart:

bootspring workflow resume <workflow-id> # or bootspring workflow restart <workflow-id>

"Phase failed"#

Workflows can recover from failures:

bootspring workflow retry <workflow-id> --phase <phase-name>

"Need different agents"#

Customize agent assignments:

1// bootspring.config.js 2module.exports = { 3 workflows: { 4 'feature-development': { 5 agents: { 6 frontend: 'ui-ux-expert', // Override default 7 }, 8 }, 9 }, 10};

Next Steps#