Data - Literal
Type identifier:
data:literalCategory: Data Operations
Description
Provides a static data value of any supported type. Use this node to inject constant values into your Flow, such as configuration strings, default numbers, or structured objects.
Input Handles
This node has no input handles. It provides a static value.
Output Handles
Handle | Data Type | Description |
|---|---|---|
| Varies | The configured literal value |
Output Handle Details
value
- Type: Matches the configured
typeproperty - Notes: The data type is determined by the
typeconfiguration
Configuration Options
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes |
| The data type of the value |
| Any (matches | Yes |
| The literal value |
| Object | No | — | Schema configuration for value |
Configuration Details
type
- Type:
"string"|"number"|"boolean"|"date"|"duration"|"array"|"object" - Notes: Determines the output handle type and available value editors
value
- Type: The actual value to output, matching
type Notes:
- For
string: Any text value - For
number: Numeric value - For
boolean:trueorfalse - For
date: ISO 8601 date string - For
duration: Duration object - For
array: Array of values - For
object: Key-value object
- For
schemaConfig
- Type: Object (optional)
Notes:
- Provides detailed schema for complex types (array items, object properties)
- Enables proper type handling in downstream nodes
Behaviour
Execution Flow
- When the node is processed, the configured
valueis retrieved - If
schemaConfigis defined, the value is typed accordingly - The value is set as the output on the
valuehandle
Examples
String Literal
{
"type": "data:literal",
"data": {
"label": "API Key",
"type": "string",
"value": "sk_test_123abc"
}
}Output Handles:
value(string)
Number Literal
{
"type": "data:literal",
"data": {
"label": "Max Retries",
"type": "number",
"value": 3
}
}Output Handles:
value(number)
Boolean Literal
{
"type": "data:literal",
"data": {
"label": "Is Enabled",
"type": "boolean",
"value": true
}
}Output Handles:
value(boolean)
Array Literal
{
"type": "data:literal",
"data": {
"label": "Allowed Roles",
"type": "array",
"value": ["admin", "editor", "viewer"],
"schemaConfig": {
"type": "array",
"name": "Roles",
"items": {
"type": "string",
"name": "Role"
}
}
}
}Output Handles:
value(array)
Object Literal
{
"type": "data:literal",
"data": {
"label": "Default Settings",
"type": "object",
"value": {
"theme": "dark",
"language": "en",
"notifications": true
},
"schemaConfig": {
"type": "object",
"name": "Settings",
"properties": {
"theme": { "type": "string", "name": "Theme" },
"language": { "type": "string", "name": "Language" },
"notifications": { "type": "boolean", "name": "Notifications" }
}
}
}
}Output Handles:
value(object)
Related pages
Page not found. It may have moved or may not be published.
Browse documentation