import_prospects
Import prospects from CSV or XLSX files into a campaign, deduplicating existing contacts and scoring each lead for outreach.
Instructions
Import prospects from a CSV/XLSX file into a campaign.
Point HeyLead at a .csv or .xlsx file (or paste CSV text) and it will parse
it, deduplicate against existing contacts and LinkedIn connections, score
each prospect, and add them to the campaign for outreach. Every row of the
file gets a disposition — imported, skipped:<reason>, or deduped-against a
specific earlier row — and the totals are reconciled against the file's row
count, so a partial import can never be reported as a success.
Supports CSV import, XLSX/spreadsheet import, bulk prospect upload, lead
list import, and contact list management for LinkedIn outreach campaigns.
Args:
campaign_id: Campaign to import into. Leave empty for the most recent.
csv_data: CSV text with headers. Only use for a handful of rows —
prefer file_path, which has no size limit. Ignored if file_path
is given.
linkedin_enrich: If true, fetch full LinkedIn profiles for imported
prospects (slower but better personalization). Default: false.
file_path: Path to a .csv or .xlsx file on disk. Preferred over
csv_data — a large lead list must never be pasted through this
argument, since anything that does not fit is silently lost.
sheet: Worksheet name for .xlsx files. Defaults to the first sheet.
dry_run: If true, report the full per-row disposition without creating
any contacts or outreaches and without fetching any LinkedIn
profiles — linkedin_enrich is not run. Your own connection list is
still read, so the preview matches the real import. Default: false.
Columns are auto-detected (case-insensitive): Name, Title, Company,
LinkedIn URL, Email, Location. Each row needs Name + at least one of
Title, Company, or LinkedIn URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| dry_run | No | ||
| csv_data | No | ||
| file_path | No | ||
| campaign_id | No | ||
| linkedin_enrich | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |