Apollo agent find prospects
Turn a natural-language description of who to target (an ICP, persona, lookalike, or a
"find me…" ask) into the right Apollo search and return a matched list of people or
companies. This agent has intricate knowledge of which Apollo filters exist and are
supported, translates plain language into them, escalates from structured filters to
semantic search to AI research when a plain filter set can't capture the intent, and can
research/qualify prospects or accounts before returning results.
## WHEN TO USE
- The request is natural language and the right filters must be inferred — EVEN IF the
mapping feels obvious ("hospitals", "restaurants", "law firms" are still inferred
keyword/industry choices, not values the caller handed you). A location or one obvious
attribute inside an otherwise plain-language ask does not make it structured.
- Prospects/accounts must be researched or qualified, or the ask is similarity-based
("companies like X", "like my best customers").
- The user asks a persona/targeting question ("who should I be talking to?", "who buys
X?") — route it here instead of answering from general knowledge: the agent grounds
the answer in Apollo's live data and the team's profile and returns real people, not
generic advice.
- The ask is vague ("help me find prospects for my product") — route it here AS-IS
rather than first interrogating the user for details: the agent grounds vague asks in
the team's saved ICP & product profile (Context Center) and asks its own clarifying
question only if it truly needs one.
- The request chains a company search into a people-at-those-companies search (or vice
versa) — the dedicated search tools only ever run once against one query each and cannot
chain, so that orchestration is this agent's job even if each half looks simple.
- The user wants records exported to a CSV or spreadsheet file — a saved list, or the
results of a search ("export my list to CSV", "find X and give me a spreadsheet").
There is no native contacts/accounts export tool; this agent runs Apollo's own CSV
export (all columns, no paging) and returns a download link. Do NOT page through
`apollo_contacts_search` / `apollo_mixed_*` to assemble the file yourself.
## WHEN NOT TO USE
- You (the calling agent) ALREADY have a concrete, structured filter set — explicit person
titles, seniorities, locations, industries, employee/revenue ranges, technologies,
keywords, or company domains handed to you (e.g. in structured/JSON form) that maps 1:1
onto the search API → call `apollo_mixed_people_api_search` (people) or
`apollo_mixed_companies_search` (companies) directly; they are faster and deterministic.
A plain-language request is NOT a structured filter set even when some of its words could
be pasted into a keyword filter: if you would have to choose or expand keyword tags,
decide keyword-vs-industry mappings, or translate a product/niche description into
filters, that is filter inference — route it here.
- Deterministic data operations → the dedicated tool:
field enrichment of 10 or fewer named people, or of companies → `apollo_people_match`,
`apollo_people_bulk_match`, `apollo_organizations_enrich` (more than 10 people or a
search's results → `apollo_agent_bulk_enrich`);
contact/account create/update → `apollo_contacts_*`, `apollo_accounts_*`;
mechanical sequence create/update/search/activate → `apollo_sequences_*`,
`apollo_emailer_campaigns_*` (AI drafting → `apollo_agent_draft_sequence_copy`;
improving an existing sequence's results → `apollo_agent_optimize_sequences`);
tasks → `apollo_tasks_*`; deals → `apollo_deals_*`;
a single structured metric pull → `apollo_analytics_sync_report`;
email bounce/spam/send status → `apollo_emailer_messages_search`,
`apollo_emailer_messages_email_send_status`;
mailboxes/senders/limits → `apollo_email_accounts_index`;
job postings → `apollo_organizations_job_postings`;
credit balance → `apollo_usage_stats_credit_usage_stats`, `apollo_users_api_profile`;
Context Center (ICP/product) edits → `apollo_context_center_*`.
## HOW TO CALL — PASS THE USER'S REQUEST VERBATIM
Set `instruction` to the user's request in the user's own words, unmodified. Do NOT
paraphrase, expand, "clarify", add inferred filters/titles/ranges/synonyms, or restate it
in filter vocabulary — this agent interprets raw user language against Apollo's live data
and the team's profile better than any upstream rewrite, and a rewrite locks the search
into YOUR interpretation, silently narrowing or skewing results. Appending your own
characterization of named companies, personas, or industries counts as a rewrite — only
facts the user stated in their own words qualify as context. Do NOT ask for specific
output fields or formats; the agent decides what to return, and you can follow up on the
same `task_id` for more. See the `instruction` parameter for the full rules.
Call it without asking the user to confirm first, including find-and-enrich asks: the call
costs nothing, and the Agent quotes any credit cost and waits for the user's approval to spend.
## WHAT IT RETURNS
Narrative messages (polled via `task_id`): the agent explains how it interpreted the
request, gives a plain-English summary of the filters it applied and the result count,
and includes fenced JSON blocks with (a) a link to the full result set in Apollo (the
URL encodes the chosen filters) and (b) a small preview of matched people/companies —
names, title/company or domain, LinkedIn, and Apollo record URLs (each record URL
contains the record's Apollo id). Consume the parts you need — cite the preview, give
the user the results link, or reuse the record URLs/ids with other `apollo_*` tools. If
the user wants more detail, different fields, or a refinement, REPLY on the same
`task_id` instead of pre-specifying output up front.
For an export, a fenced JSON block titled "CSV Export · <records>" reports it, and once the
file is ready it appears in `artifacts[]`: give the user that item's `url`, a direct download
that needs no login. The block's `action.url` opens Apollo and needs an Apollo login. The
export can arrive while the agent is still working (`next_action` `poll_again`).
To enrich the people found, REPLY on this `task_id` with `apollo_agent_bulk_enrich`; the Agent
keeps the found set.
## EXAMPLES
- "Find the right decision-makers to pitch my DevOps product to." (ICP → audience)
- "Export the accounts in my Q4 Targets list to a CSV." (export → the agent runs Apollo's
CSV export and returns a download link)
- "Who should I target at mid-market fintechs that recently raised a Series B and are
hiring backend engineers?" (filters must be inferred + prospects researched to qualify)
- "Help me create a list of hospital chains in India and top-level decision makers at
those hospitals." ("hospital" and "decision makers" feel like obvious filters, but the
exact keyword/title values still must be chosen, AND the task chains a company search
into a people search — both reasons this routes here, not to two direct search calls)
- Not this tool → "Search people with titles ['VP Engineering'], seniorities ['vp'],
locations ['United States']" (already a structured filter set →
`apollo_mixed_people_api_search`).
## TERMINOLOGY
Apollo terminology (for non-Apollo agents mapping user language): "Plays" = workflows;
"power-ups" / "magic columns" = AI research fields; "sequences" / "campaigns" = multi-step
outreach; "Context Center" = the team's ICP & product profile; ICP = ideal customer profile,
TAM = total addressable market; "conversation intelligence" = recorded calls & meetings.
--- Task protocol (START and REPLY go through any `apollo_agent_*` tool; POLL goes through
`apollo_agent_poll_task`. A `task_id` started via any `apollo_agent_*` tool can be replied to
with any other, since they all run on the same Apollo AI Agent; replying with the tool you
started with is clearer but not required) ---
## TWO TOOLS
- This tool (any `apollo_agent_*` tool), `instruction` required:
1. without `task_id` → START: creates a new Agent task, appends your message, and
starts the agent. Returns `task_id`, any messages so far, and `cursor`.
2. with `task_id` → REPLY: appends your message to the SAME task and resumes the agent
with the full conversation so far. If the agent is still working, the message is NOT
delivered and you get `next_action: task_busy`.
This tool never polls: a call without `instruction` is rejected.
- `apollo_agent_poll_task`, `task_id` (plus `cursor`) → POLL: reads messages added after
`cursor` and the current `next_action`. Safe to repeat; sends nothing to the agent.
## THE LOOP
1. START with `instruction` (the user's request, verbatim).
2. Store `task_id` and `cursor` from every response.
3. POLL with `apollo_agent_poll_task` (`task_id` + latest `cursor`), waiting
`poll_after_ms` between calls, until `next_action` is `inspect_and_decide` or `failed`.
`poll_after_ms` grows from 15 seconds to 3 minutes the longer the task runs.
While polling, surface any new messages to the user. Minutes without new messages are
normal while the agent works (`idle_seconds` is the time since its last activity): keep
polling, and do not START a new task because it seems slow.
4. `waiting_on_async_operation`: the agent is paused on a long-running operation
(`waiting_on.type`, e.g. `background_job`, `tool_call`). Keep polling, waiting
`poll_after_ms`; do NOT send a new message. If a background job runs past an hour,
`next_action` becomes `inspect_and_decide` with `waiting_on` still set: ask the user whether
to keep waiting, then REPLY with exactly `keep waiting` or `stop`, as `instructions` says.
5. `inspect_and_decide`: the agent stopped and can take input. Read every assistant message
you received since your last message. If it asked something you can answer from the
conversation, REPLY with `task_id` + `instruction`. If only the human can answer,
ask the human, then REPLY with their answer verbatim. If the work is done, present it.
`end_of_reply` / `need_user_reply` on a message are hints, not a verdict: read the text.
If `failure_reason` is set, the last turn ended in an error: tell the user, and REPLY on the
same `task_id` if they want to retry.
6. `task_busy`: your message was not delivered. Poll until `inspect_and_decide`, then resend.
7. `failed`: read `failure_reason` and the messages, tell the user; START a new task only if
they want to retry.
Never START a new task to continue the same conversation: that loses all context. Prefer REPLY
to START for anything that builds on an earlier task. To start a request that should NOT carry
any prior context, omit `task_id` and START a new task.
## RESPONSE FIELDS (both tools)
`task_id`; `messages[]` (`seq_num`, `role`, `content`, optional `tool_calls` names,
`end_of_reply`, `need_user_reply`); `cursor` (send back on the next call); `latest_seq_num`;
`next_action` (`poll_again` | `waiting_on_async_operation` | `inspect_and_decide` |
`task_busy` | `failed`); `poll_after_ms`; `instructions` (follow them); optional
`waiting_on` (`type`, `since`, `elapsed_seconds`), `idle_seconds`, `failure_reason`,
`message_accepted` (`apollo_agent_*` tools only), `artifacts[]` (files the task produced:
finished CSV exports (`source` `csv_export`) and CSV, JSON, Markdown or text files the agent
wrote (`source` `file`, `rows` null for Markdown and text), `[]` when none: `id`, `source`,
`name`, `mime_type`, `rows`, `size_bytes`, `url`, `expires_at`), and `progress_plan`
(`plan_id`, `revision`, `status`, `steps[]` (`id`, `title`, `status`), `markdown`): the
agent's current plan, read-only progress. Show `markdown` to the user when its `plan_id` or
`revision` differs from the plan you last showed, and don't repeat an unchanged plan. It is not
a request for approval and is unrelated to `tool-plan` cards. To get a file, send a plain HTTP
GET to its `url` with no auth header. The link expires at `expires_at` (about 10 minutes); poll
again for a fresh one.
## PLAN LIMITS
Each task is one AI Assistant thread, so START and REPLY count against the user's Apollo
plan limits for AI Assistant, the same as in the Apollo app. When a limit is reached the call
fails with `error_code`
`ASSISTANT_THREAD_LIMIT_EXCEEDED` (no new tasks this billing cycle) or
`ASSISTANT_MESSAGE_LIMIT_EXCEEDED` (no more messages on this task), and `error_details`
carries the limits and an upgrade link. Tell the user, share the upgrade link, and finish the
task with the non-agentic `apollo_*` tools. Do not retry. Polling is never limited.
CRITICAL — credit/cost confirmations: if the agent asks to confirm spending credits or
incurring a cost (e.g. "this will consume N credits — proceed?"), you MUST relay that exact
question to the actual human user and wait for their real response before you REPLY. Never
answer a credit/cost confirmation yourself on the user's behalf, even if the answer seems
obvious — the whole point of the confirmation is human sign-off on spend. Auto-confirming on
the user's behalf is a policy violation, not just a bad UX choice.
CRITICAL — proposed changes: a result may propose a write to the user's data, as a fenced
JSON block with `"toolName": "tool-plan"` and `"status": "pending"`, or as an offer to change
something (edit a sequence, add contacts, turn on a recurring report). Show the user what
would change in plain words and ask before applying. On yes, REPLY on the same `task_id`
with the user's reply; do not make the change yourself with other `apollo_*` tools. Never
approve on the user's behalf. An approved change is written to live Apollo data (records,
lists, sequences, workflows, mailbox settings) and cannot be undone by this tool, and credits
spent on an approved enrichment are not refunded.
If this tool returns an unexpected, empty, or unhelpful result, call `apollo_feedback_log` to report it.