Overview
Distribute a batch of prospects evenly across multiple campaigns using an intelligent Round Robin load balancing algorithm. This endpoint automatically assigns prospects to campaigns based on their current workload, ensuring optimal distribution and preventing any single campaign from being overloaded.Use Cases
- Multi-Agent Distribution: Spread prospects across multiple LinkedIn agents for faster processing
- Load Balancing: Automatically balance workload across multiple campaigns
- A/B Testing: Distribute identical prospects across different campaign strategies
- Geographic Distribution: Route prospects to region-specific campaigns
- Parallel Processing: Scale your outreach by running multiple campaigns simultaneously
Key Features
- Smart Load Balancing: Automatically assigns prospects to campaigns with the lowest current workload
- Minimum 2 Campaigns: Requires at least 2 campaigns for distribution
- Real-time Distribution: Prospects are distributed and processed immediately
- Detailed Distribution Report: Returns information about how prospects were assigned
- Ownership Verification: Ensures all specified campaigns belong to your team
How It Works
The Round Robin algorithm:- Fetches all campaigns and verifies ownership and existence
- Sorts campaigns by current prospect count (ascending - lowest first)
- Assigns each prospect to the campaign with the lowest current workload
- Updates counts in memory for accurate distribution
- Processes prospects asynchronously for each campaign
Testing Example
Request Body
Required Fields
| Field | Type | Description |
|---|---|---|
campaignIds | array<string> | Array of campaign IDs to distribute prospects across. Minimum 2 campaigns required |
prospects | array<object> | Array of prospect objects to be distributed. Minimum 1 prospect required |
Prospect Object Structure
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Full name of the prospect |
url | string | Yes | LinkedIn profile URL (must include linkedin.com/in/) |
ongoing | boolean | No | Whether the prospect conversation is ongoing (default: false) |
additionalFields | array<object> | No | Array of custom field objects with additional prospect information |
Additional Fields Object
| Field | Type | Required | Description |
|---|---|---|---|
fieldName | string | Yes | Name of the custom field (e.g., “company”, “title”) |
fieldValue | string | Yes | Value of the custom field |
Response Format
Success Response (201 Created)
Error Responses
400 Bad Request - Invalid Campaigns
404 Not Found - Campaign Not Found
403 Forbidden - No Access
500 Internal Server Error
Distribution Algorithm Details
The Round Robin algorithm uses load balancing instead of simple circular distribution:Traditional Round Robin
Assigns prospects in a circular pattern regardless of existing load:- Campaign A → Campaign B → Campaign C → Campaign A…
Load Balanced Round Robin (Used Here)
Assigns prospects to the campaign with the lowest current workload:- Fetch all campaigns and their current prospect counts
- For each prospect:
- Find campaign with lowest prospect count
- Assign prospect to that campaign
- Increment that campaign’s count in memory
- Continue until all prospects are assigned
- Campaign A: 10 prospects
- Campaign B: 15 prospects
- Campaign C: 8 prospects
- Prospect 1 → Campaign C (8+1=9)
- Prospect 2 → Campaign A (10+1=11)
- Prospect 3 → Campaign C (9+1=10)
- Prospect 4 → Campaign C (10+1=11)
- Prospect 5 → Campaign A (11+1=12)
- Campaign A: 12 prospects (+2)
- Campaign B: 15 prospects (+0)
- Campaign C: 11 prospects (+3)
Best Practices
- Campaign Preparation: Ensure all campaigns are properly configured before distribution
- Minimum Campaigns: Always provide at least 2 campaigns for meaningful distribution
- Campaign Similarity: Use campaigns with similar configurations for consistent prospect experience
- Monitor Distribution: Check the distribution report to ensure balanced assignment
- Bulk Operations: This endpoint is ideal for large prospect lists (100+ prospects)
- Campaign Capacity: Verify campaigns have sufficient agent capacity for assigned prospects
- URL Validation: Ensure all LinkedIn URLs are valid and properly formatted
Common Additional Fields
Include relevant information to personalize outreach:- company: Company name
- title: Job title
- industry: Industry sector
- location: Geographic location
- employees: Company size
- revenue: Company revenue
- source: Lead source or origin
- notes: Custom research notes
- priority: Lead priority level
Integration Examples
Large-Scale Distribution
Geographic Distribution
A/B Testing Setup
Performance Considerations
- Processing Time: Prospects are processed asynchronously after distribution
- Campaign Status: Campaigns must be active to receive prospects
- Rate Limits: Respect API rate limits when distributing large batches
- Concurrent Requests: Process batches sequentially to ensure accurate distribution
- Memory Efficiency: Algorithm uses in-memory counting for optimal performance
Next Steps
After distributing prospects:- Monitor Campaign Performance: Check analytics for each campaign
- Balance Adjustments: Add more prospects to underperforming campaigns
- Agent Monitoring: Ensure LinkedIn agents are active and processing prospects
- Qualification Tracking: Monitor qualification rates across campaigns
- Optimize Distribution: Adjust campaign count based on performance metrics
Related Endpoints
- Add Single Prospect - Add individual prospects to a campaign
- Add Batch Prospects - Add multiple prospects to a single campaign
- List Prospects - View prospects in a campaign
- Campaign Stats - Monitor campaign performance
Authorizations
Body
application/json