invariance_workflow_create
Create a workflow definition with typed fields, expected steps, allowed outcomes, and custom metrics to standardize process tracking and analysis.
Instructions
Create a workflow definition with typed fields, expected steps, allowed outcomes, and custom metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| description | No | ||
| display_name | Yes | ||
| custom_metrics | No | JSON array of metric widgets, e.g. [{"kind":"count","label":"Escalations","event_type":"support.escalated"}]. | |
| expected_steps | No | JSON array of expected workflow steps, e.g. [{"type":"triage","required":true}]. | |
| expected_fields | No | JSON array of typed fields, e.g. [{"name":"priority","type":"enum","enum":["p0"]}]. | |
| allowed_outcomes | No | JSON array of allowed outcomes, e.g. [{"value":"resolved","kind":"success"}]. |