Skip to main content

Scenario

Your Lever postings attract candidates from different sources — LinkedIn, Indeed, referrals, your careers page, agencies. But which sources produce the best candidates? And how should your recruitment marketing differ by source? You pull posting performance data with source attribution, analyze source effectiveness with Mave, then generate source-optimized recruitment content. Flow: Lever GET /postings + GET /opportunities (source data) → Mave POST /mave/chat (source analysis) → POST /generations (source-optimized content)

Architecture

Code

Example Output

Error Handling

Lever stores sources as an array (candidates can have multiple). The code uses the first source. For multi-source attribution, count each source separately.
Hired candidates are often isArchived: true with their last stage containing “hired”. Check both fields for accurate hire counts.
Stage names are fully customizable in Lever. The keyword matching (screen, onsite, offer) may miss custom names. Audit your stages with GET /stages first.