Generate & Split Sample Data with JS/Python Code Nodes - n8n Workflow | Neura Market
Generate & Split Sample Data with JS/Python Code Nodes
Plug-and-play n8n workflow generates 20 sample records via JavaScript or Python Code nodes, then splits into individual items for easy testing and prototyping.
This minimal workflow demonstrates generating sample data records using n8n's Code node in both JavaScript and Python implementations. It creates an array of 20 records with fields like index, num, and test, stores it in item.json.barr, and uses the Split Out node to fan out the array into one item per record. This setup is ideal for testing downstream nodes, mappings, pagination, or list-based logic without relying on real data sources.
Perfect for developers, educators, and builders needing m
Platform
n8n
Category
Travel & Hospitality
Price
$5.99
Creator
Fred Garcia
sample-data
mock-data
javascript
python
code-node
split-out
testing
development
prototyping
data-generation
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.