🎨
CULTIVA IA — AgentBoard
Pizarra colaborativa · powered by Excalidraw
@excalidraw/excalidraw v0.17
React 18 + TypeScript
Compartir sala
+ Nueva pizarra
Componente principal
Whiteboard.tsx
⎘ copiar
import
{
Excalidraw
}
from
"@excalidraw/excalidraw"
;
import
{
useState
,
useCallback
}
from
"react"
;
export function
AgentBoard
() {
const
[api, setApi] =
useState
<
any
>(
null
);
const
handleChange =
useCallback
( (els, state) => {
// debounce 500ms → persistir
debounce
(() =>
saveScene
(els, state),
500
) }, [] );
return
( <
div
style={{ height:
"100vh"
}}> <
Excalidraw
ref={(a) =>
setApi
(a)} onChange={handleChange} initialData={initialScene} UIOptions={{ canvasActions: { export: { saveFileToDisk:
true
} }}} /> </
div
> ); }
Diagrama programático
agentDiagram.ts
⎘ copiar
const
services:
ServiceNode
[] = [ { name:
"Claude API"
, type:
"llm"
, x:
320
, y:
50
}, { name:
"Orchestrator"
, type:
"api"
, x:
320
, y:
180
}, { name:
"Tool: CRM"
, type:
"database"
, x:
80
, y:
310
}, { name:
"Tool: Web"
, type:
"api"
, x:
320
, y:
310
}, { name:
"Tool: Content"
,type:
"queue"
, x:
560
, y:
310
}, { name:
"Redis Cache"
, type:
"cache"
, x:
80
, y:
440
}, { name:
"Huly CRM"
, type:
"database"
, x:
320
, y:
440
}, ];
generateArchitectureDiagram
( services, connections );
Paleta de nodos
API / Servicio
roughness: 1 · stroke: #1e1e1e
Base de datos
fillStyle: solid
Cola / Queue
roundness: { type: 3 }
Caché
seed determinista
Frontend / UI
fontFamily: 1 (Virgil)
LLM / Modelo
strokeWidth: 2.5
Exportación
export.ts
⎘ copiar
const
blob =
await
exportToBlob
({ elements, appState: { exportWithDarkMode:
false
}, getDimensions: () => ({ width:
1920
, height:
1080
, scale:
2
// retina
}), });
// SVG para docs
const
svg =
await
exportToSvg
({ elements });
🖱
✏️
⬜
◯
🔶
↗
——
T
🖼
🔗
↩
↪
⬇ PNG
⬇ SVG
⬇ .excalidraw
🌱 CULTIVA IA — Arquitectura de Agentes (AgentBoard)
Claude API
claude-3-5-sonnet (LLM)
Orchestrator
Agent Loop + Tool Routing
inference
Tool: CRM
Huly / HubSpot queries
Tool: Web
Scrapling + WebFetch
Tool: Content
Blog / Social / Copy gen
tool_call
tool_call
tool_call
Redis Cache
sesiones + embeddings
Huly CRM
clientes + historial
Notion / Drive
base de conocimiento
read/write
CRUD
fetch
context
roughness:1 · fontFamily:1 (Virgil)
A
M
C
3 personas editando · Sala: cultiva-agentboard-001
−
75%
+
7 nodos · 10 conexiones · Generado con
generateArchitectureDiagram()
· Auto-guardado hace 2 min