#163

feat: Add LeadMagic B2B data enrichment plugin with 9 actions

Openbcharlesonwants to merge intofrom

Overview

Adds LeadMagic integration with 9 B2B data enrichment actions for lead generation and company research workflows.

This PR supersedes #162 with additional improvements and fixes.

Actions Included

People Operations (6 actions)

  • Email Finder: Find email addresses from first name, last name, and company domain
  • Email Validation: Validate email addresses and check deliverability
  • Mobile Finder: Find mobile phone numbers from LinkedIn profiles
  • Role Finder: Find people at companies by their role/title
  • Profile Search: Search for LinkedIn profiles by name and company
  • B2B Profile Email: Get B2B profile data and email from LinkedIn URL

Company Operations (3 actions)

  • Company Search: Search for companies by name or domain
  • Company Funding: Get company funding and investment data
  • Technographics: Get company technology stack information

Implementation Details

Architecture

  • ✅ Follows plugin architecture from CONTRIBUTING.md
  • ✅ Uses native fetch API (no SDK dependencies per guidelines)
  • ✅ Standardized output format: { success: boolean, data?: object, error?: object }
  • ✅ Proper error handling and validation
  • ✅ Template variable support for all input fields
  • ✅ Config field filtering implemented

Code Quality

  • ✅ All type checks pass (pnpm type-check)
  • ✅ Code formatted with ultracite (pnpm fix)
  • ✅ No console.log or debug code
  • ✅ Follows existing integration patterns

Testing

  • ✅ All 9 actions tested and working
  • ✅ Template variables working correctly
  • ✅ Error handling validated
  • ✅ Connection test function working
  • ✅ Integration with workflow builder UI verified

Files Changed

New Files

  • plugins/leadmagic/ - Complete LeadMagic plugin
    • index.ts - Plugin definition with 9 actions
    • credentials.ts - Credential type definition
    • icon.tsx - LeadMagic icon component
    • test.ts - Connection test function
    • steps/ - 9 step functions for each action
  • public/leadmagic-logo.png - LeadMagic logo asset

Modified Files

  • plugins/index.ts - Auto-generated plugin registration
  • lib/workflow-executor.workflow.ts - Config filtering improvements to prevent extra fields from being passed to actions

API Details

Base URL: https://api.leadmagic.io

Authentication: API key via X-API-Key header

Rate Limits: Handled by LeadMagic API

Use Cases

This integration enables workflows for:

  • Lead enrichment and validation
  • Contact discovery and verification
  • Company research and intelligence
  • Sales prospecting automation
  • Data enrichment pipelines

Checklist

  • Code follows existing patterns
  • All tests pass (pnpm type-check)
  • Code is formatted (pnpm fix)
  • No SDK dependencies (uses fetch)
  • Standardized output format
  • Template variables supported
  • Error handling implemented
  • Connection test working
  • All actions tested manually
  • Follows CONTRIBUTING.md guidelines

Related

  • Supersedes #162
  • Follows same pattern as existing integrations (Firecrawl, Resend, Instantly, etc.)

Pull Request opened by Augment Code with guidance from the PR author

Activity

6
vercel[bot]11mo ago

@bcharleson is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

ctate10mo ago

Thanks for submitting this! We'll review and follow up.