Skip to content
clay-core-workflow-a logo

Clay Core Workflow A: Lead Enrichment Pipeline

clay-core-workflow-a

Build a complete lead enrichment pipeline using Clay tables, webhooks,

SKILL.md

Full skill instructions

Clay Core Workflow A: Lead Enrichment Pipeline

Overview

Primary workflow for Clay: take a list of companies or contacts, push them into a Clay table via webhook, let Clay's enrichment columns fill in missing data (emails, titles, company info, tech stack), and export the enriched results to your CRM or outreach tool. This is the core use case for 90%+ of Clay users.

Prerequisites

  • Completed clay-install-auth setup
  • Clay table with webhook source configured
  • At least one enrichment provider connected (Apollo, Clearbit, Hunter, etc.)
  • Destination CRM or outreach tool (HubSpot, Salesforce, Instantly, etc.)

Instructions

Step 1: Design Your Clay Table Schema

In the Clay web UI, create a table with these column types:

ColumnTypePurpose
domainInput (webhook)Company domain to enrich
first_nameInput (webhook)Contact first name
last_nameInput (webhook)Contact last name
Company NameEnrichment (Clearbit/​Apollo)Auto-filled from domain
Employee CountEnrichment (Clearbit)Company headcount
IndustryEnrichment (Clearbit)Industry classification
Work EmailEnrichment (Waterfall)Verified work email
Job TitleEnrichment (Apollo/​PDL)Current title
LinkedIn URLEnrichment (Apollo)Profile link
ICP ScoreFormulaComputed fit score

Step 2: Set Up Waterfall Email Enrichment

In Clay UI, add a waterfall enrichment column:

  1. Click + Add Column > Find Work Email (Waterfall)
  2. Configure provider order (cheapest first):
    • Apollo (2 credits) -- highest coverage
    • Hunter.io (2 credits) -- strong for smaller companies
    • Prospeo (2 credits) -- European coverage
  3. Map input: first_name, last_name, domain
  4. Enable Stop on first result to save credits
  5. Enable Auto-run on new rows

Step 3: Push Leads into Clay via Webhook

// src/​workflows/​enrich-leads.ts
import { getClayClient } from '../​clay/​instance';

interface LeadInput {
  domain: string;
  first_name: string;
  last_name: string;
  source?: string;
}

async function enrichLeadList(leads: LeadInput[]): Promise<void> {
  const clay = getClayClient();

  // Validate and deduplicate before sending
  const cleaned = leads
    .filter(l => l.domain?.includes('.') && l.first_name && l.last_name)
    .filter((l, i, arr) =>
      arr.findIndex(x => x.domain === l.domain && x.first_name === l.first_name) === i
    );

  console.log(`Sending ${cleaned.length} leads to Clay (filtered ${leads.length - cleaned.length} invalid/​dupes)`);

  const result = await clay.sendBatch(cleaned, 200);
  console.log(`Sent: ${result.sent}, Failed: ${result.failed}`);

  if (result.errors.length > 0) {
    console.error('Failed rows:', result.errors);
  }
}

Step 4: Add ICP Scoring Formula

In Clay, add a Formula column named ICP Score:

// Clay formula syntax (similar to spreadsheet formulas)
// Score 0-100 based on company fit

LET(
  size_score, IF(Employee Count > 500, 30, IF(Employee Count > 100, 20, IF(Employee Count > 20, 10, 0))),
  industry_score, IF(OR(Industry = "Software", Industry = "Technology", Industry = "SaaS"), 30, IF(Industry = "Financial Services", 20, 10)),
  title_score, IF(OR(CONTAINS(Job Title, "VP"), CONTAINS(Job Title, "Director"), CONTAINS(Job Title, "Head")), 25, IF(CONTAINS(Job Title, "Manager"), 15, 5)),
  email_score, IF(ISNOTEMPTY(Work Email), 15, 0),
  size_score + industry_score + title_score + email_score
)

Step 5: Configure CRM Export

Add an HTTP API column to push high-scoring leads to your CRM:

  1. Click + Add Column > HTTP API
  2. Set conditional run: ICP Score >= 70 AND ISNOTEMPTY(Work Email)
  3. Configure the API call to your CRM:
{
  "method": "POST",
  "url": "https://api.hubapi.com/​crm/​v3/​objects/​contacts",
  "headers": {
    "Authorization": "Bearer {{HubSpot API Key}}",
    "Content-Type": "application/​json"
  },
  "body": {
    "properties": {
      "email": "{{Work Email}}",
      "firstname": "{{first_name}}",
      "lastname": "{{last_name}}",
      "company": "{{Company Name}}",
      "jobtitle": "{{Job Title}}"
    }
  }
}

Step 6: Monitor Enrichment Results

# Check your table's enrichment progress in the Clay UI
# Key metrics to watch:
# - Email find rate: target >60%
# - Company enrichment rate: target >85%
# - Average credits per row: target <10
# - ICP score distribution: should have clear A/​B/​C tiers

Error Handling

ErrorCauseSolution
Low email find rate (<40%)Bad input dataClean domains, remove personal email domains
Credits burning fastWaterfall hitting all providersEnable "stop on first result"
Duplicate rows in tableSame lead sent twiceDeduplicate before webhook submission
CRM push failingInvalid field mappingTest HTTP API column on single row first
Enrichment not runningAuto-run disabledEnable auto-run in column settings

Output

  • Enriched lead table with emails, titles, company data
  • ICP scores for lead prioritization
  • Qualified leads auto-pushed to CRM
  • Credit usage report for cost tracking

Resources

Next Steps

For AI-powered personalization and CRM sync, see clay-core-workflow-b.

More Sales & marketing skills

revops logo
Sales & marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View
lead-magnets logo
Sales & marketing

lead-magnets

Strategic planning and optimization for email capture offers and gated content.

53.3K 103.4K
View
directory-submissions logo
Sales & marketing

directory-submissions

Directory submissions: the foundation layer of distribution that passes backlinks and discovery surface area into your marketing pages.

53.3K 76.3K
View
gsap-timeline logo
Sales & marketing

gsap-timeline

Sequence and choreograph multi-step animations with precise timing control and nested timelines.

15.9K 58.4K
View
launch-strategy logo
Sales & marketing

launch-strategy

Structured framework for planning product launches, feature announcements, and go-to-market strategies.

53.3K 56.8K
View
gws-drive-upload logo
Sales & marketing

gws-drive-upload

Upload files to Google Drive with automatic MIME type detection and metadata.

31.2K 47.2K
View
ci-cd-and-automation logo
Sales & marketing

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

101.4K 43.2K
View
persona-team-lead logo
Sales & marketing

persona-team-lead

Team leadership persona with standup coordination, meeting prep, task delegation, and team communication.

31.2K 29.3K
View
recipe-find-large-files logo
Sales & marketing

recipe-find-large-files

Identify large Google Drive files consuming storage quota.

31.2K 29.2K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
Tribescaler logo
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View