Bad Lead Filter Automation

Automatically clean up your CRM database by filtering invalid, duplicate, and inactive leads

Runs Daily at 2:00 AM
1

Workflow Flowchart

Daily 2AM Trigger
Extract All Leads
Validate Email Addresses
Check for Duplicates
Verify Company Status
Quality Check
Fails 2+ checks
Move to Bad Leads
Passes
Keep in Active DB
Generate Report
Send Team Notification
Process Complete
2

How It Works

1
Extract Leads

Pulls all contacts from your HubSpot CRM via API

2
Validate Emails

Checks each email with ZeroBounce for deliverability

3
Find Duplicates

Identifies duplicate entries by email and phone number

4
Verify Companies

Checks if company domains are still active

5
Clean & Report

Moves bad leads to a separate list and sends a summary

3

Configure Your Automation

Before You Start

Found in HubSpot Settings > Integrations > Private Apps

Get it from ZeroBounce dashboard

Leave empty to skip Slack notifications

Create a static list in HubSpot and copy its ID from the URL

Lead fails 2+ checks = marked as bad (1-3 recommended)

Where to send the daily cleanup report

Dry Run Mode

Preview changes without actually moving leads

🔒

We don't store any of your data. Everything you enter stays in your browser and the generated script runs locally on your machine.

4

Your Automation Code

bad-lead-filter.py

                
Built by Nova Codes