feat: Add OSS Lead Intelligence agent#6057
Open
Samir-atra wants to merge 1 commit intoaden-hive:mainfrom
Open
Conversation
This agent transforms GitHub repository interest signals (stars, forks, contributions) into qualified CRM contacts with enrichment data and team notifications. The agent includes: - 5 nodes with event_loop execution - Multi-tool CRM integration (GitHub + Apollo + HubSpot + Slack) - Human-in-the-loop lead review - Configurable ICP scoring - Conditional routing based on lead scores Files: - examples/templates/oss_lead_intelligence/__init__.py - examples/templates/oss_lead_intelligence/agent.py - examples/templates/oss_lead_intelligence/config.py - examples/templates/oss_lead_intelligence/__main__.py - examples/templates/oss_lead_intelligence/mcp_servers.json - examples/templates/oss_lead_intelligence/nodes/__init__.py - examples/templates/oss_lead_intelligence/tests/__init__.py - examples/templates/oss_lead_intelligence/tests/conftest.py
PR Requirements WarningThis PR does not meet the contribution requirements. PR Author: @Samir-atra To fix:
Exception: To bypass this requirement, you can:
Micro-fix requirements (must meet ALL):
Why is this required? See #472 for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the Open-Source lead Intelligence Agent that transforms GitHub repository interest signals into qualified CRM contacts with enrichment data and team notifications.
The agent includes:
Type of Change
Related Issues
Resolves #4301
Changes Made
Created
examples/templates/oss_lead_intelligence/directory with full agent implementationAdded
config.pywith RuntimeConfig and AgentMetadataAdded
nodes/__init__.pywith 5 node definitions:config_intake_node: Collects user configuration (client_facing)github_scan_node: Scans GitHub repositories for stargazersenrich_and_score_node: Enriches profiles with Apollo and scores leadsreview_leads_node: Presents leads for human review (client_facing)crm_sync_and_notify_node: Syncs to HubSpot CRM and notifies via SlackAdded
agent.pywith goal, edges, and OSSLeadIntelligenceAgent classAdded
__init__.pywith all required exportsAdded
__main__.pyfor CLI entry pointAdded
mcp_servers.jsonfor tool configurationAdded
tests/conftest.pywith pytest fixtures and validation testsAdded
tests/__init__.pyfor test package initializationAdded
tests/test_agent.pywith comprehensive agent testsTesting
Tests run to verify the implementation:
Unit tests pass (
cd core && pytest tests/)Agent validation passes (graph structure, node IDs, edges)
Goal criteria weights sum to 1.0
All required exports present in
__init__.pyLint passes (ruff check .)
Manual testing performed (agent runs successfully with test configuration)
Checklist
Usage
To run the agent:
Or use the Hive CLI:
Required Credentials
The agent requires the following credentials to be configured:
GITHUB_TOKEN- GitHub Personal Access TokenAPOLLO_API_KEY- Apollo.io API key (for enrichment)HUBSPOT_ACCESS_TOKEN- HubSpot Private App token (for CRM sync)SLACK_BOT_TOKEN- Slack Bot Token (for notifications,