create_smart_workflow
Creates ERPNext workflows from specified states and transitions, including optional email alerts; retained for backward compatibility—use create_workflow with smart mode for new setups.
Instructions
[DEPRECATED] Use create_workflow with mode='smart' instead – kept for backward compatibility
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": {
"document_type": "<document_type>",
"workflow_name": "<workflow_name>",
"states": "<states>",
"transitions": "<transitions>"
},
"name": "create_smart_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| states | Yes | Array of workflow states | |
| is_active | No | Whether workflow is active (1/0, optional, defaults to 1) | |
| transitions | Yes | Array of workflow transitions | |
| document_type | Yes | Target DocType for the workflow | |
| workflow_name | Yes | Name of the workflow | |
| send_email_alert | No | Send email alerts on state changes (1/0, optional) |