AGENT SKILLBY EXA-LABS
Lead generation with exa agent
AT A GLANCE
Lead generation with exa agent is a go-to-market skill for AI agents. Generate enriched lead lists using Exa Agent. It is published by exa-labs in the exa-labs/agent-skills GitHub repository (41 stars), which does not specify a license. Install it with: npx skills add exa-labs/agent-skills --skill lead-generation
- SOURCE REPOSITORY
- exa-labs/agent-skills (opens GitHub in a new tab)
- REPO STARS
- SOURCE REPOSITORY
- LICENSE
- Not specifiedCHECK THE REPO
- CATEGORIES
- SKILL.MD SIZE
- 7.6 KB185 LINES
QUICK ANSWER
- WHAT IT IS01
- Generate enriched lead lists using Exa Agent. Finds companies matching an ICP, enriches with signals/news/scores, and outputs CSV. Its edge is a particular angle on paid media, giving the agent tighter constraints than a plain lead generation with exa agent request.
- INPUTS02
- Context for paid media: your goals, audience, constraints, and any source material the skill asks for.
- OUTPUT03
- A ready-to-use result for paid media: the analysis, copy, or recommendations the agent produces.
INSTALL
One command adds this skill from its source repository.
npx skills add exa-labs/agent-skills --skill lead-generationREAD THE SKILL.MD BELOW BEFORE YOU RUN IT. SKILLS INSTRUCT YOUR AGENT.
SKILL.MD
The full file, as published in the source repository. Copy it, download it or open it on GitHub.
ON THIS PAGE · 11
Lead Generation with Exa Agent#
Generate enriched lead lists using the Exa Agent API. An Agent run is an asynchronous, multi-step web research task: you describe the list you want plus an output schema, and Exa handles query decomposition, searching, verification, enrichment, and structured output internally. You do NOT need to orchestrate parallel searches, subagents, or manual deduplication.
For very large or continuously maintained lead lists with per-item verification, consider Exa Websets instead: https://docs.exa.ai/websets/api/overview (opens in a new tab)
Prerequisites#
This skill requires the Exa MCP server with the Agent tool enabled. Use the agent_tools URL selection alias to enable agent_run.
If the Agent tools are not available, tell the user:
You need the Exa MCP server installed with the Agent tools and your API key. Instructions: https://docs.exa.ai/reference/exa-mcp (opens in a new tab)
Then stop.
Tool Restriction#
Use agent_run, plus Write and Bash (for CSV output). Do NOT use generic web search for the lead list itself.
Workflow#
1. Confirm the ICP with the user (one small Agent run if research is needed)
2. Call `agent_run` with an outputSchema
3. If the result is still running, call `agent_run` again with its `runId`
4. Read `output.structured` from the `agent_run` result
5. Write the CSV
6. Optional: expand with follow-up runs (previousRunId + input.exclusion)Step 1: Understand the ICP#
When the user says something like "Make a list of 200 leads for [company]", first establish the Ideal Customer Profile. If the user already described the ICP, confirm it. If not, run one small Agent run to research it:
agent_run {
"query": "Research {company_name}: what they sell, who their existing customers are, and what their ideal customer profile is.",
"effort": "low",
"outputSchema": {
"type": "object",
"properties": {
"company_description": { "type": "string", "description": "What the company does in 2 sentences or less" },
"icp_description": { "type": "string", "description": "Concise ICP description that clearly defines target companies" },
"sub_verticals": { "type": "array", "maxItems": 10, "items": { "type": "string" }, "description": "Sub-verticals breaking down the ICP" },
"useful_enrichments": { "type": "array", "maxItems": 8, "items": { "type": "string" }, "description": "Enrichment columns useful for filtering high-signal companies" }
},
"required": ["company_description", "icp_description", "sub_verticals", "useful_enrichments"]
}
}Present the ICP to the user and confirm:
- Is the ICP description accurate?
- Any companies to exclude (competitors, existing customers)?
- How many leads do they want? (default 200)
- Any specific enrichment columns they care about?
Step 2: Create the Lead-Gen Run#
Design an outputSchema with a bounded companies array. Keep schemas small, flat, and explicit; always bound arrays with maxItems.
Core fields to always include:
company_name(string)website(string)product_description(string, "in 12 words or less")icp_fit_score(integer, 1-10)icp_fit_reasoning(string, "compelling one-liner in 20 words or less")
Add enrichment fields tailored to the campaign (funding stage, headcount range, headquarters, hiring signals, etc.). Give string fields a length hint in their description to keep CSV output clean.
Use the run inputs for the pieces the old manual pipeline handled by hand:
query— describe the list: the ICP, geography, stage, and how many companies you wantoutputSchema— the exact structure back, withmaxItemsbounding the companies arraysystemPrompt— scoring rules, source preferences, dedup/exclusion emphasisinput.exclusion— companies to avoid (competitors, existing customers, results from earlier runs)effort—"low"by default;"auto","high", or"xhigh"for large or hard lists
Example:
agent_run {
"query": "Find 100 companies matching this ICP: {icp_description}. Prioritize {sub_verticals}. For each company, score ICP fit 1-10 for {user_company}.",
"effort": "low",
"systemPrompt": "Prefer official company sites and recent funding announcements. Do not include duplicates or subsidiaries of the same parent company.",
"input": {
"exclusion": [
{ "company_name": "{competitor_1}" },
{ "company_name": "{existing_customer_1}" }
]
},
"outputSchema": {
"type": "object",
"properties": {
"companies": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"company_name": { "type": "string" },
"website": { "type": "string", "format": "uri" },
"product_description": { "type": "string", "description": "in 12 words or less" },
"icp_fit_score": { "type": "integer", "description": "1-10" },
"icp_fit_reasoning": { "type": "string", "description": "one-liner in 20 words or less" }
},
"required": ["company_name", "website", "product_description", "icp_fit_score", "icp_fit_reasoning"]
}
}
},
"required": ["companies"]
}
}agent_run returns the completed result when possible. If it returns status: "running" with an agent_run_... ID, save the ID and continue with agent_run using only runId.
Step 3: Wait and Read Output#
- If the run is still running, call
agent_runwith itsrunIduntiloutputReadyis true or the run reaches a terminal status (failedorcancelled). - Read the companies from
output.structured, citations fromoutput.grounding, and the run cost fromcostDollarsin theagent_runresult.
Do not paste the full raw output into the conversation — go straight to CSV.
Step 4: Write the CSV#
Write output.structured.companies to {target_company}_leads_{YYYY-MM-DD}.csv, sorted by icp_fit_score descending. Join any array fields with " | ". Use Python's csv.writer (handles quoting/escaping) via Bash, or Write directly for small lists.
Print a summary:
## Lead Generation Complete
- Total leads: {count}
- ICP score distribution: 8-10: {N} | 5-7: {N} | 1-4: {N}
- Run ID: {agent_run_id}
- Cost: ${costDollars}
- Output: {filename}Step 5: Expanding the List#
If the user wants more leads than one run returned:
- Create a new follow-up run with
previousRunIdset to the completed run's ID, asking for additional companies - Put the company records already collected into
input.exclusionso the new run avoids them - Append the new results to the CSV and re-deduplicate by normalized company name (strip "Inc"/"Ltd"/etc., case-insensitive)
For lists in the many hundreds, run a few runs sequentially this way rather than one giant run, and confirm scope with the user first: "This will require ~{N} Agent runs. Proceed?"
Handling Failures#
- If a run ends
failed, read the error from theagent_runresult, adjust the query or schema, and retry once with different wording - If a client cancellation is needed, abort the in-progress
agent_runcall - If results are consistently below the requested count, narrow the ICP into 2-3 sub-vertical runs instead of one broad run
MCP Configuration#
Requires an Exa API key. Get yours at https://dashboard.exa.ai/api-keys (opens in a new tab)
{
"servers": {
"exa": {
"type": "http",
"url": "https://mcp.exa.ai/mcp?tools=agent_tools",
"headers": {
"x-api-key": "YOUR_EXA_API_KEY"
}
}
}
}References#
- Exa Agent guide: https://docs.exa.ai/reference/agent-api-guide (opens in a new tab)
- Exa MCP setup: https://docs.exa.ai/reference/exa-mcp (opens in a new tab)
- Websets (verified list-building at scale): https://docs.exa.ai/websets/api/overview (opens in a new tab)
- Full docs for LLMs: https://docs.exa.ai/llms.txt (opens in a new tab)
FAQ
07 QUESTIONS
01What is the Lead generation with exa agent agent skill?
Generate enriched lead lists using Exa Agent. Finds companies matching an ICP, enriches with signals/news/scores, and outputs CSV. It is listed under go-to-market in the 100xLab agent skills directory.
02How do I install Lead generation with exa agent in Cursor, Claude Code, or Codex?
Run npx skills add exa-labs/agent-skills --skill lead-generation in the project where you want it, then ask your agent for the skill by name. The --skill flag installs only Lead generation with exa agent, not every skill in the repository.
03What does the Lead generation with exa agent SKILL.md cover?
The SKILL.md includes sections on Prerequisites, Tool Restriction, Workflow, Step 1: Understand the ICP, Step 2: Create the Lead-Gen Run and Step 3: Wait and Read Output. Read the full text on this page or in plain markdown at /resources/agent-skills/exa-labs-agent-skills--lead-generation--1cew2bu/raw.
04Which agents can use Lead generation with exa agent?
Lead generation with exa agent installs with the cross-agent skills installer (npx skills add), which sets it up for agents such as Claude Code, Cursor and Codex. Each agent loads the SKILL.md when you ask for the skill by name.
05What license is Lead generation with exa agent under?
No license was detected on the exa-labs/agent-skills repository, so the license is not specified. Check with exa-labs before you redistribute or build on the skill.
06Is Lead generation with exa agent free to use?
Reading and installing Lead generation with exa agent costs nothing, because it is published in a public GitHub repository. The repository specifies no license, so ask exa-labs before you reuse or redistribute it.
07Where is the source of Lead generation with exa agent?
Lead generation with exa agent comes from https://github.com/exa-labs/agent-skills, which has 41 GitHub stars. The SKILL.md is at https://github.com/exa-labs/agent-skills/blob/HEAD/skills/lead-generation/SKILL.md. The author is exa-labs.
Need an agent workflow built around your stack?
Tell us the workflow you want automated. We reply within 4 working hours (IST).
ATTRIBUTION
Lead generation with exa agent was written by its original authors and is published in exa-labs/agent-skills (opens GitHub in a new tab) under no license stated in the repository. All rights stay with the original authors.
100xLab did not write, maintain or endorse this skill. This page lists it for discovery. Repo stars belong to the source repository, not to the skill. Review any skill before you install it.