Skip to content
AI Agents

Client Package Readiness Checker with Deduplication and Empty Batch Report

9 nodes 80 5 Manual trigger
Download

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. 1.Run the Manual Trigger to start the demonstration.
  2. 2.Configure Required Fields defines mandatory company fields.
  3. 3.Emit Sample Batch Envelope creates one envelope containing four fictional packages.
  4. 4.Validate Normalize and Dedupe checks fields, emails, domains, and duplicate occurrences.
  5. 5.Is Package Ready routes each result by its readiness condition.
  6. 6.The two Set nodes add the route status while retaining all other fields.
  7. 7.Merge Status Paths appends the two route outputs.
  8. 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

  1. Import the JSON and run Manual Trigger; the four items should match expected_output.
  2. Verify that [email protected] and [email protected] are one duplicate pair and the first is retained.
  3. Verify that [email protected] remains in cleanContacts and is marked outside the domain.
  4. Set packages in the sample node to [] while preserving the envelope; one needs-completion report should be emitted.
  5. 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

Manual Trigger Set Code If Merge

Details

Trigger Manual trigger
Nodes 9
Apps 5
Views 80
Downloads 5

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

/

Manual Trigger

Manual Trigger

#1

Configure Required Fields

Set

#2

Emit Sample Batch Envelope

Code

#3

Validate Normalize and Dedupe

Code

#4

Is Package Ready

If

#5

Set Ready Status

Set

#6

Set Needs Completion Status

Set

#7

Merge Status Paths

Merge

#8

Build Guaranteed Readiness Reports

Code

#9

Setup and Input Contract

Sticky Note

#10

Validation Rules

Sticky Note

#11

Empty Batch Test Guide

Sticky Note

#12
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime