Skip to content

Conversation

@bcharleson
Copy link

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


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

@vercel
Copy link
Contributor

vercel bot commented Dec 14, 2025

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

A member of the Team first needs to authorize it.

Brandon Charleson and others added 4 commits December 17, 2025 11:09
- Lead operations: create, get, list, update, delete, update status, add to campaign
- Campaign operations: create, get, list, update, delete, activate, pause
- Account operations: list, get, pause, resume, enable/disable warmup
- Custom Instantly logo
- Integration credentials and test connection
- Remove Content-Type header from DELETE requests (delete-lead, delete-campaign)
- Remove Content-Type header from POST requests with empty body (pause-campaign, activate-campaign, pause-account, resume-account)
- Fix timezone in create-campaign to use valid API enum value (America/Chicago)
- Add Instantly plugin to plugins/index.ts
- Update README.md with Instantly actions
- Wrap successful responses in { success: true, data: {...} }
- Wrap errors in { success: false, error: { message: '...' } }
- Follows AGENTS.md Step Output Format specification
- All actions tested and verified working

Actions updated:
- Lead: create, get, list, update, delete, update-status, add-to-campaign
- Campaign: create, get, list, update, delete, activate, pause
- Account: list, get, pause, resume
- Warmup: enable, disable
- Add LeadMagic plugin with full API integration
- People Operations: Find Email, Validate Email, Search Profile, Find Mobile, Find Role, B2B Profile Email
- Company Operations: Search Company, Get Technographics, Get Company Funding
- All actions use native fetch (no SDK dependencies)
- Fix node-config-panel to clear old config when changing action types
- Add LeadMagic logo asset
@bcharleson bcharleson force-pushed the feature/leadmagic-integration branch from 1c179d4 to e85c399 Compare December 17, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant