defineNode
Type-safe helper for creating node definitions. Returns aNodeDefinition with full TypeScript inference from your Zod schemas.
DefineNodeConfig
string
required
Unique identifier used in workflows.
string
required
Display name shown in the editor.
string
required
Description shown in the node palette.
NodeCategory
required
'action' | 'logic' | 'integration' | 'transform'z.ZodSchema<TInput>
required
Zod schema for input validation.
z.ZodSchema<TOutput>
required
Zod schema for output validation.
NodeExecutor<TInput, TOutput>
required
Async function implementing the node’s logic.
number
Estimated execution time in seconds.
NodeCapabilities
Feature flags (
supportsRerun, supportsCancel, etc.).prepareNodeInput
Resolves all{{variable}} references in a node’s configuration object using an ExecutionContext.
prepareNodeInput calls context.interpolateObject(nodeSettings) internally. It’s a convenience wrapper for the common pattern of resolving node config before execution.