Lead Enrichment Tool
An open-source project designed to enhance your sales leads by leveraging LinkedIn data and AI-powered analysis. This tool helps businesses evaluate and qualify potential leads efficiently, making it a valuable asset for scaling sales efforts.
Features
- LinkedIn Integration: Extracts detailed user profiles, posts, and company information.
- OpenAI-Powered Analysis: Uses GPT-based models to evaluate leads and provide actionable insights.
- Customizable Criteria: Tailor lead evaluation prompts to match your ideal customer persona (ICP).
- Data Output: Generates user and company ratings alongside recommendations for top tools that fit the business needs.
Installation
-
Clone the repository:
git clone https://github.com/your-repo/lead-enrichment-tool.git cd lead-enrichment-tool -
Install dependencies:
pip install -r requirements.txt
-
Set up your environment:
- LinkedIn Credentials: Use a dedicated LinkedIn account to avoid rate limits.
- OpenAI API Key: Obtain your API key from the OpenAI platform.
-
Modify the code as needed:
- Update the placeholders in the
system_promptanduser_promptwith your business details.
- Update the placeholders in the
Usage
-
Prepare a CSV file with columns for LinkedIn and Company LinkedIn links.
-
Update the
file_pathvariable in the script to point to your CSV file. -
Run the script:
python lead_enrichment_tool.py
-
Output will include:
- User and company ratings.
- Recommendations for tools based on the analysis.
Example Output
A JSON structure with the following format:
{
"user_rating": 8,
"company_rating": 7,
"top_tools": [
{
"tool_name": "CRM Optimizer",
"description": "Improves lead tracking and conversion."
},
{
"tool_name": "Data Insights Dashboard",
"description": "Provides real-time analytics for sales performance."
}
]
}Requirements
- Python 3.8+
- Libraries:
linkedin-apiopenairequestspandas
For a full list of dependencies, see requirements.txt.
Notes
- Ensure compliance with LinkedIn's terms of service when scraping data.
- Use a dedicated LinkedIn account to avoid interruptions.
Contributions
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
LinkedIn Commentor
Change line 44 (Prompt about your company/personal brand) and 87 (Linkedin post url where you want the AI to comment)
- You need the install the dependencies in the requirement.txt
python -m venv venv source venv/bin/activate pip install -r requirements.txt pip list
Before running the script, close all chrome tabs and run chrome in debug mode
-- open -na "Google Chrome" --args --remote-debugging-port=9222 --user-data-dir="/Users/dheeraj/Library/Application Support/Google/Chrome" --profile-directory="Default" -- ensure your linkedin is logged in default mode