Client Package Readiness Checker with Deduplication and Empty Batch Report
Loading workflow…
Workflow Description
This workflow processes a batch envelope containing client packages and checks company name, domain, and primary contact email. It normalizes emails, retains the first valid occurrence, classifies duplicates and rejected values, and flags external-domain addresses without deleting them. Each package is routed to ready or needs completion and receives a balanced-count report. Because the batch envelope remains present when its packages array is empty, the workflow emits an explicit missing-package report instead of ending silently.
How it works
- 1.Run the Manual Trigger to start the demonstration.
- 2.Configure Required Fields defines mandatory company fields.
- 3.Emit Sample Batch Envelope creates one envelope containing four fictional packages.
- 4.Validate Normalize and Dedupe checks fields, emails, domains, and duplicate occurrences.
- 5.Is Package Ready routes each result by its readiness condition.
- 6.The two Set nodes add the route status while retaining all other fields.
- 7.Merge Status Paths appends the two route outputs.
- 8.Build Guaranteed Readiness Reports standardizes and sorts the final reports.
Use cases
- Auditing new client data before an agency project begins.
- Cleaning contact lists before transfer to another system.
- Detecting incomplete packages and batches containing no clients.
Requirements
- The manual demonstration requires no credentials.
- Real input must be one envelope containing a packages array.
- The source must emit the envelope even when packages is empty.
- Each client package uses company and contacts, with contacts containing name, email, and role.
Setup and testing in n8n
- Import the JSON and run Manual Trigger; the four items should match expected_output.
- Verify that [email protected] and [email protected] are one duplicate pair and the first is retained.
- Verify that [email protected] remains in cleanContacts and is marked outside the domain.
- Set packages in the sample node to [] while preserving the envelope; one needs-completion report should be emitted.
- Try an empty or numeric email and confirm rejectedCount rises while countsBalanced remains true.
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (9)
Manual Trigger
Manual Trigger
Configure Required Fields
Set
Emit Sample Batch Envelope
Code
Validate Normalize and Dedupe
Code
Is Package Ready
If
Set Ready Status
Set
Set Needs Completion Status
Set
Merge Status Paths
Merge
Build Guaranteed Readiness Reports
Code
Setup and Input Contract
Sticky Note
Validation Rules
Sticky Note
Empty Batch Test Guide
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides