Next Outreach Batch
next_outreach_batchAvoid duplicate outreach by pulling a deduplicated batch of leads ready for first contact, prioritized by best channel. Optionally limit to free-to-message open profiles.
Instructions
Leads eligible for a first message, best channel first.
Read-only. Excludes anyone already sent to in ANY campaign — dedupe is on the stable member_id, so a person found by three searches is messaged once — and anyone already handled in this campaign.
With open_profile_only (the default) only leads confirmed Open Profile by enrich_leads come back: those are free to message. Run enrich_leads first or this returns nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max leads to return (1-50). | |
| campaign | Yes | A label for this outreach run, e.g. "direct-mail-q3". Dedupe is global, but status is tracked per campaign. | |
| url_or_hash | Yes | The query's url_hash or original search URL. | |
| open_profile_only | No | Only free-to-message leads. Setting this false surfaces leads whose messages would cost an InMail credit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||