Login
Free Sign Up
Docs
/

Data - Literal

Type identifier: data:literal Category: 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

value

Varies

The configured literal value

Output Handle Details

value

  • Type: Matches the configured type property
  • Notes: The data type is determined by the type configuration

Configuration Options

Property

Type

Required

Default

Description

label

string

Yes

"Data - Literal"

Display label for the node

type

string

Yes

"string"

The data type of the value

value

Any (matches type)

Yes

""

The literal value

schemaConfig

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: true or false
    • For date: ISO 8601 date string
    • For duration: Duration object
    • For array: Array of values
    • For object: Key-value object

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

  1. When the node is processed, the configured value is retrieved
  2. If schemaConfig is defined, the value is typed accordingly
  3. The value is set as the output on the value handle

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