workflow_create
Create a SOLVE-IT workflow, validate it against the knowledge base, and write it to a JSON file with a share link for the Workflow Builder.
Instructions
Create a new SOLVE-IT workflow, write it to a JSON file and return the file path and, when it fits, a share link for the Workflow Builder (https://workflows.hargs.co.uk).
Nodes are given with your own keys; edges, selections and zone members refer to those keys, and the result maps each key to the node ID the server assigned. A sub-technique ID can be given directly as a technique: it is stored as its parent technique with the sub-technique as a method. Zones take the keys of their member nodes and are drawn around them. Use decision or fork nodes for branches out of a step. Use workflow_find_techniques to look up DFT IDs.
Layout is computed: direction "down" (the default, as the builder draws) or "right" (left to right, for example for slides). The workflow is checked against the SOLVE-IT knowledge base first; if there are errors nothing is written and the errors are returned. Warnings are returned with the result.
If a link is returned, give it to the user exactly as returned, in full: changing even one character breaks it. The file path, or open_in_browser=true, is the dependable way to open the workflow; offer those, especially when there is no link (large workflows exceed the 8000-character link limit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | File name inside the output directory (.json added if missing). Defaults to a name made from the title. | |
| workflow | Yes | The workflow to build. | |
| direction | No | Layout direction: "down" (default) or "right" for slides. | down |
| overwrite | No | Replace an existing file of that name even if this server did not write it. Otherwise a numbered name is used. | |
| open_in_browser | No | Also open the workflow in the default browser on this machine. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||