Agregar nuevo nodo a un flujo
🚀 Servidor de producción
https://api.hiveflow.com/api
🚀 Servidor de producción
https://api.hiveflow.com/api
POST
/flows/{flowId}/nodes
Nodos
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hiveflow.com/api/flows//nodes' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "custom",
"position": {
"x": 100,
"y": 100
},
"data": {
"agentName": "Mi Agente",
"llm": "openai",
"model": "gpt-3.5-turbo",
"prompt": "Analiza el siguiente texto",
"agentObjective": "Análisis de sentimientos",
"nodeType": "llm",
"isAsync": false,
"startNode": false,
"conditions": [
{
"prompt": "¿El sentimiento es positivo?",
"targetNodeId": "node-positive",
"usePrompt": true,
"operator": "contains",
"value": "positivo"
}
],
"webhookConfig": {
"url": "https://api.ejemplo.com/webhook",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer token123"
},
"timeout": 30000
},
"variables": {
"temperature": 0.7,
"max_tokens": 1000
}
}
}'
Response Response Example
{
"success": true,
"node": {
"id": "string",
"type": "string",
"position": {
"x": 0,
"y": 0
},
"data": {
"agentName": "string",
"llm": "openai",
"model": "string",
"agentObjective": "string",
"url": "string",
"prompt": "string",
"nodeType": "llm",
"conditions": [
{
"prompt": "string",
"targetNodeId": "string",
"usePrompt": true
}
]
}
},
"message": "Nodo creado exitosamente"
}
Request
Path Params
flowId
string
required
Body Params application/json
Responses
Modified at 2025-06-19 15:26:15