See llms.txt for all machine-readable content.

Back to Templates

Audit customer CSVs for missing fields and duplicate emails with n8n Forms

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

  1. Receives a CSV file upload through an n8n Form.
  2. Applies configurable audit rules such as maximum record count, accepted header aliases for name and email, and case-insensitive email matching.
  3. 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.
  4. 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.
  5. 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.
  6. 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

  1. Import the workflow and use the n8n Form test/production URL from the upload step wherever you want users to submit CSVs.
  2. Review and adjust the audit settings (maxRows, nameAliases, emailAliases, and caseInsensitiveEmail) to match your CSV headers and desired duplicate-matching behavior.
  3. 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.