WorkflowintermediateWorkflows

Python Script Node in Workflow

Demonstrates using the built-in Python Script node inside a workflow: write arbitrary Python inline, access inputs dict, and return results to downstream nodes.

3 nodesAsync · Python · 4 connections

Graph Preview

python-script-node.vnwView source

Execution Flow

1

Pass input data to Python Script node

2

Python code runs with inputs dict available

3

Return dict keys map to output ports

4

Downstream nodes receive computed results

Node Breakdown

Input DataData
Python ScriptScript
ResultOutput

Integrations

Python

Tags

#python#script#inline#workflow#flexible

Source

workflows/python_script_node.json

General workflow demonstrating core patterns

Related Examples

Browse all →
input_path
output_path
width
Image
out_path
out_width
Node JSON

Image Resizer Node

beginner

Resize an image to target dimensions using Pillow. Supports aspect-ratio preservation and multiple resample filters (LANCZOS, BILINEAR, etc.). Outputs the saved path and final dimensions.

6 inputs·3 outputs·Image
#images#resize#pillow
Workflow

ForEach Iteration Pattern

beginner

Canonical ForEach usage: pass a list into ForEach, process each item through a sub-chain, collect results with Collect node, and output the aggregated list.

7 nodesAsync DAG
#foreach#iteration#list
Workflow

If/Else Branching

beginner

Route execution through one of two branches based on a boolean condition. The canonical conditional pattern in Vibrante-Node exec-flow graphs.

4 nodesExec-Flow
#conditional#if-else#branching