An AI-powered lead generation assistant built using LangChain, FastAPI, Groq (Moonshot Kimi K2), Hunter.io, and React.
This project provides:
- An intelligent agent that discovers companies\
- Finds emails\
- Verifies emails\
- Discovers people working at target companies\
- JSON-typed structured responses\
- REST API interface\
- LangGraph + LangSmith workflow tracing\
- React frontend ready to plug in
Uses Hunter.io Discover API to return a list of relevant companies and domains.
Fetch employees with email, name, and job position.
Find a person's email using name + domain.
Check email validity (valid, invalid, disposable, etc.)
Moonshot Kimi K2 Instruct model through Groq API.
Every response matches the AgentResponse schema.
Powered by FastAPI.
Full workflow tracing.
├── middleware/
│ └── trim_msg.py
├── tools/
│ ├── discover.py
│ ├── find_email.py
│ └── verify_email.py
├── agent.py
├── app.py
├── model.py
├── langgraph.json
├── requirements.txt
├── .env.example
└── README.md
git clone https://github.com/AMalfez/lead_gen_agent.git
cd lead_gen_agent
python -m venv venv
source venv/bin/activate
# Windows: venv\Scripts\activate
pip install -r requirements.txt
Rename .env.example → .env and replace with your env variables.
fastapi run app.py
langgraph dev
GET /health
POST /agent
Tracing enabled automatically when environment variables are set.
- trim_messages middleware not supported by Moonshot model
PRs welcome.
Star the repo if this helped you!