<< All versions
Local businesses (
Skill v1.0.1
currentAutomated scan100/100leadmagic/leadmagic-claude-plugin/bulk-enrichment
+1 new
──Details
PublishedOctober 24, 2026 at 06:21 PM
Content Hashsha256:ab2a36addeac9e32...
Git SHA854c2eed590e
Bump Typepatch
──Files
Files (1 file, 4.0 KB)
SKILL.md4.0 KBactive
SKILL.md · 68 lines · 4.0 KB
version: "1.0.1" name: bulk-enrichment description: Credit-safe CSV and list enrichment with LeadMagic bulk jobs — balance, preview, confirm, submit, watch, export, and recover failed rows. Use when the user has a CSV/JSON/JSONL file, more than 5 rows to enrich, or wants a local-business list built.
Bulk enrichment
Trigger
Use this skill when the user:
- has a CSV/JSON/JSONL file,
- has more than 5 rows to enrich,
- asks to queue bulk enrichment, or
- wants a list of local businesses.
If they want to see and iterate on the results in a grid, use the sheets skill instead.
Spend rules
- Free first. Call
check_credit_balance, thenpreview_costonce the product and row count are known. State the projected spend. - Use bulk, never per-row loops. Never loop single-contact tools (
find_work_email,enrich_contact, …) across a file. - Confirm with the token. Bulk submits, restarts, and resumes answer first with
needs_confirmation, a summary, and aconfirmation_token. Nothing has run yet. Show the summary, and repeat the identical call with the token only after the user agrees. Never invent a token. - Report actuals. Don't re-run unchanged rows. Misses are usually free.
Submit
- A file attached in Claude →
process_attached_csvonly. The widget uploads and submits on its own, so do not callresolve_bulk_upload_mappingorsubmit_*after it. - Inline CSV, rows, or an HTTPS `file_url` →
submit_detected_bulk_job. - Common enrichments:
work_email_finder,email_validation,mobile_finder(only when the user asks for phones),job_change,company_firmographics. - For profile URL → work email, pick the profile-to-email option from the tool's
enrichmentlist. - For larger files, prefer
file_urlwithformat: "auto"over pasting CSV text into the call.
Local businesses (find_local_leads)
find_local_leads builds a list of local businesses for business types across cities or US ZIP codes. Example: keywords: ["dentist"], locations: ["Austin, TX", "78704"].
Cost:
- Each keyword × location pair is one search at 200 credits, charged up front.
- A run can have at most 100 searches.
Steps:
- The first call charges nothing. It resolves the locations and returns the search grid, the cost, and a
confirmation_token. Show the user the grid and the cost. - Call again with the same arguments plus the token, only after the user approves.
- Results arrive as a bulk job. Watch and read it the same way as any other bulk job (below).
Watch progress
After submitting:
- Call
get_bulk_job_statusonce. - Then use
watch_bulk_job_progress(timeout_secondsup to 30) instead of blind polling. It returns the latest status and whether the watch timed out; repeat it to keep watching. - If you poll
get_bulk_job_statusdirectly instead, wait at least 45 seconds between calls.
For history and diagnostics, use list_bulk_jobs, get_bulk_job_events, and get_bulk_job_logs.
Results
- Read rows with
get_bulk_job_rows: up to 500 rows per page, paged withoffset/cursor. Addstatus: "failed"to see only failures. - Error reasons come from
get_bulk_job_errors. - Export with
export_bulk_job, which returns CSV up to 4 MB. For bigger jobs, pageget_bulk_job_rows.
Control
pause_bulk_jobstops processing. It needs no approval.resume_bulk_jobprocesses the remaining rows and charges them, so it needs confirmation. If a job paused because credits ran out, top up (billing), then resume.restart_bulk_jobre-queues rows and charges them again, so it needs confirmation.- It defaults to
mode: "failed_only"; completed results are kept. - Restart only after the failed rows' inputs have been fixed.
Output
- Job id, status, and rows processed / failed
- Credits: estimate vs actual
- A summary of row successes and errors, with the top error reasons
- The next action (fix and restart failures, export, or move the results into a sheet)