Clay logo

LeadMagic has made more than one billion API calls with Clay and won The Unstoppable Wheel award.

Recap
LeadMagicDocs

LeadMagic CLI Workflows

Practical LeadMagic CLI workflows for local list cleanup, enrichment, hot folders, schedules, job changes, ICP scoring, outbound tools, and CRM sync.

Choose a starting point

If you want to…Start with
Explore interactivelylm chat
Repeat the same pipelinelm recipe
Automate drop folderslm watch
Run on a cadencelm schedule
Sequence outboundlm integrations instantly|smartlead|emailbison
Sync CRMlm integrations hubspot|salesforce
Catch moverslm job-change
Prioritize spendlm icp + then enrich
Use an IDE agentMCP setup

Playbooks

Turn a messy export into validated, enriched contacts.

Or in the interactive workspace:

Built-in recipes

RecipeStepsBest for
validate-and-exportload → validate → exportBounce protection
default-enrichload → clean → enrich emails → exportQuick enrichment
full-pipelineload → clean → validate → emails + mobiles → exportEnd-to-end with budget cap

In chat:

Whenever a new CSV lands, enrich it automatically.

Flow: inbound/ → processing/ → done/{timestamp}-{file}/ (or failed/ with error.log).

Defaults live under ~/.leadmagic/watch/. Pair with a recipe that has max_credits_per_run so spend stays bounded.

Use for weekly re-validation of active campaigns, job-change batches, or refreshing a champion list before outbound.

Enrich → validate → sequence without CSV download/upload.

In chat:

The CLI prefers SMTP-valid (or freshly found) emails and skips addresses already pushed to that campaign.

Typical automation: schedule a batch on your CRM export → export changers → lm find email at the new company → push to a “new role” Instantly campaign.

Use when you want funding, tech-stack shifts, or hiring surges without leaving the terminal. Results stay available locally for replay.

In the workspace: "score my contacts against the SaaS Series A ICP" or /icp score "SaaS Series A". Scoring uses AI usage credits, not enrichment credits. Enrich only high scores next.

Useful for TAM mapping, lookalike account research, and hiring-intent campaigns.

Same pattern for salesforce. Connect securely in the browser; push uses verified contacts that have not already synced.

In chat: "show a breakdown of contacts by state" or /query.

Interactive use stays on lm login. For scripts and CI:

Use --dry-run / recipe estimate before spending credits. Scoped keys are for programmatic API access. Sign in to LeadMagic CLI separately.

Next Steps