create_flow
Creates a new multi-step conversation flow on the ReactFlow canvas for an agent. Automatically creates any inline rich card/carousel/text templates, normalizes node/edge handles, auto-layouts the graph visually, validates all branches, and saves the flow.
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": {
"name": "<name>",
"nodes": "<nodes>",
"edges": "<edges>"
},
"name": "create_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the new flow (e.g. "VIP Appointment Follow-Up"). | |
| edges | Yes | Directed edges connecting source nodes/handles to target nodes. | |
| nodes | Yes | List of flow nodes. If the start node is omitted, one is automatically prepended. | |
| agentId | No | Agent ID or display name. Defaults to the active agent in context. | |
| folderId | No | Optional existing flow folder ID. | |
| autoLayout | No | Automatically arrange node coordinates cleanly top-to-bottom (default true when positions are omitted). | |
| folderName | No | Optional flow folder name (automatically created if it does not exist yet; inline templates created with this flow are also organized into a matching template folder unless templateFolderName is specified). | |
| description | No | Short summary of what this flow does. | |
| templateFolderId | No | Optional template folder ID for inline templates created with this flow. | |
| templateFolderName | No | Optional template folder name for inline templates created with this flow (defaults to folderName when folderName is set). |