Blocks
CSV Processor
Process and transform CSV data
Parse, transform, filter, and generate CSV data with support for various operations like sorting, filtering, and aggregation.
Block Preview
CSV Processor
Process and transform CSV data
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the csv_processor block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: full
Options: Parse CSV to JSON, Convert JSON to CSV, Filter CSV Data, Sort CSV Data
CSV Input
long-inputPlaceholder: name,age,city John,30,New York Jane,25,Los Angeles
Layout: full
Condition: operation = ["parse","filter","sort","aggregate","transform","stats"]
JSON Input (Array of Objects)
codePlaceholder: [ { "name": "John", "age": 30, "city": "New York" }, { "name": "Jane", "age": 25, "city": "Los Angeles" } ]
Layout: full
Condition: operation = ["stringify"]
Delimiter
short-inputPlaceholder: ,
Layout: half
Condition: operation = ["parse","stringify"]
Has Header
switchLayout: half
Condition: operation = ["parse","filter","sort","aggregate","transform"]
Filter Expression (JavaScript)
codePlaceholder: // Return true to keep the row, false to filter it out // Example: Filter rows where age > 25 row.age > 25
Layout: full
Condition: operation = ["filter"]
Sort Column
short-inputPlaceholder: age
Layout: half
Condition: operation = ["sort"]
Sort Direction
dropdownLayout: half
Condition: operation = ["sort"]
Options: Ascending, Descending
Aggregate Column
short-inputPlaceholder: age
Layout: half
Condition: operation = ["aggregate"]
Aggregate Function
dropdownLayout: half
Condition: operation = ["aggregate"]
Options: Sum, Average, Min, Max
Group By Column
short-inputPlaceholder: city
Layout: full
Condition: operation = ["aggregate"]
Transform Expression (JavaScript)
codePlaceholder: // Transform each row // Example: Convert age to dog years return { ...row, age: row.age * 7 };
Layout: full
Condition: operation = ["transform"]
Inputs (API)
operation
stringRequired
csvInput
stringOptional
jsonInput
jsonOptional
delimiter
stringOptional
header
booleanOptional
filterExpression
stringOptional
sortColumn
stringOptional
sortDirection
stringOptional
aggregateColumn
stringOptional
aggregateFunction
stringOptional
groupByColumn
stringOptional
transformExpression
stringOptional
Outputs
Primary response type:
{
"success": "boolean",
"data": "json",
"csv": "string",
"error": "string",
"stats": "json"
}