Create Flow
create_flowCreates a new unpublished Flow with a draft definition. Set top-level definition.senderIdentityId to an active tenant identity ID for the central sender; null or omission uses the tenant default. Each send_flow_email node may optionally set senderIdentityId to override the sender for that step only; omit it to inherit the Flow sender. Reusable Flow Emails have no sender setting, and test sends use the tenant default. Call get_flow_authoring_context and validate_flow_definition first, then pass normalizedDefinition when valid. idempotencyKey is required so retries do not create duplicates. New flows are automatically arranged top-to-bottom. Prefer omitting layout and layoutMeta. Legacy coordinates without layoutMeta are recomputed vertically. Only for an intentional manual layout provide all node positions and layoutMeta {version:1,direction:"TB"} together.
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>",
"definition": "<definition>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| layout | No | ||
| definition | Yes | Initial complete Flow definition with optional central senderIdentityId and per-send_flow_email senderIdentityId overrides. | |
| layoutMeta | No | ||
| description | No | ||
| idempotencyKey | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | ||
| requestId | Yes | ||
| definitionJson | Yes | ||
| idempotentReplay | Yes |