const canvas = await theo.createCanvas({
name: "Support Agent",
description: "Customer service skill with knowledge base",
graph_json: {
nodes: [
{ id: "in", type: "input", position: { x: 300, y: 0 }, data: { type: "input", label: "Input", config: { triggerType: "manual" } } },
{ id: "p1", type: "prompt", position: { x: 280, y: 120 }, data: { type: "prompt", label: "Prompt", config: { content: "You are a helpful support agent." } } },
{ id: "m1", type: "model", position: { x: 300, y: 260 }, data: { type: "model", label: "Model", config: { modelId: "theo-1-flash" } } },
{ id: "out", type: "output", position: { x: 300, y: 400 }, data: { type: "output", label: "Output", config: { format: "text" } } },
],
edges: [
{ id: "e1", source: "in", target: "p1" },
{ id: "e2", source: "p1", target: "m1" },
{ id: "e3", source: "m1", target: "out" },
],
},
});