Create a Wiro workflow
create_workflowSaves a new private workflow in your API key's workspace from a step graph, validates it against the live model catalog, fills defaults, and returns its slug, link, and input keys.
Instructions
Save a new private workflow in the API key's workspace from a step graph. Read get_playbook topic "workflow-graph" first: it has the graph format, the reference syntax and examples. Check every model's parameter ids and values with get_model_schema: a model step's values, such as a duration, a size or an option, are checked when that step runs. Wiro checks the graph against the live model catalog, fills catalog defaults and lays the steps out before saving; every problem it finds comes back together, so fix them all and call again. Set every model input you care about: a left-out one gets the model's default (the Notes in the result list what was filled). The graph can be at most 40 KB of JSON with those defaults. Free. Each call creates another workflow. The result gives the full slug, the page link and the input keys, so no get_workflow call is needed to run it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Up to 20 tags. | |
| title | Yes | Workflow title (1-160 characters). | |
| contents | Yes | The workflow graph (version "1"): {version, nodes, output, schema, metadata}. Read get_playbook topic "workflow-graph" for the format and an example. | |
| description | No | What the workflow does (up to 1000 characters). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| state | No | ||
| title | Yes | ||
| inputs | Yes | ||
| outputs | Yes | ||
| renamed | Yes | ||
| fullSlug | Yes | ||
| warnings | Yes | ||
| nextAction | No | ||
| updatetime | No |