Skip to main content

Number

Uncontrolled node

Overview

The Number node creates a constant numeric value that can be used throughout your workflow. As an uncontrolled node, it outputs its value immediately without requiring an event trigger, making it ideal for providing static configuration values or constants to other nodes.

Inputs

InputTypeDescriptionDefault
NumberNumberThe numeric value to output0

Outputs

OutputTypeDescription
OutputNumberThe numeric value

Runtime Behavior and Defaults

The Number node is uncontrolled, meaning it executes immediately and outputs its value without waiting for a trigger event. At runtime, the value is converted to a JavaScript number type. If no value is specified, the node defaults to 0. The node has no event inputs or outputs and does not emit events.

Example Usage

Use the Number node to provide constant numeric values to other nodes in your workflow. Common use cases include setting iteration counts for loops, providing seed values for random number generation, configuring parameters for AI nodes (like temperature or max tokens), or defining constants for mathematical operations.

Example: Connect the Number node to the times input of a Loop node to control exactly how many iterations the loop should execute, or connect it to the seed input of an AI Write node to ensure reproducible outputs.