create_workflow_from_template
Create and save a pending workflow from a built-in or custom YAML template using its parameters, so run_workflow can execute it later.
Instructions
[WRITE] Create and save a workflow from a template, ready for run_workflow.
Takes a template name (workflow_type) plus its params, builds the steps the template defines, and persists the workflow in state "pending" — it is not a dry run. Templates are the built-in types below plus custom YAML templates (list_workflows shows both). Use this when the goal matches a template; use create_workflow instead to save your own step list when none of them fit. A custom YAML template whose destructive or unclassifiable step (or step passing confirm=True) has no require_approval gate before it is refused, naming the step and the file to fix.
Available workflow types:
clone_and_test: Clone VM → apply changes → monitor → approve → commit
incident_response: Diagnose alert → collect info → approve → remediate
plan_and_approve: Wrap aiops batch operations with approval gate
compliance_scan: Read-only health/capacity/anomaly check (no approval)
Returns: dict with workflow_id, steps summary, and plan details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Workflow-specific parameters. | |
| workflow_type | Yes | One of the available workflow types. |