A tool that combines Tavily's search capabilities with GPT-4 analysis to generate comprehensive research reports for new leads.
- Company research using Tavily's company_info endpoint
- Person research using Tavily's search_context endpoint
- AI-powered analysis of gathered data
- Structured reports including:
- Company Overview
- Decision Maker Profile
- Opportunity Analysis
- Recommended Approach
- Risk Assessment
- Clone the repository:
git clone https://github.com/hanson-cheng/lead-research-tool.git
cd lead-research-tool- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a .env file in the project root and add your API keys:
OPENAI_API_KEY=your_openai_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
Run the script:
python crm_lead_research.pyThe tool will:
- Research the company using Tavily
- Research the person using Tavily
- Analyze the gathered data using GPT-4
- Generate a comprehensive report
The tool generates a detailed report including:
- Verified company information (founding date, location, legal status)
- Professional background and roles
- Market position and online presence
- Opportunity analysis and recommended approaches
- Risk assessment and potential challenges
- Python 3.8+
- OpenAI API key
- Tavily API key
MIT