treeflow_create_leaf
Create a new node within a branch of a chatbot flow. Choose from supported leaf types—message, input, condition, action, webhook, or trigger context—to extend the conversation logic.
Instructions
Crea un nuevo nodo (leaf) dentro de una rama. Tipos soportados: message, input, condition, action, webhook, trigger_context.
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": {
"branch_id": "<branch_id>",
"leaf_type": "<leaf_type>"
},
"name": "treeflow_create_leaf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | Configuración JSON del nodo (ej. plantilla de mensaje, opciones, condiciones) | |
| branch_id | Yes | ID de la rama | |
| leaf_type | Yes | Tipo de nodo: message, input, condition, action, webhook, trigger_context | |
| canvas_position | No | Posición x, y en el lienzo { x: number, y: number } |