generate_workflow
Generate workflow definitions with states, transitions, and approvals using a builder for FrameIO entities.
Instructions
Generate workflow definitions with states, transitions, and approvals using defineWorkflow() builder
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": {
"workflowKey": "<workflowKey>",
"name": "<name>",
"description": "<description>",
"entityKey": "<entityKey>",
"statusField": "<statusField>",
"states": "<states>",
"transitions": "<transitions>"
},
"name": "generate_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow display name | |
| states | Yes | Array of workflow states | |
| entityKey | Yes | Entity key this workflow applies to (e.g., pos.order) | |
| description | Yes | Workflow description | |
| statusField | Yes | Field name that stores the workflow status (e.g., status) | |
| transitions | Yes | Array of state transitions | |
| workflowKey | Yes | Workflow key in format {module-id}.{workflow-name} (e.g., pos.order-approval) |