onDashboardRun lets organization members start an automation from the dashboard, either immediately or with configured form inputs.
Example
automations/approval-request.automation.ts
onDashboardRun trigger appears on the Automations page and the automation’s detail page as a button named with its title. Selecting it opens configured fields in a dialog. description appears below the title when configured. If you omit fields or pass an empty array, selecting the button starts the automation immediately. Only members of the project’s organization can start the run.
Run without fields
automations/record-dashboard-run.automation.ts
markSignificant keeps each dashboard test in the default Recent runs view without sending email or changing another service.
Form options
onDashboardRun configuration is static and can’t use signals.
Field types
Each field requiresname and accepts optional label, description, and required. When you omit label, onDashboardRun sentence-cases name: contactEmail becomes Contact email. Inferred checkbox labels also end in a question mark. Array order controls form order. Fields are required by default except checkboxes, which are optional unless you set required: true.
Use
YYYY-MM-DD date values and local YYYY-MM-DDTHH:mm date-time values. An optional empty number or file is null. An optional multi-select is []. Other optional empty text, date, and single-choice fields are "". TypeScript infers choice values as string-literal unions from the configured options.
Every defaultValue must satisfy the field’s format, length, option, and min, max, or step constraints.
Trigger data
onDashboardRun emits:
onDashboardRun validates required values, email and URL formats, string lengths, configured options, and numeric and temporal min, max, and step constraints on the server before starting the automation. When you omit fields, data is an empty object.
Files
Add{ name: "document", type: "file" } to let members select a file. The automation receives a File with its contents, filename, and media type. Files are stored directly in the run data. Each file field accepts one file; declare separate fields for separate uploads.
automations/review-document.automation.ts