Skip to main content
Workflow Templates let you define reusable sequences of tasks with pre-configured dependencies and conditions.

Creating a Template

Use the API (UI coming soon):
api.createWorkflowTemplate(projectId, "Feature Pipeline", "Standard feature workflow", JSON.stringify([
  { title: "Implement feature", task_type: "feature", depends_on_steps: [] },
  { title: "Write tests", task_type: "test", depends_on_steps: [0] },
  { title: "Code review", task_type: "refactor", depends_on_steps: [1] },
  { title: "Create PR", task_type: "chore", depends_on_steps: [2], condition_type: "on_success" }
]))

Step Properties

FieldDescription
titleTask title
descriptionTask description (optional)
task_typefeature, bugfix, refactor, docs, test, chore
modelClaude model override (optional)
acceptance_criteriaTest criteria (optional)
depends_on_stepsArray of step indices this step depends on
condition_typealways, on_success, on_failure, on_any

Applying a Template

api.applyWorkflowTemplate(templateId, projectId)
This creates all tasks with proper dependency wiring. The queue will automatically execute them in the correct order.