Quick overview
This workflow uses n8n Forms to accept a customer CSV upload, audits it for required name/email fields, email format issues, and duplicate email addresses, and then returns a downloadable CSV quality report or a correction message—without calling external services or changing any database.
How it works
- Receives a CSV file upload through an n8n Form.
- Applies configurable audit rules such as maximum record count, accepted header aliases for name and email, and case-insensitive email matching.
- Parses the CSV (including the header row) and validates structure, encoding, unique headers, consistent field counts, and presence of exactly one name column and one email column.
- Audits each record for missing name/email values, practical email syntax validity, formula-like cells, and duplicate emails across the uploaded file while keeping every original row.
- If validation passes, generates a review CSV that adds issue codes, human-readable issue notes, and duplicate record references for both first and later duplicates.
- Returns a completion page that lets the user download the generated quality report, or shows a completion page explaining how to correct the CSV when parsing/validation fails.
Setup
- Import the workflow and use the n8n Form test/production URL from the upload step wherever you want users to submit CSVs.
- Review and adjust the audit settings (maxRows, nameAliases, emailAliases, and caseInsensitiveEmail) to match your CSV headers and desired duplicate-matching behavior.
- Ensure users upload a UTF-8, comma-separated .csv file with one header row and at least one customer record, and keep file size reasonable for your n8n instance limits.