createWorkflow
Create a step-based workflow definition with at least one step, or set up the definition before adding graph nodes and edges for human-reviewed content changes.
Instructions
Create a workflow definition (the step-based editor path). The API requires at least one step: pass steps as an array of { position, stepType, configJson, isEnabled? }. For graph-based workflows, create the definition here, then add nodes and edges with the graph tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"siteId": "<siteId>",
"name": "<name>",
"targetCollectionId": "<targetCollectionId>",
"steps": "<steps>"
},
"name": "createWorkflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| steps | Yes | At least one step: { position, stepType, configJson, isEnabled? } | |
| siteId | Yes | Site ID | |
| projectId | Yes | Project ID | |
| description | No | Optional description | |
| triggerType | No | Trigger type (defaults to manual on the server) | |
| targetCollectionId | Yes | Target collection ID |