WorkflowNode

The `WorkflowNode` entity.

Definition

TypeScript
interface WorkflowNode {
  id: string;
  workflowId: string;
  type:
    | "function"
    | "workflow"
    | "agent"
    | "swarm"
    | "start"
    | "end"
    | "condition"
    | "delay";
  name: string;
  config: any;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workflowIdstringrequired — Workflow this node belongs to.
type"function" | "workflow" | "agent" | "swarm" | "start" | "end" | "condition" | "delay"required — Node kind (agent, swarm, function, workflow, start, end, condition, delay).
namestringrequired — Display name shown in the workflow editor.
configanyrequired — Type-specific config (e.g. { agentId: 'agt_...' }).
createdAtstringreadonly required — ISO-8601 timestamp of creation.