Create List
Create a list from text by splitting on a delimiter, or by combining multiple inputs
What does this node do?
The Create List node creates a list either by splitting text on a delimiter or by combining multiple individual inputs into an array.
Common uses:
- Convert lines of text into a list for a Loop node
- Combine multiple values into a single array
- Prepare data for batch processing
Quick setup
Add the Create List node
Find it in Tools → Create List
Choose your mode
Use the default single-input mode with a delimiter, or enable Multiple Inputs to combine separate values.
Connect inputs
Wire your source node(s) to the input handle(s).
Use the output
Connect the list output to the next node (e.g., Loop, Count List Items).
Configuration
Single input mode (delimiter)
text string required The text to split into a list. Each segment separated by the chosen delimiter becomes a list item.
delimiter select default: newline The character used to split the text. Options: newline, comma, space, tab, semicolon.
Multi-input mode
Enable the Multiple Inputs toggle to combine separate values into a list.
input_count number default: 2 Number of inputs (2-10). Each input appears as a separate handle: item_1, item_2, etc.
item_1 string required First item to add to the list.
item_2 string required Second item to add to the list.
Up to 10 item inputs are available when using multi-input mode. Increase the Number of Inputs setting to add more handles.
Output
A JSON array containing the created list items:
{
"list": ["item1", "item2", "item3"]
}
Access the result: {{CreateList_0.list}}
Examples
Split text by newline for looping
Goal: Convert a multi-line text block into a list, then iterate over each line.
graph LR
A[Static Text] --> B[Create List]
B --> C[Loop]
C --> D[LLM: Process each item]
Configuration:
text:{{StaticText_0.text}}delimiter:newline
Each line of the input text becomes a separate list item.
Combine multiple values into an array
Goal: Gather outputs from several nodes into a single list.
graph LR
A[Text Input 1] --> D[Create List]
B[Text Input 2] --> D
C[Text Input 3] --> D
D --> E[Merge Lists]
Configuration:
- Multiple Inputs: On
- Number of Inputs: 3
item_1:{{TextInput_0.text}}item_2:{{TextInput_1.text}}item_3:{{TextInput_2.text}}
Create a list then loop over it
Goal: Build a list of URLs from comma-separated text and scrape each one.
graph LR
A[Static Text: URLs] --> B[Create List]
B --> C[Loop]
C --> D[Web Scraper]
D --> E[LLM: Summarize]
Configuration:
text:"https://example.com, https://example.org, https://example.net"delimiter:comma
Common issues
List contains empty items
If your text has trailing delimiters or consecutive delimiters (e.g., "a,,b"), the resulting list may contain empty strings. Clean your input text or add a Filter List node after to remove empty entries.
Delimiter not splitting correctly
Make sure the delimiter in your text matches the selected option. For example, if your text uses semicolons but the delimiter is set to comma, the entire text will be treated as a single item. Check for invisible characters like \r\n vs \n.