lead-contacts-findworkflow0
kborovik/mailpilot
What it does

Discover and verify decision-maker contacts for companies

Best for

Scalable concurrent discovery and seeding of <=5 decision-maker contacts per stale company (part of lead enrichment pipeline; 3 in flight concurrency).

Inputs
  • · stale company rows array: [{id, domain, name}] (passed via args as JSON string or object)
Outputs
  • · array of {company_id, domain, status (seeded/skipped/failed), contacts_created, flagged, reason}
Requires
  • · contact-finder agent type (system prompt-driven contact discovery)
Preconditions
  • · stale rows sourced from companies table (profile NOT NULL and < 5 existing contacts)
  • · contact-finder agent configured and available
Failure modes
  • · contact discovery relies on contact-finder agent accuracy (not deterministic)
  • · batch size (3 concurrent) may need tuning for throughput vs resource limits
  • · memoization holds count including disabled rows (edge case if cleanup skipped)
Trust signals
  • · chunked batching: explicit max 3 concurrent agents (respects throughput budget)
  • · schema validates: company_id, domain, status enum
  • · integrated into lead-contacts skill workflow