treeflow_create_entity
Create a new NLU entity (simple, composite, or regex) by specifying its name, type, canonical values with synonyms, or pattern. This defines custom entities for chatbot intent recognition in Treeflow.
Instructions
Crea una nueva entidad NLU (simple con sinónimos, compuesta o por expresión regular regex).
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": {
"tree_id": "<tree_id>",
"name": "<name>"
},
"name": "treeflow_create_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre de la entidad (ej. tipo_habitacion, ciudad, horario) | |
| type | No | Tipo de entidad. Default: simple | |
| values | No | Valores canónicos y sus sinónimos para entidades simple/composite | |
| pattern | No | Patrón regex si el tipo es regex (ej. ^[0-9]{5}$) | |
| tree_id | Yes | ID del bot/árbol |