Create Workflow
create_workflowCreate a workflow for a DocType with custom states and transitions, specifying allowed roles for each action.
Instructions
Create a new workflow for a DocType
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": {
"workflow_name": "<workflow_name>",
"document_type": "<document_type>",
"states": "<states>",
"transitions": "<transitions>"
},
"name": "create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| states | Yes | Workflow states | |
| is_active | No | Whether workflow is active | |
| transitions | Yes | Workflow transitions | |
| document_type | Yes | DocType this workflow applies to | |
| workflow_name | Yes | Workflow name |