Skip to main content
What this builds. A minimal pipeline that takes input strings, gathers them into a list via CreateListNode, and exposes the list through an output node. You’ll end up with. An existing pipeline (fetched by id) re-saved with three nodes: a string input, a CreateListNode, and an output node returning the list.
import vectorshift
from vectorshift.pipeline import Pipeline, InputNode, OutputNode, CreateListNode

pipeline = Pipeline.fetch(id="698d6768a07ed4bec88d7aed")

pipeline.nodes.clear()
pipeline.save()

string_input = InputNode(node_name='query', input_type='string')
string_input_2 = InputNode(node_name='query', input_type='string')

create_list_node = CreateListNode(list=[string_input.text, string_input_2.text])

output_node = OutputNode(
    node_name='result',
    output_type='string',
    value=create_list_node.output,  # string -> string (OK)
)

pipeline.nodes = [string_input, create_list_node, output_node]
pipeline.save()

Expected output

This script does not print — success is signalled by the pipeline being re-saved without raising. Fetch the pipeline in the dashboard to confirm the three nodes are wired.

See also

Read-JSON pipeline

Extract values from a JSON string instead of building a list.

Text processing pipeline

Combine and reformat strings inside a pipeline.

Pipeline reference

Full method surface.