# Process user data in n8n: filter, calculate stats, format export
This automation template enables efficient transformation, filtering, and aggregation of user data using JavaScript in n8n. It´s ideal for those working with internal datasets who need structured output quickly—for reporting, integration, or export purposes.
## Who it´s for
- Developers learning data processing in n8n
- Analysts needing fast data aggregation
- Integrators preparing data for external systems
## What the automation does
- Accepts user data on manual execution
- Filters records by defined conditions (e.g., age > 18)
- Calculates statistics: averages, role distribution, totals
- Formats output for CSV, email lists, or API payloads
- Uses JavaScript in Code Nodes for flexible data manipulation
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on manual trigger
- JavaScript data transformation logic in Code Node
- Basic text instructions for launch and adaptation
## Requirements for setup
- n8n account (cloud or self-hosted)
- Access to the dataset to be manually input as initial array
## Benefits and outcomes
- Accelerates data preparation for reports and BI
- Reduces errors from manual processing
- Enables rapid prototyping of processing logic
- Ensures repeatability and transparency of transformations
- Simplifies integration with CRM, email tools, and BI dashboards
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet