List Selector Nodes

List Selector Nodes pick items from a list using flexible selection strategies. After splitting text into a list, use a List Selector to choose exactly which items to process β€” the first three, a random one, a specific range, or items at specific positions.

What is a List Selector Node?

The List Selector takes a list of items (from a Split Text Node) and outputs selected items as text. It supports five selection modes, each useful for different scenarios.

Inputs & Outputs

PortDirectionTypeDescription
inputInListList of items from Split Text Node
outputOutTextSelected items (joined by separator) β†’ Text, Scene, Reference Image, AI Voice, Concatenator, HTML, JSON Parser, If/Else, AI If/Else, Canvas, Network Image, Network Video, Google Drive Export

Inspector Controls

Selection Mode

ModeDescriptionExample
SinglePick one item at a specific indexIndex 2 β†’ third item
MultiplePick items at specific indicesIndices 0, 2, 4 β†’ 1st, 3rd, 5th items
RangePick items from index A to BRange 1-3 β†’ 2nd, 3rd, 4th items
RandomPick N random itemsRandom 1 β†’ one surprise item
First/Last NPick first or last N itemsFirst 3 β†’ first three items

Output Separator

How to join multiple selected items in the output text:

  • Newline (default) β€” each item on its own line
  • Comma β€” items separated by commas
  • Space β€” items separated by spaces
  • Custom β€” any separator text

How to Use

  1. Connect a Split Text Node to the List Selector input
  2. Choose a selection mode
  3. Configure the mode parameters (index, count, range)
  4. Set the output separator
  5. Connect to downstream nodes (Text, Scene, etc.)

Workflow Examples

Random Headlines: Split Text (10 headlines) β†’ List Selector (Random 1) β†’ Text Node β†’ Scene β†’ generates a video about a random headline each time.

Top 3 Items: Split Text (full list) β†’ List Selector (First 3) β†’ feeds into 3 parallel Text Nodes for batch processing.

Specific Picks: Split Text β†’ List Selector (Multiple: indices 0, 4, 7) β†’ cherry-picks exactly the items you want.

Tips & Best Practices

  • Use Random mode for variety β€” each workflow run picks different items
  • First N is great for β€œtop stories” or β€œmost recent” patterns
  • The output separator matters when multiple items are selected β€” newline works best for most downstream nodes
  • Range mode is 0-indexed: Range 0-2 gives you the first 3 items
  • If the list has fewer items than requested, the selector returns what’s available (no error)

Troubleshooting

Empty output

The input list is empty or the index is out of bounds. Check that the Split Text Node is producing items.

Wrong items selected

Indices are 0-based. Index 0 is the first item, index 1 is the second, etc.

Items merged together

Check the output separator. If items appear as one long string, switch to newline separator.

See Also