-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(tools): added enrich so #3103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR adds comprehensive integration with Enrich.so, a B2B data enrichment and LinkedIn intelligence platform. The implementation includes 30 tools covering person/company enrichment, email finding/verification, LinkedIn data extraction, and post analytics. Key additions:
Implementation quality:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block as Enrich Block
participant Registry as Tool Registry
participant Tool as Enrich Tool
participant API as Enrich.so API
User->>Block: Configure operation & API key
Block->>Block: Validate & parse parameters
Note over Block: Parse JSON fields<br/>(currentJobTitles, skills, etc.)
Block->>Block: Map operation to tool name
Block->>Registry: Lookup tool by ID
Registry->>Tool: Return tool instance
Tool->>Tool: Build request URL/body
Note over Tool: Add Authorization header<br/>Bearer {apiKey}
Tool->>API: HTTP GET/POST request
API-->>Tool: JSON response
Tool->>Tool: Transform response
Note over Tool: Map API fields to output schema<br/>Handle queued responses (202)
Tool-->>Block: Return ToolResponse
Block-->>User: Output data
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| request: { | ||
| url: (params) => { | ||
| const url = new URL('https://api.enrich.so/v2/api/linkedin-to-email') | ||
| url.searchParams.append('linkedin_profile', params.linkedinProfile.trim()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both LinkedIn email tools use identical API endpoint
High Severity
The linkedInToWorkEmailTool and linkedInToPersonalEmailTool both call the exact same endpoint (https://api.enrich.so/v2/api/linkedin-to-email) with identical parameters. The Enrich.so API documentation shows separate endpoints exist for "Profile URL to Work Email" and "Profile URL to Personal Email". As currently implemented, users selecting the "LinkedIn to Personal Email" operation will actually get work email results (or the same results as work email), making the personal email feature non-functional.


Summary
Type of Change
Testing
Tested manually
Checklist