Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scale Clay enrichment pipelines for high-volume processing (10K-100K+ leads/month). Use when planning capacity for large enrichment runs, optimizing batch processing, or designing high-volume Clay architectures. Trigger with phrases like "clay scale", "clay high volume", "clay large batch", "clay capacity planning", "clay 100k leads", "clay bulk enrichment".
.claude/skills/jeremylongshore-clay-load-scale/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 83% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 68% | 0% |
Strategies for processing 10K-100K+ leads through Clay monthly. Clay is a hosted platform -- you can't add servers. Scaling focuses on: table partitioning, webhook management, batch submission pacing, credit budgeting at scale, and multi-table architectures.
typescript// src/clay/capacity-planner.ts interface CapacityPlan { monthlyLeads: number; creditsPerLead: number; totalCreditsNeeded: number; planRequired: string; estimatedMonthlyCost: number; webhooksNeeded: number; // Each webhook has 50K lifetime limit tablesRecommended: number; } function planCapacity(monthlyLeads: number, creditsPerLead = 6): CapacityPlan { const totalCredits = monthlyLeads * creditsPerLead; // Determine plan let plan: string, cost: number; if (totalCredits <= 2500) { plan = 'Launch ($185/mo)'; cost = 185; } else if (totalCredits <= 6000) { plan = 'Growth ($495/mo)'; cost = 495; } else { plan = `Enterprise (custom pricing for ${totalCredits} credits/mo)`; cost = 495 + Math.ceil((totalCredits - 6000) / 1000) * 50; // Rough estimate } // With own API keys: 0 data credits, only actions consumed console.log(`TIP: With own API keys, you need 0 Data Credits.`); console.log(` Only ${monthlyLeads} Actions needed (Growth plan includes 40K).`); return { monthlyLeads, creditsPerLead, totalCreditsNeeded: totalCredits, planRequired: plan, estimatedMonthlyCost: cost, webhooksNeeded: Math.ceil(monthlyLeads / 50_000 * 12), // Annual webhooks needed tablesRecommended: Math.ceil(monthlyLeads / 10_000), // ~10K rows per table for manageability }; } // Example const plan = planCapacity(50_000); console.log(plan); // Monthly leads: 50,000 // Credits needed: 300,000 (or 0 with own API keys) // Webhooks needed: 12/year // Tables recommended: 5
typescript// src/clay/batch-processor.ts import { Queue, Worker } from 'bullmq'; import Redis from 'ioredis'; const redis = new Redis(process.env.REDIS_URL!); // Create a queue for Clay webhook submissions const clayQueue = new Queue('clay-enrichment', { connection: redis }); interface EnrichmentJob { leads: Record<string, unknown>[]; webhookUrl: string; batchId: string; priority: 'high' | 'normal' | 'low'; } // Submit a batch for processing async function queueBatch( leads: Record<string, unknown>[], webhookUrl: string, priority: 'high' | 'normal' | 'low' = 'normal', ): Promise<string> { const batchId = `batch-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`; // Split into chunks of 100 for manageable processing const chunks = []; for (let i = 0; i < leads.length; i += 100) { chunks.push(leads.slice(i, i + 100)); } for (let i = 0; i < chunks.length; i++) { await clayQueue.add(`${batchId}-chunk-${i}`, { leads: chunks[i], webhookUrl, batchId, priority, }, { priority: priority === 'high' ? 1 : priority === 'normal' ? 5 : 10, attempts: 3, backoff: { type: 'exponential', delay: 5000 }, }); } console.log(`Queued ${leads.length} leads in ${chunks.length} chunks (batch: ${batchId})`); return batchId; } // Worker processes queued batches const worker = new Worker<EnrichmentJob>('clay-enrichment', async (job) => { const { leads, webhookUrl } = job.data; let sent = 0, failed = 0; for (const lead of leads) { try { const res = await fetch(webhookUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(lead), }); if (res.status === 429) { const retryAfter = parseInt(res.headers.get('Retry-After') || '60'); console.log(`Rate limited. Waiting ${retryAfter}s...`); await new Promise(r => setTimeout(r, retryAfter * 1000)); // Retry this lead const retry = await fetch(webhookUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(lead), }); if (retry.ok) sent++; else failed++; } else if (res.ok) { sent++; } else { failed++; } } catch { failed++; } // Pace submissions: 200ms between rows await new Promise(r => setTimeout(r, 200)); } return { sent, failed, total: leads.length }; }, { connection: redis, concurrency: 1 });
For large volumes, split data across multiple Clay tables:
yaml# Large-volume table strategy tables: outbound-leads-tech: focus: "Technology companies" filter: "industry IN ('Software', 'SaaS', 'Technology')" enrichment: Full waterfall + Claygent volume: ~5K rows/month outbound-leads-finance: focus: "Financial services companies" filter: "industry IN ('Financial Services', 'Banking', 'Insurance')" enrichment: Full waterfall (no Claygent — regulated data) volume: ~3K rows/month inbound-leads: focus: "Website form submissions" source: Webhook from web forms enrichment: Company lookup + email verification only volume: ~2K rows/month auto_delete: true # Stream-through: enrich, push to CRM, delete event-attendees: focus: "Conference/webinar registrants" source: CSV import enrichment: Full waterfall + AI personalization volume: ~1K rows/month (batch after events)
typescript// src/clay/webhook-rotation.ts class WebhookRotator { private webhooks: { url: string; count: number; maxCount: number }[]; private currentIndex = 0; constructor(webhookUrls: string[], maxPerWebhook = 45_000) { this.webhooks = webhookUrls.map(url => ({ url, count: 0, maxCount: maxPerWebhook, // Leave 5K buffer under 50K limit })); } getNextWebhook(): string { // Find a webhook with remaining capacity for (let i = 0; i < this.webhooks.length; i++) { const idx = (this.currentIndex + i) % this.webhooks.length; if (this.webhooks[idx].count < this.webhooks[idx].maxCount) { this.currentIndex = idx; return this.webhooks[idx].url; } } throw new Error('All webhooks exhausted! Create new webhooks in Clay.'); } recordSubmission() { this.webhooks[this.currentIndex].count++; } getStatus() { return this.webhooks.map((w, i) => ({ index: i, remaining: w.maxCount - w.count, percentUsed: ((w.count / w.maxCount) * 100).toFixed(1), })); } } // Usage: rotate across multiple webhooks for the same table const rotator = new WebhookRotator([ process.env.CLAY_WEBHOOK_URL_1!, process.env.CLAY_WEBHOOK_URL_2!, process.env.CLAY_WEBHOOK_URL_3!, ]);
For high-volume use cases where Clay enriches and pushes data onward, enable auto-delete to keep tables lean:
In Clay UI: Table Settings > Auto-delete
When enabled, Clay enriches incoming webhook data, sends results via HTTP API column to your destination, then deletes the rows. This keeps Clay functioning as a streaming enrichment service rather than a database.
| Issue | Cause | Solution | |-------|-------|----------| | Processing stuck at 400/hr | Explorer plan throttle | Upgrade to Growth (no throttle) | | Webhook exhausted (50K) | High volume | Rotate to new webhook, implement rotator | | Queue backing up | Webhook rate limiting | Reduce concurrency, increase delay | | Table too large to manage | 10K+ rows | Split into multiple focused tables | | Credit overrun | Uncontrolled batch size | Add budget check before queueing |
For reliability patterns, see clay-reliability-patterns.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | pass→pass | 14,179 | 2,368 | -83% | 1 | 1 | 0% | 1,781 | 2,717 | +53% | 0 | 0 | — |
case-01 | fail→fail | 17,980 | 13,915 | -23% | 1 | 1 | 0% | 3,426 | 5,680 | +66% | 0 | 0 | — |
case-02 | fail→fail | 20,041 | 17,723 | -12% | 1 | 1 | 0% | 4,004 | 5,880 | +47% | 0 | 0 | — |
case-03 | fail→fail | 18,711 | 16,850 | -10% | 1 | 1 | 0% | 3,875 | 5,923 | +53% | 0 | 0 | — |
case-04 | pass→pass | 10,221 | 5,956 | -42% | 1 | 1 | 0% | 1,580 | 3,347 | +112% | 0 | 0 | — |
case-05 | fail→pass | 15,075 | 8,244 | -45% | 1 | 1 | 0% | 2,171 | 3,661 | +69% | 0 | 0 | — |
case-06 | pass→pass | 15,237 | 13,706 | -10% | 1 | 1 | 0% | 2,628 | 4,949 | +88% | 0 | 0 | — |
case-07 | fail→pass | 16,118 | 12,258 | -24% | 1 | 1 | 0% | 2,564 | 4,335 | +69% | 0 | 0 | — |
case-19 | fail→pass | 14,956 | 10,796 | -28% | 1 | 1 | 0% | 2,314 | 4,232 | +83% | 0 | 0 | — |
case-08 | fail→pass | 12,004 | 9,132 | -24% | 1 | 1 | 0% | 2,046 | 3,847 | +88% | 0 | 0 | — |
case-09 | fail→fail | 13,281 | 7,865 | -41% | 1 | 1 | 0% | 2,780 | 3,867 | +39% | 0 | 0 | — |
case-10 | fail→pass | 18,764 | 12,800 | -32% | 1 | 1 | 0% | 2,842 | 4,783 | +68% | 0 | 0 | — |
case-11 | fail→pass | 12,607 | 3,224 | -74% | 1 | 1 | 0% | 2,090 | 2,957 | +41% | 0 | 0 | — |
case-12 | fail→pass | 14,196 | 7,051 | -50% | 1 | 1 | 0% | 2,425 | 3,454 | +42% | 0 | 0 | — |
case-14 | pass→pass | 14,636 | 6,305 | -57% | 1 | 1 | 0% | 2,214 | 3,347 | +51% | 0 | 0 | — |
case-15 | fail→pass | 14,116 | 3,329 | -76% | 1 | 1 | 0% | 1,651 | 2,918 | +77% | 0 | 0 | — |
case-16 | fail→fail | 14,547 | 18,624 | +28% | 1 | 1 | 0% | 2,431 | 5,522 | +127% | 0 | 0 | — |
case-17 | pass→pass | 10,496 | 5,981 | -43% | 1 | 1 | 0% | 1,735 | 3,515 | +103% | 0 | 0 | — |
case-18 | pass→pass | 16,010 | 13,835 | -14% | 1 | 1 | 0% | 2,328 | 4,597 | +97% | 0 | 0 | — |
case-20 | fail→fail | 16,091 | 19,396 | +21% | 1 | 1 | 0% | 2,780 | 5,904 | +112% | 0 | 0 | — |
case-21 | fail→fail | 18,778 | 23,112 | +23% | 1 | 1 | 0% | 3,558 | 6,820 | +92% | 0 | 0 | — |
case-22 | fail→fail | 21,120 | 14,357 | -32% | 1 | 1 | 0% | 3,607 | 5,109 | +42% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.