---
title: "WorkflowNode"
description: "The `WorkflowNode` entity."
section: "Reference"
group: "Types"
order: 272
---

## Definition

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

## Fields

| Field        | Type                                                                                           | Notes                                                                                    |
| ------------ | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `id`         | `string`                                                                                       | `readonly` `required`                                                                    |
| `workflowId` | `string`                                                                                       | `required` — 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). |
| `name`       | `string`                                                                                       | `required` — Display name shown in the workflow editor.                                  |
| `config`     | `any`                                                                                          | `required` — Type-specific config (e.g. { agentId: 'agt\_...' }).                        |
| `createdAt`  | `string`                                                                                       | `readonly` `required` — ISO-8601 timestamp of creation.                                  |
