Contents

Test Node

test_node · Nodes · Trigger · Trigger

Provides a trigger node for workflow tests.

Test Node#

Starts a workflow with a fixed JSON value: the payload it is configured with, on every run.

When to Use#

  • Use this as the preferred JSON ingress for payload-driven workflow testing.
  • Paste a representative external request/event payload here and normalize it once downstream.
  • Use manual_trigger only when you need a zero-payload run.
  • Use Input when a caller supplies the value: a Subworkflow step, a panel or an execute_workflow run. Input takes the invocation's value and emits {} when run from the editor.

Common use case: paste a real request or event payload here while iterating on downstream nodes.

Configuration#

  • payload: JSON text to emit. Default: {}.

Inputs & Outputs#

  • Input: None
  • Output: output with the parsed JSON payload

Example#

{
  "user_id": "01HZX1Y2Z3A4B5C6D7E8F9G0H1",
  "action": "sync",
  "dry_run": true
}

The node parses this JSON and emits it on output.

[
  {
    "email": "[email protected]",
    "score": 42
  }
]

Inputs

None.

Outputs

  • output

Configuration

FieldTypeRequiredDescription
payloadcode(json)NoSample JSON payload to emit when testing the workflow
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).