| name | clay-data-handling |
| description | Implement GDPR/CCPA-compliant data handling for Clay enrichment pipelines.
Use when handling PII from enrichments, implementing data retention policies,
or ensuring regulatory compliance for Clay-enriched lead data.
Trigger with phrases like "clay data", "clay PII", "clay GDPR",
"clay data retention", "clay privacy", "clay CCPA", "clay compliance".
|
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.14.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","clay","compliance"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Clay Data Handling
Overview
Manage lead data through Clay enrichment pipelines in compliance with GDPR, CCPA, and data privacy best practices. Clay enriches records with PII (emails, phone numbers, LinkedIn profiles, job titles), requiring careful handling of consent, retention, and export controls.
Prerequisites
- Clay account with enriched tables
- Understanding of GDPR/CCPA requirements for B2B data
- Data retention policy defined by your legal team
- CRM or database for enriched data storage
Instructions
Step 1: Classify Enriched Data by Sensitivity
enum DataSensitivity {
PUBLIC = 'public',
BUSINESS = 'business',
PERSONAL = 'personal',
RESTRICTED = 'restricted'
}
const FIELD_CLASSIFICATION: Record<string, DataSensitivity> = {
company_name: DataSensitivity.PUBLIC,
industry: DataSensitivity.PUBLIC,
employee_count: DataSensitivity.PUBLIC,
domain: DataSensitivity.PUBLIC,
work_email: DataSensitivity.BUSINESS,
job_title: .,
: .,
: .,
: .,
: .,
: .,
: .,
};
(): <, []> {
: <, []> = {
: [], : [], : [], : [],
};
( [field, value] .(row)) {
(value == ) ;
sensitivity = [field] || .;
classified[sensitivity].(field);
}
classified;
}